/* Skip link + a11y utilities */
.rf-skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 10000;
	padding: 0.75rem 1rem;
	border-radius: var(--rf-radius-btn);
	background: var(--rf-accent);
	color: var(--rf-white);
	font-weight: 600;
	text-decoration: none;
}

.rf-skip-link:focus {
	top: 1rem;
	outline: 2px solid var(--rf-white);
	outline-offset: 2px;
}

.rf-skip-target {
	position: relative;
	outline: none;
}

.rf-skip-target:focus {
	outline: none;
}

.rf-legal {
	max-width: 46rem;
}

.rf-legal__updated {
	margin: 0 0 1.75rem;
	font-size: 0.9rem;
	color: var(--rf-text-muted);
}

.rf-legal h2 {
	margin: 2rem 0 0.75rem;
	font-size: 1.25rem;
}

.rf-legal p,
.rf-legal li {
	line-height: 1.65;
	color: var(--rf-text-muted);
}

.rf-legal ul {
	margin: 0 0 1rem;
	padding-left: 1.2rem;
}

.rf-legal a {
	color: var(--rf-accent);
}

/* Buttons */
.rf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.7rem 1.25rem;
	border-radius: var(--rf-radius-btn);
	border: 1px solid transparent;
	font-family: var(--rf-font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rf-btn--primary {
	background: var(--rf-accent);
	color: var(--rf-white);
}

.rf-btn--primary:hover,
.rf-btn--primary:focus-visible {
	background: var(--rf-accent-hover);
	color: var(--rf-white);
}

.rf-btn--ghost {
	background: transparent;
	color: var(--rf-text-on-dark);
	border-color: rgba(232, 237, 242, 0.35);
}

.rf-btn--ghost:hover,
.rf-btn--ghost:focus-visible {
	border-color: var(--rf-white);
	color: var(--rf-white);
}

/* Secondary CTA — quieter than primary, not a competing action */
.rf-btn--quiet {
	font-weight: 500;
	border-color: rgba(232, 237, 242, 0.22);
	color: rgba(232, 237, 242, 0.78);
	background: transparent;
}

.rf-btn--quiet:hover,
.rf-btn--quiet:focus-visible {
	border-color: rgba(232, 237, 242, 0.45);
	color: var(--rf-white);
	background: transparent;
}

.rf-btn--ghost-dark {
	background: transparent;
	color: var(--rf-text-dark);
	border-color: var(--rf-border);
}

.rf-btn--ghost-dark:hover,
.rf-btn--ghost-dark:focus-visible {
	border-color: var(--rf-accent);
	color: var(--rf-accent);
}

.rf-btn--block {
	width: 100%;
}

.rf-btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.75rem;
}

/* Header */
.rf-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	min-height: var(--rf-header-h);
	background: var(--rf-navy-900);
	border-bottom: 1px solid rgba(143, 154, 168, 0.18);
}

/* Sit below WP admin bar when logged in */
.admin-bar .rf-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .rf-header {
		top: 46px;
	}
}

.rf-header--transparent {
	position: absolute;
	top: 0;
	inset-inline: 0;
	background: linear-gradient(180deg, rgba(7, 17, 31, 0.88) 0%, rgba(7, 17, 31, 0.35) 70%, transparent 100%);
	border-bottom-color: transparent;
}

.admin-bar .rf-header--transparent {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .rf-header--transparent {
		top: 46px;
	}
}

.rf-header.is-scrolled,
.rf-header--transparent.is-scrolled {
	position: sticky;
	top: 0;
	background: rgba(11, 23, 40, 0.96);
	border-bottom-color: rgba(143, 154, 168, 0.18);
}

.admin-bar .rf-header.is-scrolled,
.admin-bar .rf-header--transparent.is-scrolled {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar .rf-header.is-scrolled,
	.admin-bar .rf-header--transparent.is-scrolled {
		top: 46px;
	}
}

.rf-header__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: var(--rf-header-h);
	padding-block: 0.65rem;
}

.rf-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
	max-height: 50px;
}

.rf-logo__text {
	font-family: var(--rf-font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--rf-white);
}

.rf-logo__img {
	display: block;
	height: auto;
	width: auto;
	max-height: 46px;
	max-width: 240px;
	object-fit: contain;
	object-position: left center;
}

.rf-nav--desktop {
	margin-left: auto;
}

