/**
 * Saicare — front-end stylesheet
 *
 * Styles every class emitted by templates/, parts/ and inc/block-patterns.php.
 * Mobile-first, no external requests, no web fonts fetched from a CDN (keeps the
 * theme's Content-Security-Policy and privacy promise intact).
 *
 * All brand colour comes from the --sp-* custom properties set in style.css and
 * regenerated by inc/customizer.php. Nothing here hardcodes a brand hex.
 *
 * @package SaicarePlus
 * @version 2.0.0
 */

/* ==========================================================================
   1. Reset and base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	background: var(--sp-bone);
	color: var(--sp-stone-700);
	font-family: var(--sp-font-body);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--sp-font-heading);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.015em;
	color: var(--sp-ink);
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
ul { list-style: none; }

a { color: var(--sp-olive-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--sp-olive); }

button { font: inherit; cursor: pointer; }

:focus-visible {
	outline: 3px solid var(--sp-gold);
	outline-offset: 3px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--sp-gold);
	color: var(--sp-ink);
	padding: 12px 22px;
	font-weight: 600;
	border-radius: 0 0 var(--sp-radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   2. Layout primitives
   ========================================================================== */

/* --------------------------------------------------------------------------
   The container
   --------------------------------------------------------------------------
   WordPress's constrained layout sets a max-width and auto side margins on
   .is-layout-constrained children, but it does NOT give them side padding. In a
   theme built from full-bleed sections that means content runs to the viewport
   edge on a phone. This block supplies the gutter once, and everything below
   builds on it instead of repeating max-width and padding.

   Specificity note: WordPress prints its layout CSS in the global stylesheet,
   so these rules have to out-specify `.wp-container-N > *`. The `.wp-site-blocks`
   prefix and the element+class selectors below are deliberate, not decoration.
   -------------------------------------------------------------------------- */

/* Front-end wrapper. `clip` stops any single overflowing element from giving the
   whole document a horizontal scrollbar, without breaking `position: sticky`
   on the header the way `overflow-x: hidden` on body would. */
.wp-site-blocks {
	overflow-x: clip;
}

/* Every constrained container gets the page gutter. */
.wp-site-blocks .is-layout-constrained > * {
	max-width: var(--sp-container);
	margin-inline: auto;
	padding-inline: var(--sp-gutter);
}

/* Wide children may exceed the content width, and keep the gutter. */
.wp-site-blocks .is-layout-constrained > .alignwide {
	max-width: var(--sp-wide);
}

/* Full-bleed children break out of both the width and the gutter. */
.wp-site-blocks .is-layout-constrained > .alignfull {
	max-width: none;
	margin-inline: 0;
	padding-inline: 0;
}

/* A full-bleed section re-establishes the container for its own contents, so a
   cover or a coloured band still has its text inset by the gutter. */
.wp-site-blocks .alignfull > .is-layout-constrained > * {
	max-width: var(--sp-container);
	margin-inline: auto;
	padding-inline: var(--sp-gutter);
}

/* Flex and grid layouts size their own children; they only need the gutter. */
.wp-site-blocks .is-layout-flex,
.wp-site-blocks .is-layout-grid {
	padding-inline: 0;
}

/* Grid and flex children must be allowed to shrink below their content width, or
   one long word or one nowrap label forces the page wider than the viewport. */
.wp-block-columns,
.wp-block-column,
.wp-block-group,
.wp-block-cover__inner-container,
.is-layout-grid > *,
.is-layout-flex > * {
	min-width: 0;
}

/* Long unbroken strings — URLs, email addresses, reference numbers — wrap rather
   than push the layout out. */
.site-main p,
.site-main li,
.site-main h1,
.site-main h2,
.site-main h3,
.site-main h4,
.footer-main p,
.footer-main li {
	overflow-wrap: break-word;
}

/* Media never overflows its column. */
.site-main img,
.site-main video,
.site-main iframe {
	max-width: 100%;
}

/* Embeds keep their aspect box; tables scroll sideways on a phone instead of
   stretching the page. */
.wp-block-embed__wrapper { position: relative; }
.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wp-block-table table { min-width: 100%; }

/* The theme's own container utility, for hand-built markup and child themes. */
.sp-container {
	width: 100%;
	max-width: var(--sp-container);
	margin-inline: auto;
	padding-inline: var(--sp-gutter);
}

.sp-section { padding-block: var(--sp-section); }

/* Section rhythm: alternating surfaces */
.services-section,
.stats-section,
.testimonials-section,
.newsletter-section,
.cta-section,
.footer-main { padding-block: var(--sp-section); }

.page-header,
.post-header {
	padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
}

.page-title,
.post-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }

.page-excerpt {
	margin-top: 1rem;
	max-width: 62ch;
	color: var(--sp-stone-600);
	font-size: 1.125rem;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	margin-top: .75rem;
	font-size: .875rem;
	color: var(--sp-stone-500);
}

.breadcrumb { max-width: var(--sp-container); margin-inline: auto; padding: 1rem var(--sp-gutter) 0; }
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .8125rem; color: var(--sp-stone-500); }
.breadcrumb-item { display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumb-separator { color: var(--sp-stone-300); }
.breadcrumb-current { color: var(--sp-stone-700); font-weight: 500; }

/* ==========================================================================
   3. Section headers
   ========================================================================== */

.section-title {
	text-align: center;
	font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.6rem);
	letter-spacing: -0.018em;
}

.section-subtitle {
	text-align: center;
	margin: 1rem auto 0;
	max-width: 60ch;
	color: var(--sp-stone-600);
	font-size: 1.0625rem;
	line-height: 1.65;
}

.section-eyebrow {
	display: block;
	text-align: center;
	margin-bottom: 1rem;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--sp-olive);
}

.section-head { margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.section-cta { margin-top: clamp(2.5rem, 4vw, 3rem); }

/* Gold hairline under a section title — the one repeating brand gesture */
.section-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin: 1.25rem auto 0;
	border-radius: 2px;
	background: var(--sp-gold);
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(251, 250, 246, .92);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	border-bottom: 1px solid var(--sp-stone-200);
}

