/**
 * SarvaSetu Enterprises - component styles.
 * Design tokens (colour, type, spacing) come from theme.json.
 * This file only styles the theme's own section components.
 */

/* -------------------------------------------------- *
 * 1. Base / accessibility
 * -------------------------------------------------- */

html {
	-webkit-text-size-adjust: 100%;
}

body {
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
}

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

*:focus-visible {
	outline: 2px solid var(--wp--preset--color--gold);
	outline-offset: 2px;
}

.sv-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;
}

.sv-skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 9999;
	padding: 12px 20px;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
	font-weight: 700;
	border-radius: 3px;
}

/* -------------------------------------------------- *
 * 2. Typographic helpers
 * -------------------------------------------------- */

.sv-eyebrow {
	margin-bottom: 0.75rem !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue);
}

.sv-eyebrow--gold,
.sv-on-dark .sv-eyebrow {
	color: var(--wp--preset--color--gold-soft);
}

.sv-eyebrow::before {
	content: "";
	display: inline-block;
	width: 26px;
	height: 2px;
	margin-right: 0.7rem;
	vertical-align: 0.28em;
	background: currentColor;
	opacity: 0.85;
}

.sv-lead {
	font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
	line-height: 1.72;
	color: var(--wp--preset--color--slate);
	max-width: 62ch;
}

.sv-on-dark,
.sv-on-dark p,
.sv-on-dark li {
	color: rgba(255, 255, 255, 0.82);
}

.sv-on-dark h1,
.sv-on-dark h2,
.sv-on-dark h3,
.sv-on-dark h4,
.sv-on-dark h5 {
	color: #fff;
}

.sv-on-dark .sv-lead {
	color: rgba(255, 255, 255, 0.82);
}

.sv-section-head {
	max-width: 46rem;
}

.sv-section-head--center {
	margin-inline: auto;
	text-align: center;
}

.sv-section-head--center .sv-lead {
	margin-inline: auto;
}

.sv-rule {
	display: block;
	width: 56px;
	height: 3px;
	margin: 1.5rem 0 0;
	background: linear-gradient(90deg, #c9a227 0%, #e3c55c 100%);
	border: 0;
}

.sv-section-head--center .sv-rule {
	margin-inline: auto;
}

/* -------------------------------------------------- *
 * 3. Header
 * -------------------------------------------------- */

.sv-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--navy);
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	box-shadow: 0 1px 0 rgba(10, 27, 51, 0.4);
}

.sv-header__bar {
	min-height: 76px;
}

.sv-header .wp-block-site-title a {
	color: #fff;
	text-decoration: none;
	letter-spacing: -0.01em;
}

.sv-header .wp-block-site-title a:hover {
	color: var(--wp--preset--color--gold-soft);
}

.sv-brand__tag {
	display: block;
	margin: 2px 0 0 !important;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
	line-height: 1.2;
}

.sv-header .wp-block-navigation {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.9375rem;
	font-weight: 550;
}

.sv-header .wp-block-navigation .wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.88);
	padding: 0.35rem 0;
	border-bottom: 2px solid transparent;
	text-decoration: none;
}

.sv-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.sv-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	color: #fff;
	border-bottom-color: var(--wp--preset--color--gold);
}

.sv-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-top: 3px solid var(--wp--preset--color--gold);
	box-shadow: 0 18px 44px rgba(10, 27, 51, 0.16);
	min-width: 268px;
	padding: 0.35rem 0;
}

.sv-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: var(--wp--preset--color--navy);
	padding: 0.6rem 1.15rem;
	border-bottom: 0;
	width: 100%;
}

.sv-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--mist);
	color: var(--wp--preset--color--blue);
}

/* Mobile overlay menu */
.sv-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--navy) !important;
	padding: clamp(1.5rem, 5vw, 3rem);
}

.sv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: #fff;
	font-size: 1.25rem;
	border-bottom: 0;
}

.sv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding-left: 0.5rem;
}

.sv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	color: rgba(255, 255, 255, 0.8);
	font-size: 1rem;
	padding: 0.4rem 0;
}

.sv-header .wp-block-navigation__responsive-container-open,
.sv-header .wp-block-navigation__responsive-container-close {
	color: #fff;
}

.sv-header .wp-block-button__link {
	white-space: nowrap;
}

/* Compact the CTA on small screens */
@media (max-width: 599px) {
	.sv-header__cta {
		display: none;
	}
}

/* -------------------------------------------------- *
 * 4. Decorative technology backgrounds (CSS only)
 * -------------------------------------------------- */

.sv-tech-bg {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background-color: var(--wp--preset--color--navy);
}