.rf-nav__list {
	display: flex;
	align-items: center;
	gap: 0.25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rf-nav__link,
.rf-nav a {
	font-family: var(--rf-font-body);
	font-size: 0.95rem;
	font-weight: 600;
	color: rgba(232, 237, 242, 0.88);
	text-decoration: none;
}

.rf-nav__link:hover,
.rf-nav__link:focus-visible,
.rf-nav a:hover,
.rf-nav a:focus-visible {
	color: var(--rf-white);
}

.rf-header__cta {
	margin-left: 0.5rem;
	flex-shrink: 0;
}

.rf-header__toggle {
	display: none;
	width: 2.5rem;
	height: 2.5rem;
	margin-left: auto;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.rf-header__toggle-bar {
	display: block;
	width: 1.25rem;
	height: 2px;
	margin: 5px auto;
	background: var(--rf-white);
}

.rf-drawer {
	display: none;
	padding: 1rem 1.25rem 1.5rem;
	background: var(--rf-navy-950);
	border-top: 1px solid rgba(143, 154, 168, 0.2);
}

.rf-drawer[hidden] {
	display: none !important;
}

.rf-nav__list--mobile {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	margin-bottom: 1rem;
}

.rf-nav__list--mobile a {
	display: block;
	padding: 0.85rem 0;
	border-bottom: 1px solid rgba(143, 154, 168, 0.15);
}

/* Cards / patterns */
.rf-section-heading {
	margin-bottom: 1.85rem;
}

.rf-section-heading h2 {
	margin: 0;
	font-size: clamp(1.55rem, 2.2vw, 2rem);
	line-height: 1.2;
}

.rf-capability-card,
.rf-project-card,
.rf-solution-item,
.rf-why-item {
	background: var(--rf-white);
	border: 1px solid var(--rf-border);
	border-radius: var(--rf-radius-card);
}

.rf-capability-card {
	border-color: rgba(215, 222, 229, 0.95);
	box-shadow: none;
}

.rf-solution-item {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(143, 154, 168, 0.28);
}

.rf-section--navy .rf-solution-item h3 {
	color: var(--rf-white);
}

.rf-section--navy .rf-solution-item p {
	color: var(--rf-text-muted-on-dark);
}

.rf-why-item {
	background: var(--rf-white);
	border-color: var(--rf-border);
}

.rf-capability-card,
.rf-solution-item,
.rf-why-item {
	display: flex;
	flex-direction: column;
	padding: 1.25rem 1.25rem 1.3rem;
	height: 100%;
	min-height: 0;
}

.rf-capability-card__icon,
.rf-solution-item__icon {
	width: 36px;
	height: 36px;
	margin-bottom: 0.75rem;
	color: var(--rf-accent);
	flex-shrink: 0;
}

.rf-hero__mini img {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.rf-capability-card h3,
.rf-project-card h3,
.rf-solution-item h3,
.rf-why-item h3 {
	margin: 0 0 0.4rem;
	font-size: 1.1rem;
	line-height: 1.3;
}

.rf-capability-card__line {
	margin: 0 0 0.5rem;
	font-weight: 600;
	font-size: 0.98rem;
	color: var(--rf-text-dark);
}

.rf-capability-card p,
.rf-project-card p,
.rf-solution-item p,
.rf-why-item p {
	margin: 0;
	color: var(--rf-text-muted);
	font-size: 1.0rem;
	line-height: 1.55;
}

.rf-capability-card > p:not(.rf-capability-card__line) {
	font-size: 0.95rem;
}

.rf-capability-card__link,
.rf-project-card__link,
.rf-text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: auto;
	padding-top: 0.95rem;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--rf-accent);
	text-decoration: none;
}

.rf-link-arrow {
	display: inline-block;
	transition: transform 0.18s ease;
}

.rf-capability-card__link:hover,
.rf-project-card__link:hover,
.rf-text-link:hover {
	color: var(--rf-accent-hover);
}

.rf-capability-card__link:hover .rf-link-arrow,
.rf-project-card__link:hover .rf-link-arrow,
.rf-capability-card__link:focus-visible .rf-link-arrow,
.rf-project-card__link:focus-visible .rf-link-arrow {
	transform: translateX(3px);
}

.rf-project-card {
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rf-project-card:hover,
.rf-project-card:focus-within {
	border-color: rgba(47, 111, 237, 0.45);
}

.rf-project-card__media {
	aspect-ratio: 3 / 2;
	background: var(--rf-navy-800);
	overflow: hidden;
}

.rf-project-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transition: transform 0.35s ease;
}

.rf-project-card:hover .rf-project-card__media img,
.rf-project-card:focus-within .rf-project-card__media img {
	transform: scale(1.03);
}

.rf-project-card__body {
	padding: 0.95rem 1.1rem 1.1rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0;
}

.rf-project-card__category {
	margin: 0 0 0.25rem;
	font-family: var(--rf-font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--rf-metal);
}

.rf-project-card h3 {
	margin-bottom: 0.35rem;
}

.rf-tech-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0.7rem 0 0;
	padding: 0;
	list-style: none;
}