/* Thin brand rule above the header */
.site-header::before {
	content: "";
	display: block;
	height: 3px;
	background: linear-gradient(90deg, var(--sp-olive) 0%, var(--sp-olive) 55%, var(--sp-gold) 55%, var(--sp-gold) 100%);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	width: 100%;
	max-width: var(--sp-wide);
	margin-inline: auto;
	padding: .875rem var(--sp-gutter);
	min-height: var(--sp-header-h);
}

.site-logo { flex: 0 0 auto; }
.site-logo img { max-height: 48px; width: auto; }

/* Fallback brand lockup when no logo is uploaded */
.site-branding { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.site-branding .brand-mark {
	width: 42px; height: 42px;
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--sp-olive-deep), var(--sp-olive));
	color: var(--sp-gold-light);
}
.site-branding .brand-mark svg { width: 24px; height: 24px; }
.site-branding .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-branding .brand-name {
	font-family: var(--sp-font-heading);
	font-size: 1.3125rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--sp-ink);
}
.site-branding .brand-tag {
	font-size: .625rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--sp-stone-500);
	margin-top: 3px;
}

.primary-navigation { margin-left: auto; }
.primary-navigation .wp-block-navigation-item__content {
	padding: .5rem 0;
	color: var(--sp-stone-700);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color var(--sp-transition), border-color var(--sp-transition);
}
.primary-navigation .wp-block-navigation-item__content:hover,
.primary-navigation .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--sp-olive-deep);
	border-bottom-color: var(--sp-gold);
}
.primary-navigation .wp-block-navigation__container { gap: clamp(1rem, 2vw, 1.75rem); }

.header-cta { margin-left: .5rem; }
.header-cta .wp-block-button__link { font-size: .875rem; padding: .65em 1.35em; }

/* Core navigation overlay / submenu polish */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--sp-bone);
	padding: 1.5rem var(--sp-gutter);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.125rem;
	padding: .75rem 0;
	border-bottom: 1px solid var(--sp-stone-200);
}
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	color: var(--sp-ink);
	border-radius: var(--sp-radius-sm);
}
.wp-block-navigation__submenu-container {
	background: var(--sp-white);
	border: 1px solid var(--sp-stone-200);
	border-radius: var(--sp-radius-md);
	box-shadow: var(--sp-shadow-lg);
	padding: .5rem;
	min-width: 220px;
}
.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: .55rem .75rem;
	border-radius: var(--sp-radius-sm);
	border-bottom: 0;
}
.wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--sp-olive-tint);
	color: var(--sp-olive-deep);
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.wp-block-button__link,
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	border-radius: var(--sp-radius-pill);
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--sp-transition), color var(--sp-transition),
	            border-color var(--sp-transition), transform var(--sp-transition), box-shadow var(--sp-transition);
}

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

/* Primary — olive */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--sp-olive);
	color: var(--sp-white);
	box-shadow: 0 6px 18px -10px rgba(104, 125, 51, .85);
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--sp-olive-dark);
	box-shadow: 0 12px 26px -12px rgba(104, 125, 51, .95);
}

/* Outline */
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--sp-olive-dark);
	border: 1.5px solid var(--sp-olive);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--sp-olive-tint);
	border-color: var(--sp-olive-dark);
	color: var(--sp-olive-deep);
}

/* Gold — reserved for the single highest-intent action on a screen */
.btn-accent .wp-block-button__link,
.btn-gold .wp-block-button__link {
	background: var(--sp-gold);
	color: var(--sp-ink);
	box-shadow: 0 6px 18px -10px rgba(214, 168, 0, .9);
}
.btn-accent .wp-block-button__link:hover,
.btn-gold .wp-block-button__link:hover { background: var(--sp-gold-dark); color: var(--sp-white); }

/* Light — on dark surfaces */
.btn-light .wp-block-button__link {
	background: rgba(255, 255, 255, .1);
	color: var(--sp-white);
	border: 1.5px solid rgba(255, 255, 255, .34);
	box-shadow: none;
}
.btn-light .wp-block-button__link:hover { background: rgba(255, 255, 255, .2); }

/* ==========================================================================
   6. Hero
   ========================================================================== */

.hero-section {
	position: relative;
	overflow: hidden;
	background: var(--sp-ink);
	color: var(--sp-white);
	padding-block: clamp(4rem, 9vw, 8rem);
	isolation: isolate;
}

/* Layered depth: olive wash, gold glow, faint grid */
.hero-section::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(900px 480px at 82% 8%, rgba(214, 168, 0, .22), transparent 62%),
		radial-gradient(760px 520px at 12% 96%, rgba(104, 125, 51, .34), transparent 66%),
		linear-gradient(160deg, #171A14 0%, #2C3128 58%, #3A471C 100%);
}

.hero-section::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: .28;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(760px 420px at 78% 12%, #000 0%, transparent 78%);
	-webkit-mask-image: radial-gradient(760px 420px at 78% 12%, #000 0%, transparent 78%);
}

.hero-content {
	position: relative;
	max-width: 60rem;
	margin-inline: auto;
	text-align: center;
	padding-inline: var(--sp-gutter);
}

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin-bottom: 1.5rem;
	padding: .45rem 1rem;
	border-radius: var(--sp-radius-pill);
	background: rgba(214, 168, 0, .14);
	border: 1px solid rgba(214, 168, 0, .38);
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--sp-gold-light);
}

.hero-title {
	color: var(--sp-white) !important;
	font-size: clamp(2.25rem, 1.2rem + 4.4vw, 4rem);
	line-height: 1.06;
	letter-spacing: -0.026em;
	text-wrap: balance;
}

.hero-subtitle {
	margin: 1.5rem auto 0 !important;
	max-width: 56ch;
	color: rgba(255, 255, 255, .82) !important;
	font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
	line-height: 1.65;
	text-wrap: pretty;
}

.hero-cta { margin-top: 2.25rem; justify-content: center; }

.hero-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .75rem 1.75rem;
	margin-top: 2rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: .875rem;
	color: rgba(255, 255, 255, .72);
}
.hero-trust li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-trust .sp-icon { color: var(--sp-gold-light); width: 16px; height: 16px; }

/* ==========================================================================
   7. Service cards
   ========================================================================== */

.services-section { background: var(--sp-bone); }