.sv-tech-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
	background-size: 64px 64px;
	background-position: center;
	mask-image: radial-gradient(120% 100% at 70% 0%, #000 0%, transparent 78%);
	-webkit-mask-image: radial-gradient(120% 100% at 70% 0%, #000 0%, transparent 78%);
}

.sv-tech-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(46rem 30rem at 88% 8%, rgba(46, 111, 183, 0.34) 0%, transparent 62%),
		radial-gradient(34rem 24rem at 4% 96%, rgba(201, 162, 39, 0.15) 0%, transparent 66%),
		linear-gradient(135deg, #0a1b33 0%, #10243f 58%, #14314f 100%);
}

.sv-hero {
	color: #fff;
}

.sv-hero__inner {
	position: relative;
	z-index: 1;
}

.sv-hero h1 {
	max-width: 22ch;
}

.sv-hero .sv-lead {
	max-width: 56ch;
}

.sv-hero__accent {
	display: block;
	color: var(--wp--preset--color--gold-soft);
}

.sv-page-hero {
	color: #fff;
}

.sv-page-hero h1 {
	max-width: 26ch;
}

.sv-hero-note {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 0.95rem;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

/* Hero capability strip */
.sv-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1px;
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 4px;
	overflow: hidden;
}

.sv-strip > * {
	margin: 0 !important;
	padding: 1.1rem 1.25rem;
	background: rgba(10, 27, 51, 0.5);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.9375rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
}

/* -------------------------------------------------- *
 * 5. Grids and cards
 * -------------------------------------------------- */

.sv-grid {
	display: grid;
	gap: clamp(1rem, 1.6vw, 1.5rem);
}

.sv-grid > * {
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
	min-width: 0;
}

.sv-grid--2,
.sv-grid--3,
.sv-grid--4 {
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.sv-grid--3,
	.sv-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 782px) {
	.sv-grid--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.sv-grid--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.sv-grid--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.sv-card {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	position: relative;
	padding: clamp(1.4rem, 2.2vw, 2rem);
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(10, 27, 51, 0.03);
	transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.sv-card::before {
	content: "";
	position: absolute;
	inset: -1px -1px auto -1px;
	height: 3px;
	border-radius: 4px 4px 0 0;
	background: linear-gradient(90deg, #c9a227 0%, #e3c55c 100%);
	opacity: 0;
	transition: opacity 0.22s ease;
}

.sv-card:hover,
.sv-card:focus-within {
	border-color: #c9cfda;
	box-shadow: 0 2px 6px rgba(10, 27, 51, 0.06), 0 16px 38px rgba(10, 27, 51, 0.09);
	transform: translateY(-2px);
}

.sv-card:hover::before,
.sv-card:focus-within::before {
	opacity: 1;
}

.sv-card > * {
	margin: 0 !important;
}

.sv-card h3,
.sv-card h4 {
	letter-spacing: -0.01em;
}

.sv-card p {
	font-size: 0.9375rem;
	line-height: 1.68;
	color: var(--wp--preset--color--slate);
}

.sv-card .sv-card__link {
	margin-top: auto !important;
	padding-top: 0.4rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.875rem;
	font-weight: 650;
	letter-spacing: 0.02em;
}

.sv-card .sv-card__link a {
	color: var(--wp--preset--color--blue);
	text-decoration: none;
}

.sv-card .sv-card__link a::after {
	content: " \2192";
	transition: opacity 0.2s ease;
}

.sv-card .sv-card__link a:hover {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

.sv-card--flat:hover,
.sv-card--flat:focus-within {
	transform: none;
}

.sv-card--dark {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.14);
	box-shadow: none;
}

.sv-card--dark h3,
.sv-card--dark h4 {
	color: #fff;
}

.sv-card--dark p,
.sv-card--dark li {
	color: rgba(255, 255, 255, 0.78);
}

.sv-card--dark:hover {
	border-color: rgba(201, 162, 39, 0.5);
	background: rgba(255, 255, 255, 0.06);
}

/* Small square glyph badge */
.sv-icon {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 0.5rem !important;
	border: 1px solid rgba(27, 79, 138, 0.22);
	border-radius: 3px;
	background: linear-gradient(150deg, rgba(27, 79, 138, 0.09) 0%, rgba(201, 162, 39, 0.12) 100%);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--blue);
}

.sv-card--dark .sv-icon {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.07);
	color: var(--wp--preset--color--gold-soft);
}

.sv-index {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--wp--preset--color--gold);
}

/* -------------------------------------------------- *
 * 6. Capability tag lists
 * -------------------------------------------------- */

.sv-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0.35rem 0 0 !important;
	padding: 0 !important;
	list-style: none;
}