.rf-tech-tags li {
	padding: 0.18rem 0.4rem;
	border: 1px solid var(--rf-border);
	border-radius: 4px;
	font-size: 0.7rem;
	color: var(--rf-text-muted);
	background: var(--rf-surface);
}

.rf-project-card__link {
	margin-top: auto;
	padding-top: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
	.rf-project-card__media img,
	.rf-link-arrow {
		transition: none;
	}

	.rf-project-card:hover .rf-project-card__media img,
	.rf-project-card:focus-within .rf-project-card__media img {
		transform: none;
	}

	.rf-capability-card__link:hover .rf-link-arrow,
	.rf-project-card__link:hover .rf-link-arrow {
		transform: none;
	}
}

/* Footer */
.rf-footer {
	background: var(--rf-navy-950);
	color: var(--rf-text-on-dark);
	padding-top: 4rem;
}

.rf-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 2rem;
	padding-bottom: 3rem;
}

.rf-footer__statement {
	margin: 1rem 0 0;
	max-width: 22rem;
	color: rgba(232, 237, 242, 0.72);
	line-height: 1.6;
}

.rf-footer__heading {
	margin: 0 0 1rem;
	font-size: 0.8rem;
	font-family: var(--rf-font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rf-metal);
}

.rf-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rf-footer__list li + li {
	margin-top: 0.55rem;
}

.rf-footer__list a {
	color: rgba(232, 237, 242, 0.86);
	text-decoration: none;
	font-weight: 600;
}

.rf-footer__list a:hover,
.rf-footer__list a:focus-visible {
	color: var(--rf-white);
}

.rf-footer__bottom {
	border-top: 1px solid rgba(143, 154, 168, 0.18);
	padding: 1.1rem 0;
}

.rf-footer__copy {
	margin: 0;
	font-size: 0.9rem;
	color: rgba(232, 237, 242, 0.55);
}

@media (max-width: 1024px) {
	.rf-nav--desktop,
	.rf-header__cta--desktop {
		display: none;
	}

	.rf-header__toggle {
		display: inline-block;
	}

	.rf-header.is-open .rf-drawer {
		display: block;
	}

	.rf-header.is-open .rf-drawer[hidden] {
		display: block !important;
	}
}

@media (max-width: 900px) {
	.rf-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.rf-footer__grid {
		grid-template-columns: 1fr;
	}
}

/* Premium Upgrade Phase 2 — shared visual system */
.rf-btn {
	box-shadow: 0 0 0 rgba(7, 17, 31, 0);
	transition:
		background-color var(--rf-transition-fast),
		color var(--rf-transition-fast),
		border-color var(--rf-transition-fast),
		box-shadow var(--rf-transition-med),
		transform var(--rf-transition-med);
}

.rf-btn--primary:hover,
.rf-btn--primary:focus-visible {
	box-shadow: var(--rf-shadow-sm);
	transform: translateY(-1px);
}

.rf-btn--ghost:hover,
.rf-btn--ghost:focus-visible,
.rf-btn--quiet:hover,
.rf-btn--quiet:focus-visible {
	background: rgba(232, 237, 242, 0.06);
}

.rf-btn--ghost-dark:hover,
.rf-btn--ghost-dark:focus-visible {
	background: rgba(47, 111, 237, 0.05);
}

.rf-header {
	box-shadow: 0 10px 30px rgba(7, 17, 31, 0.08);
}

.rf-header.is-scrolled,
.rf-header--transparent.is-scrolled {
	backdrop-filter: blur(10px);
}

.rf-nav__link,
.rf-nav a {
	position: relative;
	transition: color var(--rf-transition-fast);
}