.services-grid { margin-top: 0; }
.services-grid .wp-block-column {
	display: flex;
	flex-direction: column;
	gap: .875rem;
	position: relative;
	background: var(--sp-white);
	border: 1px solid var(--sp-stone-200);
	border-radius: var(--sp-radius-lg);
	padding: 1.75rem;
	overflow: hidden;
	transition: transform var(--sp-transition), box-shadow var(--sp-transition), border-color var(--sp-transition);
}

/* Olive rule that grows on hover — the card's "signal" */
.services-grid .wp-block-column::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--sp-olive), var(--sp-gold));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 320ms cubic-bezier(.2,.7,.3,1);
}

.services-grid .wp-block-column:hover {
	transform: translateY(-4px);
	box-shadow: var(--sp-shadow-lg);
	border-color: var(--sp-stone-300);
}
.services-grid .wp-block-column:hover::before { transform: scaleX(1); }

.service-icon {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border-radius: 13px;
	background: var(--sp-olive-tint);
	color: var(--sp-olive-dark);
	border: 1px solid rgba(104, 125, 51, .18);
	flex: 0 0 auto;
}
.service-icon svg { width: 24px; height: 24px; }
.service-icon p { margin: 0; line-height: 0; }

.service-title { font-size: 1.1875rem; margin: 0; }
.service-description { color: var(--sp-stone-600); font-size: .9375rem; line-height: 1.65; margin: 0; }

.service-link {
	margin-top: auto;
	padding-top: .5rem;
	font-size: .875rem;
	font-weight: 600;
	color: var(--sp-olive-dark);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: .375rem;
}
.service-link:hover { color: var(--sp-gold-dark); }
.service-link svg { width: 15px; height: 15px; transition: transform var(--sp-transition); }
.service-link:hover svg { transform: translateX(3px); }

/* ==========================================================================
   8. Stats band
   ========================================================================== */

.stats-section {
	position: relative;
	overflow: hidden;
	background: var(--sp-olive-deep);
	color: var(--sp-white);
}

.stats-section::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(620px 320px at 88% 0%, rgba(214, 168, 0, .26), transparent 62%),
		linear-gradient(135deg, var(--sp-olive-deep) 0%, var(--sp-olive-dark) 100%);
}
.stats-section .wp-block-columns { position: relative; }

.stats-grid { text-align: center; }

.stat-item { padding: 1rem .5rem; }

.stat-number,
.stat-item .wp-block-heading {
	font-family: var(--sp-font-heading);
	font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.25rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--sp-gold-light);
	font-variant-numeric: tabular-nums;
	margin: 0;
}

.stat-label {
	margin-top: .625rem;
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: .11em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .74);
}

/* Divider between stats on wide screens */
@media (min-width: 782px) {
	.stats-grid .wp-block-column + .wp-block-column { border-left: 1px solid rgba(255, 255, 255, .14); }
}

/* ==========================================================================
   9. Why-us / feature list
   ========================================================================== */

.features-section { background: var(--sp-stone-50); }

.feature-list { display: grid; gap: 1rem; }
.feature-list .wp-block-column { display: flex; flex-direction: column; gap: .5rem; }

.feature-item {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1.25rem 1.375rem;
	background: var(--sp-white);
	border: 1px solid var(--sp-stone-200);
	border-radius: var(--sp-radius-md);
}
.feature-item .sp-icon { color: var(--sp-olive); flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; }
.feature-item h3, .feature-item strong { display: block; font-size: 1rem; color: var(--sp-ink); }
.feature-item p { margin: .25rem 0 0; font-size: .9375rem; color: var(--sp-stone-600); line-height: 1.6; }

/* ==========================================================================
   10. Testimonials
   ========================================================================== */

.testimonials-section { background: var(--sp-bone); }

.testimonials-grid .wp-block-column { margin: 0; }

.testimonial-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--sp-white);
	border: 1px solid var(--sp-stone-200);
	border-radius: var(--sp-radius-lg);
	padding: 2rem 1.75rem 1.75rem;
	box-shadow: var(--sp-shadow-sm);
}

/* Oversized gold quote mark */
.testimonial-card::before {
	content: "\201C";
	position: absolute;
	top: -.25rem;
	left: 1.25rem;
	font-family: var(--sp-font-serif);
	font-size: 4.5rem;
	line-height: 1;
	color: var(--sp-gold);
	opacity: .28;
}

.testimonial-content { display: flex; flex-direction: column; height: 100%; }
.testimonial-content p:first-child {
	font-family: var(--sp-font-serif);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--sp-stone-700);
	font-style: italic;
}

.testimonial-author {
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px solid var(--sp-stone-200);
	font-size: .875rem;
	font-weight: 600;
	color: var(--sp-olive-deep) !important;
}

/* Star row used in some patterns */
.rating { display: flex; gap: .125rem; margin-bottom: .875rem; color: var(--sp-gold); }
.rating svg { width: 16px; height: 16px; }

/* ==========================================================================
   11. Trust strip / logos
   ========================================================================== */

.trust-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 2.5rem;
	padding: 1.75rem var(--sp-gutter);
	background: var(--sp-stone-50);
	border-block: 1px solid var(--sp-stone-200);
}
.trust-strip span {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--sp-stone-500);
}
.trust-strip .trust-item {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: .9375rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--sp-stone-700);
}
.trust-strip .sp-icon { color: var(--sp-olive); width: 18px; height: 18px; }

/* ==========================================================================
   12. Pricing / AMC plans
   ========================================================================== */

.pricing-section { background: var(--sp-stone-50); }

.pricing-grid { align-items: stretch; }
.pricing-grid .wp-block-column { display: flex; }

.pricing-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background: var(--sp-white);
	border: 1px solid var(--sp-stone-200);
	border-radius: var(--sp-radius-lg);
	padding: 2rem 1.75rem;
}

.pricing-card.is-featured {
	border: 2px solid var(--sp-olive);
	box-shadow: var(--sp-shadow-lg);
}

.pricing-badge {
	position: absolute;
	top: -13px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--sp-gold);
	color: var(--sp-ink);
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: .35rem .875rem;
	border-radius: var(--sp-radius-pill);
	white-space: nowrap;
}