.sv-tags li {
	padding: 0.32rem 0.7rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 3px;
	background: var(--wp--preset--color--mist);
	font-size: 0.8125rem;
	font-weight: 550;
	line-height: 1.35;
	color: #3d4f66;
}

.sv-card--dark .sv-tags li,
.sv-on-dark .sv-tags li {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.16);
	color: rgba(255, 255, 255, 0.82);
}

.sv-check {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.sv-check li {
	position: relative;
	padding: 0.3rem 0 0.3rem 1.6rem;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.sv-check li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.85em;
	width: 8px;
	height: 8px;
	border-radius: 1px;
	background: var(--wp--preset--color--gold);
	transform: translateY(-50%) rotate(45deg);
}

.sv-columns-2 {
	columns: 2;
	column-gap: 2rem;
}

@media (max-width: 599px) {
	.sv-columns-2 {
		columns: 1;
	}
}

/* -------------------------------------------------- *
 * 7. Delivery process
 * -------------------------------------------------- */

.sv-steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 600px) {
	.sv-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 782px) {
	.sv-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.sv-steps {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.sv-steps > * {
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.5rem 1.4rem;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-top: 3px solid var(--wp--preset--color--blue);
	border-radius: 3px;
}

.sv-steps > * > * {
	margin: 0 !important;
}

.sv-steps h4 {
	font-size: 1rem;
}

.sv-steps p {
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--wp--preset--color--slate);
}

.sv-steps .sv-index {
	display: block;
	padding-bottom: 0.35rem;
}

/* -------------------------------------------------- *
 * 8. Technology ecosystem
 * -------------------------------------------------- */

.sv-eco {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

@media (min-width: 600px) {
	.sv-eco {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.sv-eco {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.sv-eco > * {
	margin: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 92px;
	padding: 1rem;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sv-eco > *:hover {
	border-color: rgba(201, 162, 39, 0.6);
	box-shadow: 0 10px 26px rgba(10, 27, 51, 0.07);
}

.sv-eco > * > * {
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #2b3a4d;
	text-align: center;
}

.sv-eco img {
	max-height: 46px;
	width: auto;
	object-fit: contain;
}

.sv-eco-note {
	margin-top: 1.5rem !important;
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--wp--preset--color--slate);
}

/* -------------------------------------------------- *
 * 9. Panels, split sections, CTA
 * -------------------------------------------------- */

.sv-panel {
	padding: clamp(1.6rem, 3vw, 2.75rem);
	background: var(--wp--preset--color--mist);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
}

.sv-panel--rule {
	border-left: 3px solid var(--wp--preset--color--gold);
}

.sv-panel--dark {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.15);
}

.sv-cta {
	color: #fff;
}

.sv-cta h2 {
	max-width: 30ch;
}

.sv-cta .sv-lead {
	max-width: 58ch;
}

.sv-quiet {
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--wp--preset--color--slate);
}

.sv-on-dark .sv-quiet {
	color: rgba(255, 255, 255, 0.62);
}

/* Outline button variant on dark backgrounds */
.sv-btn-outline .wp-block-button__link,
.wp-block-button.sv-btn-outline > .wp-block-button__link {
	background: transparent !important;
	border-color: rgba(255, 255, 255, 0.42) !important;
	color: #fff !important;
}

.sv-btn-outline .wp-block-button__link:hover,
.wp-block-button.sv-btn-outline > .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.1) !important;
	border-color: #fff !important;
	color: #fff !important;
}

.sv-btn-navy .wp-block-button__link,
.wp-block-button.sv-btn-navy > .wp-block-button__link {
	background: var(--wp--preset--color--navy) !important;
	border-color: var(--wp--preset--color--navy) !important;
	color: #fff !important;
}

.sv-btn-navy .wp-block-button__link:hover,
.wp-block-button.sv-btn-navy > .wp-block-button__link:hover {
	background: var(--wp--preset--color--blue) !important;
	border-color: var(--wp--preset--color--blue) !important;
}

/* -------------------------------------------------- *
 * 10. Contact
 * -------------------------------------------------- */

.sv-contact-meta {
	display: grid;
	gap: 1.15rem;
}

.sv-contact-meta > * {
	margin: 0 !important;
}

.sv-contact-label {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue);
	margin-bottom: 0.2rem !important;
}

.sv-contact-value {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--wp--preset--color--ink);
}

