/*
Theme Name: Yo! Payments
Theme URI: https://paymentsweb.yo.co.ug
Description: Block theme for the Yo! Payments marketing site. Interconnect-neutral design for Uganda's mobile money aggregator.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.3
Author: Yo! Uganda Limited
Author URI: https://www.yo.co.ug
Text Domain: yo-payments
License: Proprietary
*/

/* Tabular figures everywhere numbers appear */
.has-tabular-nums,
table,
.wp-block-table,
[class*="fee"],
[class*="price"],
[class*="amount"],
[data-type="yo/fee-calculator"] {
	font-variant-numeric: tabular-nums;
}

/* Keyboard focus — visible on every interactive element */
:focus-visible {
	outline: 2px solid var(--wp--preset--color--rail);
	outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ── Hero ──────────────────────────────────────────── */

.yo-hero {
	position: relative;
	overflow: hidden;
	background-color: #000C39 !important;
	background-image: url("/wp-content/uploads/2026/08/yo-hero-bg.png");
	background-size: 100% 100%;
	background-position: center center;
	background-repeat: no-repeat;
}

.yo-hero-content {
	margin-left: auto !important;
	margin-right: 12rem !important;
	text-align: center;
}

.yo-hero-title {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	line-height: 1;
}

.yo-hero-label {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: clamp(2rem, 5vw, 3.5rem);
	color: var(--wp--preset--color--signal);
	letter-spacing: -0.02em;
}

.yo-hero-word {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: clamp(3rem, 8vw, 5.5rem);
	color: var(--wp--preset--color--paper);
	letter-spacing: -0.03em;
	margin-top: -0.15em;
}

@media (min-width: 1921px) {
	.yo-hero {
		background-size: cover;
	}
}

@media (max-width: 1024px) {
	.yo-hero {
		background-size: cover;
		background-position: 35% center;
	}

	.yo-hero-content {
		margin-right: 3rem !important;
	}
}

@media (max-width: 768px) {
	.yo-hero {
		background-size: cover;
		background-position: 30% center;
	}

	.yo-hero-content {
		margin-left: auto !important;
		margin-right: auto !important;
	}
}

@media (max-width: 480px) {
	.yo-hero {
		background-position: 25% center;
	}
}

.yo-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: transparent;
	pointer-events: none;
	z-index: 0;
}


.yo-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 600px 400px at 5% 50%, rgba(255,255,255,0.15) 0%, transparent 70%),
		radial-gradient(ellipse 400px 300px at 85% 30%, rgba(255,255,255,0.08) 0%, transparent 60%),
		radial-gradient(ellipse 300px 300px at 50% 100%, rgba(255,255,255,0.1) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.yo-hero > * {
	position: relative;
	z-index: 1;
}

/* ── Header ─────────────────────────────────────────── */

header.wp-block-group.has-paper-background-color {
	background: linear-gradient(to right, #ffffff 0%, #ffffff 25%, #edeff5 50%, #e0e4ee 75%, #d4d8e7 100%) !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar header.wp-block-group.has-paper-background-color {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar header.wp-block-group.has-paper-background-color {
		top: 46px;
	}
}

.yo-header-logo {
	position: relative;
	left: -3rem;
}

.yo-header-logo img {
	max-width: 150px !important;
	width: 150px !important;
	height: auto !important;
}

.wp-block-navigation a.wp-block-navigation-item__content {
	transition: color 0.2s ease;
	letter-spacing: 0.01em;
}

.wp-block-navigation a.wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--signal) !important;
}

.yo-nav-login a.wp-block-navigation-item__content {
	border: 1.5px solid var(--wp--preset--color--rail);
	color: var(--wp--preset--color--rail) !important;
	padding: 0.5rem 1.25rem;
	border-radius: 0.25rem;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.yo-nav-login a.wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--rail);
	color: var(--wp--preset--color--paper) !important;
}

.yo-nav-cta a.wp-block-navigation-item__content {
	background: var(--wp--preset--color--rail);
	color: var(--wp--preset--color--paper) !important;
	padding: 0.5rem 1.25rem;
	border-radius: 0.25rem;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.yo-nav-cta a.wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper) !important;
}

/* ── Feature cards ──────────────────────────────────── */

.wp-block-column.has-paper-background-color {
	border-radius: 0.5rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wp-block-column.has-paper-background-color:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ── Ease of Service steps ─────────────────────────── */

.yo-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
}

.yo-step-card {
	flex: 1;
	max-width: 280px;
	position: relative;
	background: var(--wp--preset--color--paper);
	border-radius: 0.75rem;
	padding: 2.5rem 1.75rem 2rem;
	text-align: center;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	border: 1px solid var(--wp--preset--color--grid);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yo-step-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.yo-step-badge {
	position: absolute;
	top: -1rem;
	left: 50%;
	transform: translateX(-50%);
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--rail);
	color: var(--wp--preset--color--paper);
	font-weight: 700;
	font-size: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 2px 8px rgba(0, 26, 114, 0.3);
}