.rf-nav__link::after,
.rf-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.35rem;
	height: 1px;
	background: var(--rf-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--rf-transition-med);
}

.rf-nav__link:hover::after,
.rf-nav__link:focus-visible::after,
.rf-nav a:hover::after,
.rf-nav a:focus-visible::after {
	transform: scaleX(1);
}

.rf-capability-card,
.rf-project-card,
.rf-solution-item,
.rf-why-item {
	box-shadow: 0 0 0 rgba(7, 17, 31, 0);
	transition:
		border-color var(--rf-transition-med),
		box-shadow var(--rf-transition-med),
		transform var(--rf-transition-med);
}

.rf-capability-card:hover,
.rf-capability-card:focus-within,
.rf-why-item:hover,
.rf-why-item:focus-within {
	border-color: var(--rf-border-strong);
	box-shadow: var(--rf-shadow-sm);
	transform: translateY(-2px);
}

.rf-section--navy .rf-capability-card {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 248, 0.98));
	border-color: rgba(232, 237, 242, 0.84);
}

.rf-solution-item {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
		rgba(255, 255, 255, 0.035);
	border-color: rgba(143, 154, 168, 0.26);
}

.rf-capability-card__icon,
.rf-solution-item__icon {
	filter: drop-shadow(0 8px 14px rgba(47, 111, 237, 0.12));
}

.rf-card-meta,
.rf-why-item__proof {
	margin: 0.45rem 0 0.65rem;
	font-family: var(--rf-font-mono);
	font-size: 0.72rem;
	line-height: 1.55;
	color: var(--rf-text-muted);
}

.rf-section--navy .rf-card-meta,
.rf-section--navy .rf-why-item__proof {
	color: rgba(83, 96, 108, 0.86);
}

.rf-capability-card__link,
.rf-project-card__link,
.rf-text-link {
	border-top: 1px solid rgba(47, 111, 237, 0.14);
}

.rf-project-card:hover,
.rf-project-card:focus-within {
	box-shadow: var(--rf-shadow-card);
	transform: translateY(-2px);
}

.rf-project-card__media {
	position: relative;
}

.rf-project-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, transparent 42%, rgba(7, 17, 31, 0.36)),
		linear-gradient(90deg, rgba(47, 111, 237, 0.16), transparent 45%);
	pointer-events: none;
}

.rf-project-card__body {
	border-top: 1px solid rgba(47, 111, 237, 0.1);
}

.rf-project-card__category {
	width: fit-content;
	margin-bottom: 0.55rem;
	padding: 0.18rem 0.45rem;
	letter-spacing: 0.04em;
	color: var(--rf-accent);
	background: rgba(47, 111, 237, 0.08);
	border: 1px solid rgba(47, 111, 237, 0.18);
	border-radius: 4px;
}

.rf-project-card__category small {
	display: block;
	margin-bottom: 0.08rem;
	font-size: 0.58rem;
	letter-spacing: 0.05em;
	color: var(--rf-text-muted);
}

.rf-tech-tags li {
	padding: 0.22rem 0.46rem;
	border-color: rgba(143, 154, 168, 0.35);
	background: rgba(245, 247, 248, 0.82);
}

.rf-footer {
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 100%),
		var(--rf-navy-950);
	background-size: 30px 30px, auto;
	border-top: 1px solid rgba(143, 154, 168, 0.22);
}

.rf-footer__grid {
	grid-template-columns: minmax(18rem, 1.45fr) repeat(3, minmax(8rem, 1fr));
	gap: 2.25rem;
	align-items: start;
}

.rf-footer__statement {
	max-width: 25rem;
}

.rf-footer__list a {
	display: inline-block;
	transition: color var(--rf-transition-fast), transform var(--rf-transition-fast);
}

.rf-footer__list a:hover,
.rf-footer__list a:focus-visible {
	transform: translateX(2px);
}

@media (max-width: 900px) {
	.rf-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.rf-footer__grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rf-btn,
	.rf-capability-card,
	.rf-project-card,
	.rf-why-item,
	.rf-nav a::after,
	.rf-nav__link::after {
		transition: none;
	}

	.rf-btn--primary:hover,
	.rf-btn--primary:focus-visible,
	.rf-capability-card:hover,
	.rf-capability-card:focus-within,
	.rf-project-card:hover,
	.rf-project-card:focus-within,
	.rf-why-item:hover,
	.rf-why-item:focus-within {
		transform: none;
	}
}