.plan-name { font-size: 1.125rem; }
.plan-price {
	font-family: var(--sp-font-heading);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--sp-ink);
	margin: 1rem 0 .375rem;
}
.plan-price small { font-size: .875rem; font-weight: 500; color: var(--sp-stone-500); letter-spacing: 0; }
.plan-note { font-size: .875rem; color: var(--sp-stone-500); }
.plan-features { margin: 1.5rem 0; display: grid; gap: .75rem; }
.plan-features li {
	display: flex;
	gap: .625rem;
	align-items: flex-start;
	font-size: .9375rem;
	color: var(--sp-stone-600);
	line-height: 1.55;
}
.plan-features .sp-icon { color: var(--sp-olive); flex: 0 0 auto; width: 18px; height: 18px; margin-top: 3px; }
.pricing-card .wp-block-button { margin-top: auto; }
.pricing-card .wp-block-button__link { width: 100%; }

/* ==========================================================================
   13. Coverage map / cities
   ========================================================================== */

.coverage-section { background: var(--sp-bone); }
.city-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.city-chip {
	display: flex;
	align-items: center;
	gap: .625rem;
	padding: .875rem 1rem;
	background: var(--sp-white);
	border: 1px solid var(--sp-stone-200);
	border-radius: var(--sp-radius-md);
	font-size: .9375rem;
	font-weight: 500;
	color: var(--sp-stone-700);
}
.city-chip .sp-icon { color: var(--sp-olive); width: 17px; height: 17px; flex: 0 0 auto; }

/* ==========================================================================
   14. CTA band
   ========================================================================== */

.cta-section {
	position: relative;
	overflow: hidden;
	background: var(--sp-ink);
	color: var(--sp-white);
}
.cta-section::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(700px 380px at 80% 6%, rgba(214, 168, 0, .26), transparent 62%),
		linear-gradient(135deg, var(--sp-ink) 0%, var(--sp-olive-deep) 100%);
}

.cta-content { position: relative; text-align: center; max-width: 46rem; margin-inline: auto; }
.cta-title { color: var(--sp-white) !important; font-size: clamp(1.875rem, 1.3rem + 2.6vw, 2.875rem); text-wrap: balance; }
.cta-subtitle { margin-top: 1.25rem !important; color: rgba(255, 255, 255, .82) !important; font-size: 1.0625rem; line-height: 1.65; }
.cta-buttons { margin-top: 2rem; justify-content: center; }
.cta-reassure { margin-top: 1.25rem; font-size: .875rem; color: rgba(255, 255, 255, .6); }

/* ==========================================================================
   15. Newsletter
   ========================================================================== */

.newsletter-section { background: var(--sp-gold-tint); border-block: 1px solid rgba(214, 168, 0, .22); }
.newsletter-grid { align-items: center; gap: clamp(2rem, 4vw, 4rem); }
.newsletter-title { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.75rem); }
.newsletter-copy { margin-top: .875rem; color: var(--sp-stone-600); font-size: 1rem; line-height: 1.65; max-width: 46ch; }

.newsletter-form { display: flex; flex-wrap: wrap; gap: .75rem; }
.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
	flex: 1 1 16rem;
	min-width: 0;
	padding: .875rem 1.125rem;
	font: inherit;
	font-size: .9375rem;
	color: var(--sp-stone-700);
	background: var(--sp-white);
	border: 1px solid var(--sp-stone-300);
	border-radius: var(--sp-radius-pill);
}
.newsletter-form input::placeholder { color: var(--sp-stone-400); }
.newsletter-form input:focus {
	outline: none;
	border-color: var(--sp-olive);
	box-shadow: 0 0 0 3px rgba(104, 125, 51, .18);
}
.newsletter-form button,
.newsletter-form input[type="submit"] {
	flex: 0 0 auto;
	padding: .875rem 1.75rem;
	font: inherit;
	font-size: .9375rem;
	font-weight: 600;
	color: var(--sp-white);
	background: var(--sp-olive);
	border: 1px solid transparent;
	border-radius: var(--sp-radius-pill);
	transition: background-color var(--sp-transition);
}
.newsletter-form button:hover,
.newsletter-form input[type="submit"]:hover { background: var(--sp-olive-dark); }
.newsletter-note { margin-top: .875rem; font-size: .8125rem; color: var(--sp-stone-500); }

/* ==========================================================================
   16. Contact
   ========================================================================== */

.contact-section { background: var(--sp-bone); }
.contact-grid { gap: clamp(2rem, 4vw, 3.5rem); }

.contact-item { display: flex; gap: 1rem; align-items: flex-start; padding: .875rem 0; border-bottom: 1px solid var(--sp-stone-200); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .sp-icon {
	flex: 0 0 auto;
	width: 38px; height: 38px;
	display: grid; place-items: center;
	border-radius: 10px;
	background: var(--sp-olive-tint);
	color: var(--sp-olive-dark);
}
.contact-item .sp-icon svg { width: 19px; height: 19px; }
.contact-item .contact-label {
	display: block;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--sp-stone-500);
	margin-bottom: .25rem;
}
.contact-item .contact-value { font-size: 1rem; font-weight: 500; color: var(--sp-ink); }
.contact-item a.contact-value { text-decoration: none; }
.contact-item a.contact-value:hover { color: var(--sp-olive); text-decoration: underline; }

.contact-form-wrap {
	background: var(--sp-white);
	border: 1px solid var(--sp-stone-200);
	border-radius: var(--sp-radius-lg);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	box-shadow: var(--sp-shadow);
}