.sv-map {
	position: relative;
	min-height: 320px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
	background-color: var(--wp--preset--color--mist);
	background-image:
		linear-gradient(rgba(27, 79, 138, 0.09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(27, 79, 138, 0.09) 1px, transparent 1px);
	background-size: 38px 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2rem;
}

.sv-map > * {
	margin: 0 !important;
	max-width: 34ch;
	font-size: 0.9375rem;
	color: #3d4f66;
}

.sv-form-slot {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-top: 3px solid var(--wp--preset--color--gold);
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(10, 27, 51, 0.04), 0 14px 34px rgba(10, 27, 51, 0.06);
}

/* -------------------------------------------------- *
 * 11. Footer
 * -------------------------------------------------- */

.sv-footer {
	color: rgba(255, 255, 255, 0.72);
}

.sv-footer h2,
.sv-footer h3,
.sv-footer h4 {
	color: #fff;
}

.sv-footer .sv-footer__title {
	margin-bottom: 1rem !important;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}

.sv-footer p,
.sv-footer li {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.72);
}

.sv-footer a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.sv-footer a:hover {
	color: var(--wp--preset--color--gold-soft);
	text-decoration: none;
}

.sv-footer__links {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.sv-footer__links li {
	padding: 0.28rem 0;
}

.sv-footer__brand {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 0.35rem !important;
}

.sv-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	margin-top: clamp(2.5rem, 5vw, 3.5rem);
	padding-top: 1.5rem;
}

.sv-footer__bar p {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.55);
	margin: 0 !important;
}

/* -------------------------------------------------- *
 * 12. Editorial (blog / single / archive)
 * -------------------------------------------------- */

.sv-entry-meta {
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}

.sv-post-card {
	padding: clamp(1.25rem, 2vw, 1.75rem);
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 4px;
}

.sv-post-card .wp-block-post-title a {
	text-decoration: none;
}

.sv-prose > * {
	max-width: 100%;
}

/* -------------------------------------------------- *
 * 13. Utilities and motion
 * -------------------------------------------------- */

.sv-narrow {
	max-width: 44rem;
}

.sv-divider {
	height: 1px;
	background: var(--wp--preset--color--border);
	border: 0;
}

.sv-sticky-side {
	position: sticky;
	top: 108px;
}

@media (max-width: 781px) {
	.sv-sticky-side {
		position: static;
	}
}

/* Reveal only activates when JS is available, so content is never hidden. */
.sv-js .sv-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.55s ease, transform 0.55s ease;
	will-change: opacity, transform;
}

.sv-js .sv-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.sv-reveal,
	.sv-card,
	.sv-eco > * {
		transition: none !important;
	}

	.sv-js .sv-reveal {
		opacity: 1;
		transform: none;
	}
}

/* Editor-only safety: keep grids readable inside the block editor canvas */
.editor-styles-wrapper .sv-grid > *,
.editor-styles-wrapper .sv-steps > * {
	min-width: 0;
}

/* -------------------------------------------------- *
 * 14. Icon glyphs and logo sizing (added last on purpose)
 * -------------------------------------------------- */

.sv-icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

.sv-header .wp-block-site-logo img {
	max-height: 52px;
	width: auto;
}

.sv-header .wp-block-site-logo {
	line-height: 0;
}

/* Ecosystem tiles: keep uploaded brand logos tidy if images replace the text */
.sv-eco .wp-block-image {
	margin: 0 !important;
}

/* Prevent long capability words from causing horizontal overflow on mobile */
.sv-card h3,
.sv-card h4,
.sv-steps h4,
.sv-tags li,
.sv-check li {
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: none;
}

@media (max-width: 480px) {
	.sv-strip > * {
		font-size: 0.875rem;
	}

	.sv-eco > * {
		min-height: 78px;
	}

	.sv-eco > * > * {
		font-size: 0.9375rem;
	}
}

/* -------------------------------------------------- *
 * 15. Alignment inside constrained containers
 * WordPress centres any child narrower than the content width, so elements
 * that carry their own max-width must be explicitly left-anchored.
 * -------------------------------------------------- */

.sv-lead,
.sv-section-head,
.sv-hero h1,
.sv-hero .sv-lead,
.sv-page-hero h1,
.sv-cta h2,
.sv-cta .sv-lead,
.sv-narrow,
.sv-rule,
.sv-map > *,
.sv-card h3,
.sv-card h4 {
	margin-left: 0 !important;
	margin-right: auto !important;
}

.sv-section-head--center,
.sv-section-head--center .sv-lead,
.sv-section-head--center h2,
.sv-section-head--center h3,
.sv-section-head--center .sv-rule,
.sv-eco-note,
.sv-map > * {
	margin-left: auto !important;
	margin-right: auto !important;
}

.sv-section-head--center .sv-rule {
	margin-top: 1.5rem !important;
}