.yo-step-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 1.25rem;
	border-radius: 50%;
	background: rgba(0, 26, 114, 0.07);
	color: var(--wp--preset--color--rail);
}

.yo-step-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--wp--preset--color--ink);
	margin: 0 0 0.625rem;
}

.yo-step-desc {
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--wp--preset--color--ink);
	opacity: 0.75;
	margin: 0;
}

.yo-step-arrow {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	padding: 0 0.75rem;
}

@media (max-width: 768px) {
	.yo-steps {
		flex-direction: column;
		gap: 2rem;
	}

	.yo-step-card {
		max-width: 100%;
	}

	.yo-step-arrow {
		transform: rotate(90deg);
		padding: 0;
	}
}

/* ── Section headings ──────────────────────────────── */

.yo-section-heading {
	text-align: center;
	margin-bottom: 3rem;
}

.yo-section-heading::before {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	background: var(--wp--preset--color--signal);
	margin: 0 auto 1.25rem;
	border-radius: 2px;
}

.yo-section-heading h2 {
	font-size: var(--wp--preset--font-size--heading);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	color: var(--wp--preset--color--ink);
	margin: 0 0 0.5rem;
	letter-spacing: -0.02em;
}

.yo-section-heading p {
	font-size: var(--wp--preset--font-size--body);
	color: var(--wp--preset--color--ink);
	opacity: 0.6;
	margin: 0;
	line-height: 1.5;
}

.wp-block-heading.has-text-align-center {
	margin-bottom: 0.5rem;
}

/* ── Hairline rules on tables ───────────────────────── */

.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table th,
.wp-block-table td {
	border-bottom: 1px solid var(--wp--preset--color--grid);
	padding: 0.75rem 1rem;
	text-align: left;
}

.wp-block-table th {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--rail);
}

/* Responsive tables */
.wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* ── Fee tables ────────────────────────────────────── */

.yo-fee-table table {
	border: 1px solid var(--wp--preset--color--grid);
	border-radius: 0.375rem;
	overflow: hidden;
}

.yo-fee-table thead tr {
	background: var(--wp--preset--color--rail);
}

.yo-fee-table th {
	color: var(--wp--preset--color--paper);
	border-bottom-color: var(--wp--preset--color--rail);
	padding: 0.875rem 1.25rem;
}

.yo-fee-table td {
	padding: 0.875rem 1.25rem;
}

.yo-fee-table tbody tr:nth-child(even) {
	background: rgba(0, 26, 114, 0.03);
}

.yo-fee-table tbody tr:hover {
	background: rgba(0, 26, 114, 0.06);
}

.yo-fee-table td strong {
	color: var(--wp--preset--color--rail);
}

/* ── Buttons ────────────────────────────────────────── */

.wp-block-button__link {
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button__link:active {
	transform: translateY(0);
}

/* ── Footer ─────────────────────────────────────────── */

.yo-footer-logo {
	margin: 0 !important;
}

.yo-footer-logo img {
	filter: brightness(0) invert(1);
	opacity: 0.7;
	transition: opacity 0.2s ease;
}

.yo-footer-logo a:hover img {
	opacity: 1;
}

.yo-footer-links a {
	color: var(--wp--preset--color--paper) !important;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.yo-footer-links a:hover {
	opacity: 0.8;
	text-decoration: underline;
}

/* ── Contact page ───────────────────────────────────── */

.yo-contact-card {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yo-contact-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.yo-contact-icon {
	color: var(--wp--preset--color--rail);
}

.yo-social-grid {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.yo-social-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border: 1px solid var(--wp--preset--color--grid);
	border-radius: 2rem;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.yo-social-link:hover {
	border-color: var(--wp--preset--color--rail);
	background-color: rgba(0, 26, 114, 0.05);
}

.yo-social-icon {
	width: 1.125rem;
	height: 1.125rem;
	flex-shrink: 0;
	color: var(--wp--preset--color--rail);
	transition: color 0.2s ease;
}

.yo-social-link:hover .yo-social-icon {
	color: var(--wp--preset--color--signal);
}

.yo-social-name {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}

.yo-social-handle {
	display: none;
}

/* ── Skip link — hidden until focused ───────────────── */

.skip-link,
.skip-link.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus,
.skip-link.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	display: block;
	position: fixed !important;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100000;
	height: auto;
	width: auto;
	margin: 0;
	padding: 0.75rem 1.5rem;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
	font-size: var(--wp--preset--font-size--body);
	text-decoration: none;
	line-height: normal;
	border-radius: 0.25rem;
}