/* Contact Form 7 / generic form fields */
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select,
.contact-form-wrap input:not([type="submit"]),
.contact-form-wrap textarea,
.contact-form-wrap select {
	width: 100%;
	padding: .8125rem 1rem;
	font: inherit;
	font-size: .9375rem;
	color: var(--sp-stone-700);
	background: var(--sp-white);
	border: 1px solid var(--sp-stone-300);
	border-radius: var(--sp-radius-sm);
	transition: border-color var(--sp-transition), box-shadow var(--sp-transition);
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus,
.contact-form-wrap input:focus, .contact-form-wrap textarea:focus, .contact-form-wrap select:focus {
	outline: none;
	border-color: var(--sp-olive);
	box-shadow: 0 0 0 3px rgba(104, 125, 51, .16);
}
.wpcf7 label, .contact-form-wrap label {
	display: block;
	margin-bottom: .375rem;
	font-size: .875rem;
	font-weight: 600;
	color: var(--sp-stone-700);
}
.wpcf7 p, .contact-form-wrap .form-row { margin-bottom: 1.125rem; }
.wpcf7 input[type="submit"], .contact-form-wrap input[type="submit"] {
	padding: .875rem 1.875rem;
	font-weight: 600;
	color: var(--sp-white);
	background: var(--sp-olive);
	border: 0;
	border-radius: var(--sp-radius-pill);
	cursor: pointer;
	transition: background-color var(--sp-transition);
}
.wpcf7 input[type="submit"]:hover, .contact-form-wrap input[type="submit"]:hover { background: var(--sp-olive-dark); }
.wpcf7-not-valid-tip { font-size: .8125rem; color: var(--sp-error); margin-top: .25rem; }
.wpcf7-response-output {
	margin: 1.25rem 0 0 !important;
	padding: .875rem 1.125rem !important;
	border-radius: var(--sp-radius-sm) !important;
	font-size: .875rem;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--sp-success) !important; background: #F1F7EF; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: var(--sp-error) !important; background: #FCF1F0; }

/* ==========================================================================
   17. Team
   ========================================================================== */

.team-section { background: var(--sp-stone-50); }
.team-grid .wp-block-column { margin: 0; }
.team-member { text-align: center; }
.team-member .team-photo {
	width: 128px; height: 128px;
	margin: 0 auto 1.25rem;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--sp-white);
	box-shadow: var(--sp-shadow);
}
.team-member .team-photo-placeholder {
	width: 128px; height: 128px;
	margin: 0 auto 1.25rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--sp-olive-tint);
	color: var(--sp-olive-dark);
	border: 3px solid var(--sp-white);
	box-shadow: var(--sp-shadow);
}
.team-member .team-photo-placeholder svg { width: 48px; height: 48px; }
.team-member h3 { font-size: 1.0625rem; }
.team-member .team-role {
	margin-top: .25rem;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--sp-gold-dark);
}
.team-member p { margin-top: .75rem; font-size: .9375rem; color: var(--sp-stone-600); line-height: 1.6; }

/* ==========================================================================
   18. FAQ / accordion
   ========================================================================== */

.faq-section { background: var(--sp-bone); }
.faq-list { max-width: 52rem; margin-inline: auto; display: grid; gap: .75rem; }
.faq-item {
	background: var(--sp-white);
	border: 1px solid var(--sp-stone-200);
	border-radius: var(--sp-radius-md);
	padding: 1.125rem 1.375rem;
}
.faq-item summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--sp-ink);
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+";
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1;
	color: var(--sp-olive);
	flex: 0 0 auto;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin-top: .875rem; font-size: .9375rem; color: var(--sp-stone-600); line-height: 1.65; }

/* ==========================================================================
   19. Footer
   ========================================================================== */

.site-footer { background: var(--sp-ink); color: rgba(255, 255, 255, .72); }

.footer-main {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	max-width: var(--sp-wide);
	margin-inline: auto;
	padding: var(--sp-section) var(--sp-gutter) clamp(2rem, 4vw, 3rem);
}
@media (min-width: 640px) { .footer-main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-main { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; } }

.footer-brand .site-logo img { max-height: 44px; }
.footer-brand .brand-name { color: var(--sp-white); }
.footer-brand .brand-tag { color: rgba(255, 255, 255, .5); }
.footer-brand .brand-mark { background: rgba(214, 168, 0, .16); color: var(--sp-gold-light); }

.footer-tagline {
	margin-top: 1.25rem;
	max-width: 34ch;
	font-size: .9375rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, .64);
}

.footer-heading {
	font-family: var(--sp-font-body);
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--sp-white);
	margin-bottom: 1.125rem;
}

.footer-navigation .wp-block-navigation__container { gap: 0; }
.footer-navigation .wp-block-navigation-item { margin-bottom: .625rem; }
.footer-navigation .wp-block-navigation-item__content {
	padding: 0;
	color: rgba(255, 255, 255, .68);
	font-size: .9375rem;
	text-decoration: none;
	transition: color var(--sp-transition);
}
.footer-navigation .wp-block-navigation-item__content:hover { color: var(--sp-gold-light); }

.footer-contact-item {
	display: flex;
	gap: .75rem;
	align-items: flex-start;
	margin-bottom: .875rem;
	font-size: .9375rem;
	color: rgba(255, 255, 255, .68);
	line-height: 1.55;
}
.footer-contact-item .sp-icon { color: var(--sp-gold-light); flex: 0 0 auto; width: 17px; height: 17px; margin-top: 3px; }
.footer-contact-item a { color: inherit; text-decoration: none; }
.footer-contact-item a:hover { color: var(--sp-gold-light); text-decoration: underline; }

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	background: rgba(0, 0, 0, .22);
}
.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1.5rem;
	max-width: var(--sp-wide);
	margin-inline: auto;
	padding: 1.5rem var(--sp-gutter);
	font-size: .8125rem;
	color: rgba(255, 255, 255, .5);
}
.copyright { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-legal .wp-block-navigation-item { margin: 0; }
.footer-legal a { color: rgba(255, 255, 255, .5); text-decoration: none; }
.footer-legal a:hover { color: var(--sp-gold-light); }

.social-icons { display: flex; gap: .625rem; margin-top: 1.5rem; }
.social-link {
	width: 38px; height: 38px;
	display: grid; place-items: center;
	border-radius: 10px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .12);
	color: rgba(255, 255, 255, .76);
	transition: background-color var(--sp-transition), color var(--sp-transition), border-color var(--sp-transition);
}
.social-link:hover {
	background: var(--sp-gold);
	border-color: var(--sp-gold);
	color: var(--sp-ink);
}
.social-link svg { width: 18px; height: 18px; }

/* ==========================================================================
   20. Notification toast (theme.js)
   ========================================================================== */

.saicare-notification {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translate(-50%, 16px);
	z-index: 9999;
	max-width: min(92vw, 26rem);
	padding: .875rem 1.25rem;
	border-radius: var(--sp-radius-md);
	font-size: .9375rem;
	font-weight: 500;
	box-shadow: var(--sp-shadow-lg);
	opacity: 0;
	transition: opacity 220ms ease, transform 220ms ease;
}
.saicare-notification.is-visible { opacity: 1; transform: translate(-50%, 0); }
.saicare-notification--success { background: var(--sp-olive-deep); color: var(--sp-white); }
.saicare-notification--error { background: var(--sp-error); color: var(--sp-white); }
.saicare-notification--warning { background: var(--sp-gold); color: var(--sp-ink); }

/* ==========================================================================
   21. Back to top
   ========================================================================== */

.back-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	width: 44px; height: 44px;
	display: grid; place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--sp-olive);
	color: var(--sp-white);
	box-shadow: var(--sp-shadow-lg);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 220ms ease, transform 220ms ease, background-color var(--sp-transition);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--sp-olive-dark); }

/* ==========================================================================
   22. Icons
   ========================================================================== */

.sp-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
	vertical-align: -0.125em;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.sp-icon--solid { fill: currentColor; stroke: none; }

/* ==========================================================================
   23. Scroll animations
   ========================================================================== */

.animate-on-scroll {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 560ms cubic-bezier(.2,.7,.3,1), transform 560ms cubic-bezier(.2,.7,.3,1);
}
.animate-on-scroll.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   24. Utility
   ========================================================================== */

.text-center { text-align: center; }
.text-muted { color: var(--sp-stone-500); }
.sp-mt-0 { margin-top: 0 !important; }
.sp-mt-lg { margin-top: 2rem !important; }

/* ==========================================================================
   25. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.animate-on-scroll { opacity: 1; transform: none; }
	.wp-block-button__link:hover,
	.services-grid .wp-block-column:hover { transform: none; }
}

/* ==========================================================================
   26. Print
   ========================================================================== */

@media print {
	.site-header,
	.site-footer,
	.hero-section::before,
	.hero-section::after,
	.cta-section::before,
	.back-to-top,
	.skip-link,
	.newsletter-section { display: none !important; }

	body { background: #fff; color: #000; font-size: 12pt; }
	.hero-section, .stats-section, .cta-section { background: #fff !important; color: #000 !important; }
	.hero-title, .cta-title, .stat-number { color: #000 !important; }
	.hero-subtitle, .cta-subtitle { color: #333 !important; }
	.services-grid .wp-block-column,
	.testimonial-card,
	.pricing-card { border: 1px solid #999; break-inside: avoid; }
	a { text-decoration: underline; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* ==========================================================================
   27. Process steps, contact details, misc sections
   ========================================================================== */

.process-section { background: var(--sp-bone); }

.process-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step {
	position: relative;
	padding-top: 1.75rem;
	border-top: 2px solid var(--sp-stone-200);
}
.process-step::before {
	content: "";
	position: absolute;
	top: -2px;
	left: 0;
	width: 48px;
	height: 2px;
	background: var(--sp-gold);
}
.process-number {
	display: block;
	font-family: var(--sp-font-heading);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .14em;
	color: var(--sp-olive);
	margin-bottom: .75rem;
}
.process-step h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.process-step p { font-size: .9375rem; color: var(--sp-stone-600); line-height: 1.6; }

/* Contact details used by the Contact pattern */
.contact-details { margin-top: 1.75rem; }

/* Sticky header behaviour */
/* Sticky positioning lives in the main header block (section 4). Only the
   admin-bar offset needs repeating here, because the toolbar changes height on
   small screens. */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Header shrink on scroll, toggled by theme.js */
.site-header.is-scrolled {
	box-shadow: 0 1px 2px rgba(23, 26, 20, .05), 0 10px 30px -18px rgba(23, 26, 20, .35);
}
.site-header.is-scrolled .header-inner { min-height: 62px; }
.site-header { transition: box-shadow var(--sp-transition); }
.header-inner { transition: min-height var(--sp-transition); }

/* ==========================================================================
   28. Page and post content, archives, 404
   ========================================================================== */

.page-content,
.post-content {
	max-width: var(--sp-container);
	margin-inline: auto;
	padding-inline: var(--sp-gutter);
	padding-bottom: var(--sp-section);
}

.page-content > *,
.post-content > * { max-width: 74ch; }
.page-content > .alignwide,
.post-content > .alignwide { max-width: var(--sp-wide); }
.page-content > .alignfull,
.post-content > .alignfull { max-width: none; }

.page-content h2,
.post-content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.page-content h3,
.post-content h3 { margin-top: 2rem; margin-bottom: .75rem; }
.page-content p,
.post-content p { margin-bottom: 1.25rem; }
.page-content ul,
.post-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.page-content ol,
.post-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.page-content li,
.post-content li { margin-bottom: .5rem; }
.page-content ul li::marker,
.post-content ul li::marker { color: var(--sp-olive); }

.post-header { padding-bottom: 1.5rem; }
.post-categories a {
	display: inline-block;
	padding: .25rem .75rem;
	border-radius: var(--sp-radius-pill);
	background: var(--sp-olive-tint);
	color: var(--sp-olive-deep);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
}
.post-categories a:hover { background: var(--sp-gold-tint); color: var(--sp-gold-dark); }

.post-thumbnail { margin-inline: auto; margin-bottom: 2.5rem; }
.post-thumbnail img { border-radius: var(--sp-radius-lg); width: 100%; }

.post-footer { max-width: var(--sp-container); margin-inline: auto; padding: 0 var(--sp-gutter) var(--sp-section); }
.post-tags a { color: var(--sp-stone-600); }
.post-nav { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--sp-stone-200); }
.post-nav a { font-weight: 600; text-decoration: none; }
.post-nav a:hover { color: var(--sp-olive); }

/* Archives */
.archive-grid { gap: 1.5rem; }
.archive-card {
	display: flex;
	flex-direction: column;
	gap: .625rem;
	height: 100%;
	background: var(--sp-white);
	border: 1px solid var(--sp-stone-200);
	border-radius: var(--sp-radius-lg);
	padding: 1.25rem;
}
.archive-card img { border-radius: var(--sp-radius-md); }
.archive-card h2 { font-size: 1.125rem; }
.archive-card h2 a { text-decoration: none; }
.archive-card h2 a:hover { color: var(--sp-olive); }

.query-pagination { margin-top: 3rem; }
.query-pagination a,
.query-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 .75rem;
	border-radius: var(--sp-radius-sm);
	border: 1px solid var(--sp-stone-200);
	background: var(--sp-white);
	color: var(--sp-stone-700);
	font-size: .875rem;
	font-weight: 600;
	text-decoration: none;
}
.query-pagination .current,
.query-pagination a:hover { background: var(--sp-olive); border-color: var(--sp-olive); color: var(--sp-white); }

/* Search */
.sp-search .wp-block-search__input {
	padding: .875rem 1.125rem;
	border: 1px solid var(--sp-stone-300);
	border-radius: var(--sp-radius-pill);
	font: inherit;
}
.sp-search .wp-block-search__button {
	margin-left: .625rem;
	padding: .875rem 1.5rem;
	border: 0;
	border-radius: var(--sp-radius-pill);
	background: var(--sp-olive);
	color: var(--sp-white);
	font-weight: 600;
}

/* ==========================================================================
   29. Class aliases and grid containers
   ========================================================================== */

/* Card containers are grid/flex children, so the card styling is applied to the
   column and the inner wrapper carries no extra box of its own. */
.service-card,
.pricing-column { display: flex; flex-direction: column; }

.footer-col { min-width: 0; }
.footer-links .wp-block-navigation,
.footer-services .wp-block-navigation,
.footer-col .wp-block-navigation { width: 100%; }

/* The header CTA keeps its pill shape from the global event-style button rules. */
/* The header CTA is the first cluster to be dropped when space runs out; the
   breakpoint rules in section 31 decide when. */

/* ==========================================================================
   30. Header branding, footer social, contact rows
   ========================================================================== */

/* The header brand group holds the logo and the wordmark side by side. */
.header-inner .site-branding {
	display: flex;
	align-items: center;
	gap: .75rem;
	flex: 0 0 auto;
	min-width: 0;
	background: none;
	padding: 0;
}
.header-inner .site-branding .wp-block-site-logo { margin: 0; line-height: 0; }
.header-inner .site-branding .wp-block-site-logo img {
	max-height: 46px;
	width: auto;
	border-radius: 10px;
}
.header-inner .brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.header-inner .brand-name,
.header-inner .wp-block-site-title {
	font-family: var(--sp-font-heading);
	font-size: 1.3125rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--sp-ink);
	margin: 0;
}
.header-inner .brand-name a,
.header-inner .wp-block-site-title a { color: inherit; text-decoration: none; }
.header-inner .brand-tag,
.header-inner .wp-block-site-tagline {
	margin: .25rem 0 0;
	font-size: .625rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--sp-stone-500);
}

/* Footer wordmark and social */
.footer-brand .brand-name,
.footer-brand .wp-block-site-title {
	color: var(--sp-white);
	font-family: var(--sp-font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 1.25rem 0 0;
}
.footer-brand .wp-block-site-title a { color: inherit; text-decoration: none; }

.footer-brand .wp-block-social-links.social-icons { margin: 1.5rem 0 0; gap: .5rem; }
.footer-brand .wp-block-social-links .wp-social-link {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .12);
	color: rgba(255, 255, 255, .78);
	transition: background-color var(--sp-transition), color var(--sp-transition), border-color var(--sp-transition);
}
.footer-brand .wp-block-social-links .wp-social-link a { padding: 0; }
.footer-brand .wp-block-social-links .wp-social-link svg { width: 18px; height: 18px; fill: currentColor; }
.footer-brand .wp-block-social-links .wp-social-link:hover {
	background: var(--sp-gold);
	border-color: var(--sp-gold);
	color: var(--sp-ink);
	transform: none;
}

/* Footer contact rows are plain paragraphs in the editable template part. */
.footer-contact .footer-contact-item {
	display: block;
	margin: 0 0 .75rem;
	color: rgba(255, 255, 255, .68);
	line-height: 1.55;
}
.footer-contact .footer-contact-item:last-child { margin-bottom: 0; }
.footer-contact .footer-contact-item a { color: inherit; text-decoration: none; }
.footer-contact .footer-contact-item a:hover { color: var(--sp-gold-light); text-decoration: underline; }

.footer-legal { gap: .5rem 1.25rem; }
.footer-legal p { margin: 0; }
.footer-legal a { color: rgba(255, 255, 255, .5); text-decoration: none; }
.footer-legal a:hover { color: var(--sp-gold-light); }

/* The social-links pattern that ships with the theme uses the core block, so
   drop the theme's own wrapper rule when the block is present. */
.social-icons:not(.wp-block-social-links) { display: flex; gap: .625rem; margin-top: 1.5rem; }

/* ==========================================================================
   31. Responsive corrections
   ==========================================================================
   Everything here exists to fix a specific overflow or crowding at a specific
   width. The breakpoints match WordPress's own: 600px (small), 781px (medium,
   where core columns stop stacking), 1000px (large).
   ========================================================================== */

/* --------------------------------------------------------------------------
   31.1 Header
   -------------------------------------------------------------------------- */

.header-inner {
	flex-wrap: nowrap;
	gap: clamp(.75rem, 2vw, 1.5rem);
}

/* Below the large breakpoint the header carries three clusters — brand, burger,
   button. The button is the least important, so it goes first. */
@media (max-width: 999px) {
	.header-inner { min-height: 66px; padding-block: .625rem; }
	.primary-navigation { margin-left: auto; }
	.header-cta { display: none; }
}

@media (max-width: 600px) {
	.header-inner { min-height: 60px; gap: .5rem; }
	.header-inner .site-branding { gap: .5rem; }
	.header-inner .site-branding .wp-block-site-logo img { max-height: 36px; }
	.header-inner .brand-name,
	.header-inner .wp-block-site-title { font-size: 1.0625rem; }
	/* The tagline is the first thing to go when space is tight. */
	.header-inner .brand-tag,
	.header-inner .wp-block-site-tagline { display: none; }
	.wp-block-navigation__responsive-container-open { padding: .5rem; }
}

/* --------------------------------------------------------------------------
   31.2 Hero
   -------------------------------------------------------------------------- */

/* Padding for the hero is set in section 6; the content inset comes from the
   container rule in section 2, so no padding is needed here. */
.hero-content { padding-inline: 0; }

@media (max-width: 600px) {
	.hero-title { font-size: clamp(1.875rem, 1.2rem + 3.6vw, 2.5rem); }
	.hero-subtitle { font-size: 1rem; margin-top: 1.125rem !important; }
	.hero-cta { margin-top: 1.75rem; gap: .75rem; }
	/* Full-width stacked buttons are easier to hit than centred pills. */
	.hero-cta .wp-block-button,
	.hero-cta .wp-block-button__link { width: 100%; }
	.hero-trust {
		flex-direction: column;
		align-items: flex-start;
		gap: .625rem;
		margin-top: 1.5rem;
		padding-top: 1.5rem;
		text-align: left;
	}
}

/* --------------------------------------------------------------------------
   31.3 Core columns
   --------------------------------------------------------------------------
   WordPress stacks columns below 781px by default, but a grid layout with an
   explicit columnCount does not always follow. Force the stack where the design
   depends on it.
   -------------------------------------------------------------------------- */

@media (max-width: 781px) {
	.services-grid,
	.stats-grid,
	.testimonials-grid,
	.pricing-grid,
	.team-grid,
	.newsletter-grid,
	.contact-grid,
	.archive-grid {
		display: grid;
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
	/* The stats band reads as a 2x2 block on a phone, not a tall single column. */
	.stats-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
	.stats-grid .wp-block-column + .wp-block-column { border-left: 0; }
	.stats-grid .wp-block-column:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .14); }
	.stats-grid .wp-block-column:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1.25rem; }
}

/* --------------------------------------------------------------------------
   31.4 Sections and their inner containers
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
	.services-section,
	.stats-section,
	.testimonials-section,
	.newsletter-section,
	.cta-section,
	.footer-main,
	.features-section,
	.pricing-section,
	.coverage-section,
	.process-section,
	.team-section,
	.faq-section,
	.contact-section {
		padding-block: clamp(2.5rem, 9vw, 3.5rem);
	}

	.section-head { margin-bottom: 2rem; }
	.section-subtitle { font-size: .9375rem; }
	.section-cta { margin-top: 2rem; }
	.section-cta .wp-block-button,
	.section-cta .wp-block-button__link { width: 100%; }
}

/* --------------------------------------------------------------------------
   31.5 Cards and grids
   -------------------------------------------------------------------------- */

.services-grid .wp-block-column { padding: 1.375rem; }
.testimonial-card { padding: 1.5rem 1.25rem 1.375rem; }
.pricing-card { padding: 1.5rem 1.25rem; }

@media (max-width: 600px) {
	.services-grid .wp-block-column,
	.testimonial-card,
	.pricing-card,
	.feature-item,
	.faq-item {
		padding: 1.25rem 1.125rem;
	}

	/* The featured plan's badge sits half outside the card; keep it inside the
	   viewport rather than letting it push the card sideways. */
	.pricing-badge { position: static; display: inline-block; transform: none; margin-bottom: .875rem; }

	.plan-price { font-size: 1.875rem; }
	.city-grid { grid-template-columns: 1fr; }
	.process-grid { gap: 1.25rem; }
}

/* --------------------------------------------------------------------------
   31.6 Footer
   -------------------------------------------------------------------------- */

@media (max-width: 999px) {
	.footer-main { gap: 2rem; padding-block: clamp(2.5rem, 7vw, 4rem) 2rem; }
}

@media (max-width: 600px) {
	.footer-main { gap: 1.75rem; }
	.footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
	.footer-legal { justify-content: flex-start !important; }
}

/* --------------------------------------------------------------------------
   31.7 Contact and forms
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
	.contact-form-wrap { padding: 1.25rem 1.125rem; }
	.wpcf7 input[type="submit"],
	.contact-form-wrap input[type="submit"] { width: 100%; }
	.newsletter-form { flex-direction: column; }
	.newsletter-form input[type="email"],
	.newsletter-form button,
	.newsletter-form input[type="submit"] { width: 100%; flex: 1 1 auto; }
}

/* --------------------------------------------------------------------------
   31.8 Tables, code and long content
   -------------------------------------------------------------------------- */

@media (max-width: 781px) {
	.wp-block-table { font-size: .875rem; }
	.wp-block-code,
	pre { font-size: .8125rem; overflow-x: auto; }
}

/* --------------------------------------------------------------------------
   31.9 Smallest phones (320–380px)
   -------------------------------------------------------------------------- */

@media (max-width: 400px) {
	:root { --sp-gutter: 1rem; }
	.hero-title { font-size: 1.75rem; }
	.stat-number { font-size: 1.875rem; }
	.btn, .wp-block-button__link { padding-inline: 1.125rem; }
	.hero-cta .wp-block-button__link,
	.section-cta .wp-block-button__link { font-size: .9375rem; }
}

/* --------------------------------------------------------------------------
   31.10 Touch targets
   -------------------------------------------------------------------------- */

@media (hover: none) and (pointer: coarse) {
	.primary-navigation .wp-block-navigation-item__content,
	.footer-navigation .wp-block-navigation-item__content { padding-block: .625rem; }
	/* Hover-only affordances are meaningless on touch. */
	.services-grid .wp-block-column:hover { transform: none; }
	.services-grid .wp-block-column:hover::before { transform: scaleX(0); }
}

/* --------------------------------------------------------------------------
   31.11 Horizontal overflow audit — the usual suspects
   -------------------------------------------------------------------------- */

/* Anything positioned or sized in viewport units can escape a padded container. */
.countDock,
.progress { max-width: 100vw; }

/* A cover block's inner container is flex and can overflow with a long word. */
.wp-block-cover__inner-container { max-width: 100%; }

/* Core's own full-bleed helper can fight the gutter rule; keep it consistent. */
.wp-site-blocks .alignfull > .wp-block-cover__inner-container,
.wp-site-blocks .alignfull > .wp-block-group.alignwide { padding-inline: var(--sp-gutter); }
