/* Street Advocate: front-end styles. Colours, fonts and sizes come from theme.json presets (--wp--preset--*). */

:root {
	--sa-ink: var(--wp--preset--color--ink, #0C1C2B);
	--sa-navy: var(--wp--preset--color--navy, #102A43);
	--sa-navy-2: var(--wp--preset--color--navy-2, #1B3D5E);
	--sa-sky: var(--wp--preset--color--sky, #5CC3E4);
	--sa-sky-deep: var(--wp--preset--color--sky-deep, #0A6B93);
	--sa-mist: var(--wp--preset--color--mist, #EAF6FB);
	--sa-sand: var(--wp--preset--color--sand, #F6F4EF);
	--sa-line: var(--wp--preset--color--line, #D9E3EA);
	--sa-slate: var(--wp--preset--color--slate, #4A5B6B);
	--sa-star: #E8A317;
	--sa-radius: 14px;
	--sa-shadow: 0 1px 2px rgba(12, 28, 43, .06), 0 8px 28px rgba(12, 28, 43, .08);
	--sa-wide: 1200px;
	--sa-gutter: clamp(1.25rem, 4vw, 2rem);
	--sa-shell: calc(var(--sa-wide) + 2 * var(--sa-gutter)); /* header, footer and bands: content edge lines up with the 1200px grid */
	--sa-display: var(--wp--preset--font-family--display, Georgia, serif);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--sa-sky); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sa-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--sa-sky); color: var(--sa-ink); font-weight: 700; border-radius: 8px; }
.sa-skip:focus { top: 1rem; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
strong { font-weight: 700; }

/* ---------- Buttons ---------- */
.sa-btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 48px; padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
	font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.sa-btn:hover, .wp-block-button__link:hover { transform: translateY(-1px); }
.sa-btn--primary { background: var(--sa-sky); color: var(--sa-ink); }
.sa-btn--primary:hover { background: #fff; color: var(--sa-navy); border-color: var(--sa-sky); }
.sa-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.sa-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--sa-navy); border-color: var(--sa-navy); }
.is-style-outline .wp-block-button__link:hover { background: var(--sa-navy); color: #fff; }
.has-navy-background-color .is-style-outline .wp-block-button__link,
.sa-hero .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .6); }
.has-navy-background-color .is-style-outline .wp-block-button__link:hover,
.sa-hero .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--sa-navy); }
.sa-btn-phone .wp-block-button__link::before,
a.sa-btn[href^="tel:"]::before { content: ""; width: 1.1em; height: 1.1em; background: currentColor; -webkit-mask: var(--sa-icon-phone) center / contain no-repeat; mask: var(--sa-icon-phone) center / contain no-repeat; }
:root { --sa-icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }

/* ---------- Header ---------- */
.sa-header { position: sticky; top: 0; z-index: 50; }
.admin-bar .sa-header { top: var(--wp-admin--admin-bar--height, 32px); }
.sa-topbar { background: var(--sa-ink); color: rgba(255, 255, 255, .82); font-size: .8125rem; }
.sa-topbar__inner { max-width: var(--sa-shell); margin: 0 auto; padding: .45rem var(--sa-gutter); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sa-topbar__promise { margin: 0; }
.sa-topbar .sa-rating { color: #fff; }
.sa-masthead { background: var(--sa-navy); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.sa-masthead__inner { max-width: var(--sa-shell); margin: 0 auto; padding: .7rem var(--sa-gutter); display: flex; align-items: center; gap: 1.5rem; }
.sa-logo { display: block; flex: none; }
.sa-logo img { display: block; height: 52px; width: auto; }
.sa-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.sa-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.sa-nav__list a { display: block; white-space: nowrap; padding: .55rem .65rem; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: .9375rem; }
.sa-nav__list a:hover { background: rgba(255, 255, 255, .08); }
.sa-nav__list .current-menu-item > a { color: var(--sa-sky); }
.sa-nav__actions { display: flex; align-items: center; gap: 1rem; }
.sa-nav__phone { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; }
.sa-nav__phone::before { content: ""; width: 1em; height: 1em; background: var(--sa-sky); -webkit-mask: var(--sa-icon-phone) center / contain no-repeat; mask: var(--sa-icon-phone) center / contain no-repeat; }
.sa-nav__phone:hover { color: var(--sa-sky); }
.sa-nav-toggle { display: none; }

@media (max-width: 1320px) {
	.sa-nav__phone { display: none; }
}
@media (max-width: 1100px) {
	.sa-topbar__promise { display: none; }
	.sa-topbar__inner { justify-content: center; }
	.sa-logo img { height: 44px; }
	.sa-nav-toggle {
		display: inline-flex; align-items: center; gap: .55rem; margin-left: auto; padding: .6rem .9rem;
		background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer;
	}
	.sa-nav-toggle__bars, .sa-nav-toggle__bars::before, .sa-nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
	.sa-nav-toggle__bars { position: relative; }
	.sa-nav-toggle__bars::before, .sa-nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.sa-nav-toggle__bars::before { top: -6px; }
	.sa-nav-toggle__bars::after { top: 6px; }
	.sa-nav-toggle[aria-expanded="true"] .sa-nav-toggle__bars { background: transparent; }
	.sa-nav-toggle[aria-expanded="true"] .sa-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
	.sa-nav-toggle[aria-expanded="true"] .sa-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
	.sa-nav {
		position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 1rem;
		padding: 1rem var(--sa-gutter) 1.5rem; background: var(--sa-navy); border-top: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 20px 30px rgba(0, 0, 0, .25);
		max-height: calc(100vh - 100px); overflow-y: auto;
	}
	.sa-nav.is-open { display: flex; }
	.sa-nav__list { flex-direction: column; }
	.sa-nav__list a { padding: .85rem .5rem; font-size: 1.0625rem; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
	.sa-nav__actions { flex-direction: column; align-items: stretch; }
	.sa-nav__phone { display: inline-flex; justify-content: center; padding: .6rem; }
	.sa-masthead__inner { position: relative; }
}

/* ---------- Ratings & stars ---------- */
.sa-stars { color: var(--sa-star); letter-spacing: .08em; }
.sa-rating { color: inherit; text-decoration: none; }
.sa-rating .sa-stars { white-space: nowrap; margin-right: .3rem; }
.sa-rating:hover { text-decoration: underline; }
.sa-rating--lg { font-size: 1.0625rem; }
.sa-rating--lg .sa-stars { font-size: 1.25rem; }

/* ---------- Page header (pages without their own hero) ---------- */
.sa-page-header { background: var(--sa-navy); color: #fff; position: relative; overflow: hidden; }
.sa-page-header::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(92, 195, 228, .22), transparent); pointer-events: none; }
.sa-page-header__inner { position: relative; z-index: 1; max-width: var(--sa-shell); margin: 0 auto; padding: clamp(2.75rem, 6vw, 4.5rem) var(--sa-gutter); }
.sa-page-header h1 { margin: 0; color: #fff; max-width: 22ch; }
.sa-page-header__lede { margin: 1rem 0 0; max-width: 60ch; font-size: var(--wp--preset--font-size--lead); color: rgba(255, 255, 255, .85); }

/* ---------- Content flow ---------- */
.sa-main { display: block; }
.sa-content { padding-bottom: var(--wp--preset--spacing--60); }
.sa-content > .alignfull:first-child { margin-top: 0; }
.sa-content > .alignfull:last-child { margin-bottom: calc(-1 * var(--wp--preset--spacing--60)); }

.sa-content > .alignfull + .alignfull { margin-top: 0; }
.sa-content > .alignfull { margin-top: var(--wp--preset--spacing--50); margin-bottom: 0; }
.sa-content > .alignfull + :not(.alignfull) { margin-top: var(--wp--preset--spacing--50); }
.sa-section { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; }
.sa-section--tight { padding-top: var(--wp--preset--spacing--40) !important; padding-bottom: var(--wp--preset--spacing--40) !important; }
.sa-eyebrow { font-size: .8125rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sa-sky-deep); margin-bottom: .5rem !important; }
.has-navy-background-color .sa-eyebrow, .sa-hero .sa-eyebrow { color: var(--sa-sky); }
.sa-lede { font-size: var(--wp--preset--font-size--lead); color: var(--sa-slate); }
.has-navy-background-color .sa-lede { color: rgba(255, 255, 255, .82); }
.has-navy-background-color { color: #fff; }
.has-navy-background-color :where(h1, h2, h3, h4) { color: #fff; }
.has-navy-background-color a:where(:not(.wp-block-button__link):not(.sa-btn)) { color: var(--sa-sky); }
.sa-center { text-align: center; }
.sa-center .sa-lede { margin-left: auto; margin-right: auto; max-width: 62ch; }
.sa-content ul:not([class*="sa-"]):not(.wp-block-social-links) li + li { margin-top: .35rem; }
.sa-ticks { list-style: none; padding-left: 0; }
.sa-ticks li { position: relative; padding-left: 1.9rem; }
.sa-ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--sa-sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230C1C2B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* ---------- Hero ---------- */
.sa-hero { position: relative; color: #fff; }
.sa-hero.wp-block-cover { min-height: 0 !important; padding: clamp(2.5rem, 6vw, 5rem) var(--sa-gutter) !important; align-items: center; }
.sa-hero .wp-block-cover__inner-container { max-width: var(--sa-wide); width: 100%; margin: 0 auto; }
.sa-hero h1 { color: #fff; margin: .25rem 0 1.25rem; font-size: clamp(2.4rem, 5.2vw, 3.75rem); }
.sa-hero h1 em { font-style: normal; color: var(--sa-sky); }
.sa-hero .sa-lede { color: rgba(255, 255, 255, .88); max-width: 54ch; }
.sa-hero__cols { gap: clamp(2rem, 5vw, 4rem) !important; align-items: center !important; }
.sa-hero__proof { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; margin-top: 1.5rem !important; font-size: .9375rem; color: rgba(255, 255, 255, .85); }
.sa-hero__proof .sa-rating { color: #fff; }
.sa-hero__peter { display: flex; align-items: center; gap: .9rem; margin-top: 1.75rem !important; }
.sa-hero__peter img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sa-sky); }
.sa-hero__peter p { margin: 0; font-size: .9375rem; line-height: 1.4; color: rgba(255, 255, 255, .85); }
.sa-hero__peter strong { color: #fff; display: block; }
.sa-hero__card { background: #fff; color: var(--sa-ink); border-radius: var(--sa-radius); padding: clamp(1.25rem, 3vw, 2rem) !important; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.sa-hero__card h2 { color: var(--sa-navy); font-size: 1.6rem; margin: 0 0 .35rem; }
.sa-hero__card > p { color: var(--sa-slate); margin: 0 0 1.1rem; font-size: .9375rem; }
@media (max-width: 781px) { .sa-hero__card { margin-top: .5rem; } }

/* ---------- "As seen in" ---------- */
.sa-press { border-bottom: 1px solid var(--sa-line); }
.sa-press__label { margin: 0 !important; font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sa-slate); }
.sa-press__logos { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem) !important; align-items: center; margin: 0 !important; }
.sa-press__logos .wp-block-image { margin: 0; }
.sa-press__logos img { width: 100%; max-width: 170px; height: auto; margin: 0 auto; display: block; mix-blend-mode: multiply; opacity: .75; filter: grayscale(1); }
@media (max-width: 600px) { .sa-press__logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Cards ---------- */
.sa-cards { gap: clamp(1rem, 2.5vw, 1.75rem) !important; }
.sa-card { background: #fff; border: 1px solid var(--sa-line); border-radius: var(--sa-radius); padding: clamp(1.5rem, 3vw, 2rem) !important; box-shadow: var(--sa-shadow); }
.sa-card h3 { font-size: 1.375rem; margin-top: 0; }
.sa-card > :last-child { margin-bottom: 0; }
.sa-card::before { content: ""; display: block; width: 52px; height: 52px; margin-bottom: 1.1rem; border-radius: 14px; background: var(--sa-mist); background-image: var(--sa-card-icon); background-repeat: no-repeat; background-position: center; background-size: 26px; }
.sa-card--experience { --sa-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A6B93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M8.2 13 7 22l5-3 5 3-1.2-9'/%3E%3C/svg%3E"); }
.sa-card--stress { --sa-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A6B93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.sa-card--free { --sa-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A6B93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 9.2c-.6-.8-1.7-1.2-3-1.2-1.7 0-3 .9-3 2s1 1.7 3 2c2 .3 3 .9 3 2s-1.3 2-3 2c-1.3 0-2.4-.4-3-1.2M12 6.5V8m0 8v1.5'/%3E%3C/svg%3E"); }
.sa-card--agent { --sa-card-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A6B93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"); }
.sa-card--plain::before { display: none; }

/* ---------- Peter / one advocate section ---------- */
.sa-peter__photo img { border-radius: var(--sa-radius); box-shadow: var(--sa-shadow); width: 100%; aspect-ratio: 573 / 667; object-fit: cover; }
.sa-peter__quals { font-size: .9375rem; color: var(--sa-slate); border-left: 3px solid var(--sa-sky); padding-left: 1rem; }

.sa-stats { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px !important; background: var(--sa-line); border: 1px solid var(--sa-line); border-radius: var(--sa-radius); overflow: hidden; margin-top: var(--wp--preset--spacing--40) !important; }
.sa-stats > * { background: #fff; padding: 1.25rem 1rem !important; margin: 0 !important; text-align: center; }
.sa-stat__num { display: block; font-family: var(--sa-display); font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 600; color: var(--sa-navy); line-height: 1.1; }
.sa-stat__label { display: block; font-size: .875rem; color: var(--sa-slate); margin-top: .3rem; line-height: 1.35; }
.sa-statband { border-bottom: 1px solid var(--sa-line); }
.sa-statband .sa-stats { margin-top: 0 !important; }
@media (max-width: 781px) { .sa-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Steps (overview grid) ---------- */
.sa-steps { list-style: none; margin: var(--wp--preset--spacing--40) 0 0 !important; padding: 0 !important; counter-reset: sa-step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.sa-steps li { counter-increment: sa-step; position: relative; background: #fff; border: 1px solid var(--sa-line); border-radius: var(--sa-radius); padding: 1.25rem 1.25rem 1.25rem 4.25rem; margin: 0 !important; line-height: 1.5; color: var(--sa-slate); font-size: .9375rem; }
.sa-steps li::before { content: counter(sa-step); position: absolute; left: 1.1rem; top: 1.1rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--sa-navy); color: #fff; font-family: var(--sa-display); font-weight: 600; font-size: 1.1rem; }
.sa-steps li strong { display: block; color: var(--sa-navy); font-size: 1.0625rem; margin-bottom: .2rem; }
.has-mist-background-color .sa-steps li, .has-sand-background-color .sa-steps li { border-color: transparent; box-shadow: var(--sa-shadow); }

/* ---------- Process detail (Our process page) ---------- */
.sa-process-step { position: relative; padding-left: clamp(0rem, 8vw, 5.5rem) !important; margin-top: var(--wp--preset--spacing--50) !important; }
.sa-process-step__num { font-family: var(--sa-display); font-size: .9375rem !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sa-sky-deep); margin-bottom: .25rem !important; }
@media (min-width: 700px) {
	.sa-process-step__num { position: absolute; left: 0; top: .2rem; width: 4rem; height: 4rem; border-radius: 50%; background: var(--sa-mist); display: grid; place-items: center; font-size: 1.6rem !important; letter-spacing: 0; color: var(--sa-navy); margin: 0 !important; }
	.sa-process-step__num span { display: none; }
}
.sa-process-step h2 { margin-top: 0; font-size: var(--wp--preset--font-size--heading); }
.sa-callout { background: var(--sa-mist); border-radius: var(--sa-radius); padding: 1.25rem 1.5rem !important; }
.sa-callout > :first-child { margin-top: 0; }
.sa-callout > :last-child { margin-bottom: 0; }

/* ---------- Fee explainer ---------- */
.sa-fee { border-radius: var(--sa-radius); overflow: hidden; }
.sa-fee__flow { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 2.5rem !important; margin-top: 1.75rem !important; }
.sa-fee__flow > p { position: relative; margin: 0 !important; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 1.1rem 1rem !important; text-align: center; font-size: .9375rem; line-height: 1.4; color: rgba(255, 255, 255, .8); }
.sa-fee__flow > p strong { display: block; color: #fff; font-size: 1.0625rem; margin-bottom: .2rem; }
.sa-fee__flow > p:not(:last-child)::after { content: "→"; position: absolute; right: -1.85rem; top: 50%; transform: translateY(-50%); color: var(--sa-sky); font-size: 1.4rem; font-weight: 700; }
@media (max-width: 781px) {
	.sa-fee__flow { grid-template-columns: 1fr; gap: 2.25rem !important; }
	.sa-fee__flow > p:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -2rem; transform: translateX(-50%); }
}

/* ---------- FAQ (details blocks) ---------- */
.sa-faq { display: grid; gap: .75rem; }
.sa-faq .wp-block-details { background: #fff; border: 1px solid var(--sa-line); border-radius: 12px; padding: 0; margin: 0; }
.sa-faq .wp-block-details summary { cursor: pointer; list-style: none; padding: 1.1rem 3.25rem 1.1rem 1.25rem; font-weight: 700; color: var(--sa-navy); position: relative; font-size: 1.0625rem; }
.sa-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.sa-faq .wp-block-details summary::after { content: ""; position: absolute; right: 1.25rem; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid var(--sa-sky-deep); border-bottom: 2.5px solid var(--sa-sky-deep); transform: rotate(45deg); transition: transform .2s; }
.sa-faq .wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.sa-faq .wp-block-details > :not(summary) { padding: 0 1.25rem; margin-top: 0; color: var(--sa-slate); }
.sa-faq .wp-block-details > :last-child { padding-bottom: 1.25rem; margin-bottom: 0; }

/* ---------- Reviews ---------- */
.sa-reviews__summary { text-align: center; margin: 0 0 1.75rem; }
.sa-reviews__sources { display: block; margin-top: .4rem; font-size: .9375rem; color: var(--sa-slate); }
.sa-reviews__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; align-items: start; }
.sa-review { margin: 0; background: #fff; border: 1px solid var(--sa-line); border-radius: var(--sa-radius); padding: 1.5rem; box-shadow: var(--sa-shadow); display: flex; flex-direction: column; gap: .5rem; height: 100%; }
.sa-review .sa-stars { font-size: 1.05rem; }
.sa-review__title { margin: 0; font-weight: 700; color: var(--sa-navy); }
.sa-review__text { margin: 0; padding: 0; border: 0; font-size: .9875rem; line-height: 1.6; color: var(--sa-ink); flex: 1; }
.sa-review__text p { margin: 0 0 .75em; }
.sa-review__text p:last-child { margin-bottom: 0; }
.sa-review__more { align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; font-size: .9375rem; color: var(--sa-sky-deep); text-decoration: underline; cursor: pointer; }
.sa-review__name { margin: .25rem 0 0; font-weight: 700; color: var(--sa-navy); font-size: .9375rem; }
.sa-review__name span { font-weight: 500; color: var(--sa-slate); margin-left: .35rem; }
.sa-review__name span::before { content: "· "; }
.sa-review-dialog { border: 0; padding: 0; border-radius: var(--sa-radius); max-width: min(680px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.sa-review-dialog::backdrop { background: rgba(12, 28, 43, .65); }
.sa-review-dialog__panel { position: relative; padding: 2rem 2rem 1.75rem; }
.sa-review-dialog__close { position: absolute; top: .75rem; right: .75rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sa-mist); color: var(--sa-navy); cursor: pointer; display: grid; place-items: center; }
.sa-testimonials { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem !important; }
.sa-testimonials .wp-block-quote { margin: 0 !important; background: #fff; border: 1px solid var(--sa-line) !important; border-radius: var(--sa-radius); padding: 1.5rem !important; box-shadow: var(--sa-shadow); font-size: .9875rem; }
.sa-testimonials .wp-block-quote p { font-size: inherit; }
.sa-testimonials .wp-block-quote cite { display: block; margin-top: .75rem; font-style: normal; font-weight: 700; color: var(--sa-navy); font-size: .9375rem; }

/* ---------- Video ---------- */
.sa-video video { width: 100%; border-radius: var(--sa-radius); background: var(--sa-ink); box-shadow: var(--sa-shadow); }
.sa-video figcaption { font-size: .875rem; color: var(--sa-slate); text-align: left; margin-top: .6rem; }
.has-navy-background-color .sa-video figcaption { color: rgba(255, 255, 255, .7); }

/* ---------- Forms ---------- */
/* Gravity Forms. Its own CSS is switched off (gform_disable_css in streetadvocate-core: ~400KB of render-blocking
   stylesheets); these rules cover everything our three forms use, matching the look of GF's Orbital theme. */
.gform_wrapper { --sa-field-border: #B9C7D2; --sa-error: #C02B0A; margin: 0; }
.gform_wrapper form { margin: 0; }
.gform_required_legend:empty, .gform_heading:not(:has(.gform_title, .gform_description)) { display: none; }
.gform_fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.1rem 1rem; margin: 0; padding: 0; border: 0; }
.gfield { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.gfield--width-quarter { grid-column: span 3; }
.gfield--width-third { grid-column: span 4; }
.gfield--width-half { grid-column: span 6; }
.gfield--width-two-thirds { grid-column: span 8; }
.gfield--width-three-quarter { grid-column: span 9; }
@media (max-width: 640px) { .gfield[class*="gfield--width-"] { grid-column: 1 / -1; } }
.sa-hero__card .gfield { grid-column: 1 / -1; }
/* Honeypot and hidden fields: never shown (the honeypot only works if people can't see it). */
.gform_validation_container, .gfield--type-honeypot, .gfield--type-hidden, .gform_hidden { display: none !important; }
.gfield_label { display: flex; align-items: baseline; gap: 6px; margin: 0 0 8px; font-size: 15px; font-weight: 500; line-height: 1.43; color: var(--sa-navy); }
.gfield_required { color: var(--sa-error); font-size: 12px; }
.gfield_required .gfield_required { font-size: inherit; }
.gform_wrapper :where(input:not([type="submit"], [type="hidden"], [type="checkbox"], [type="radio"]), select, textarea) {
	display: block; box-sizing: border-box; inline-size: 100%; block-size: 47px; margin: 0; padding: 0 12px;
	font: inherit; font-size: 14px; line-height: 1.5; color: #112337; background-color: #fff;
	border: 1px solid var(--sa-field-border); border-radius: 10px; box-shadow: 0 1px 4px rgba(18, 25, 97, .08);
	transition: border-color .15s ease, box-shadow .15s ease;
}
@media (max-width: 781px) { .gform_wrapper :where(input:not([type="submit"], [type="hidden"], [type="checkbox"], [type="radio"]), select, textarea) { font-size: 16px; } } /* 16px+ stops iPhones zooming in on focus */
.gform_wrapper textarea { block-size: 130px; min-block-size: 96px; padding: 12px; border-radius: 8px; resize: vertical; }
.gform_wrapper select {
	appearance: none; padding-inline-end: 32px; cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.3.3a1 1 0 0 1 1.4 0L5 3.6 8.3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4A1 1 0 0 1 .3.3Z' fill='rgba(17,35,55,.65)'/%3E%3C/svg%3E") no-repeat calc(100% - 12px) 50% / 10px auto;
}
.gform_wrapper :where(input:not([type="submit"], [type="hidden"], [type="checkbox"], [type="radio"]), select, textarea):focus { outline: none; border-color: var(--sa-sky-deep); box-shadow: 0 0 0 3px rgba(10, 107, 147, .25); }
.gform_wrapper .gfield_error :is(input, select, textarea) { border-color: var(--sa-error); }
.gform_wrapper .gfield_error :is(input, select, textarea):focus { box-shadow: 0 0 0 3px rgba(192, 43, 10, .2); }
.gfield_validation_message, .gfield .validation_message { margin: 8px 0 0; font-size: 13px; line-height: 1.43; color: var(--sa-error); }
.gform_validation_errors { margin: 0 0 1.1rem; padding: 20px 16px; border: 1px solid var(--sa-error); border-radius: 3px; background: rgba(192, 43, 10, .03); box-shadow: 0 1px 4px rgba(18, 25, 97, .08); }
.gform_validation_errors:focus { outline: none; }
.gform_wrapper .gform_submission_error { display: flex; align-items: center; gap: 12px; margin: 0; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.43; letter-spacing: normal; color: var(--sa-error); }
.gform_submission_error .gform-icon { flex: none; display: grid; place-items: center; inline-size: 20px; block-size: 20px; box-sizing: border-box; border: 2px solid rgba(192, 43, 10, .25); border-radius: 50%; background: rgba(192, 43, 10, .05); font-size: 0; }
.gform_submission_error .gform-icon::before { content: "!"; font-size: 11px; font-weight: 800; line-height: 1; color: var(--sa-error); }
.gform_validation_errors ol { margin: 8px 0 0; padding: 0 0 0 48px; list-style: disc; font-size: 14px; line-height: 1.43; color: var(--sa-error); }
.gform_validation_errors li + li { margin-top: 4px; }
.gform_validation_errors a { color: inherit; }
.gform_footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 1.25rem 0 0; padding: 0; }
.gform_wrapper .gform_button {
	display: inline-flex; align-items: center; justify-content: center; min-block-size: 48px; padding: 0 1.75rem;
	font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; color: #fff; background: var(--sa-navy);
	border: 1px solid transparent; border-radius: 999px; box-shadow: 0 1px 4px rgba(18, 25, 97, .08); cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.gform_wrapper .gform_button:hover, .gform_wrapper .gform_button:focus-visible { background: var(--sa-sky); color: var(--sa-ink); }
.gform_wrapper .gform_button:disabled { opacity: .7; cursor: progress; }
.sa-hero__card .gform_button, .sa-form-panel .gform_button, .sa-sticky-card .gform_button { inline-size: 100%; }
/* Submit spinner (GF adds .gform-loader, or the older spinner image, next to the button while sending). */
.gform_wrapper .gform-loader { inline-size: 20px; block-size: 20px; border: 3px solid rgba(16, 42, 67, .2); border-top-color: var(--sa-navy); border-radius: 50%; animation: sa-spin .8s linear infinite; }
.gform_wrapper .gform_ajax_spinner { inline-size: 20px; block-size: 20px; }
@keyframes sa-spin { to { transform: rotate(360deg); } }
.sa-form-thanks { padding: 1.5rem; border-radius: var(--sa-radius); background: var(--sa-mist); border-left: 4px solid var(--sa-sky); }
.sa-form-thanks p { margin: 0; }
.sa-form-thanks__title { font-family: var(--sa-display); font-weight: 600; font-size: 1.5rem; color: var(--sa-navy); margin-bottom: .4rem !important; }
.sa-form-missing { padding: 1rem 1.25rem; background: var(--sa-mist); border-radius: 12px; }
.sa-form-panel { background: #fff; border-radius: var(--sa-radius); padding: clamp(1.25rem, 4vw, 2.25rem) !important; box-shadow: var(--sa-shadow); border: 1px solid var(--sa-line); }

/* ---------- Contact details list ---------- */
.sa-contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.sa-contact-list li { margin: 0 !important; padding: 1rem 1.25rem; background: var(--sa-mist); border-radius: 12px; }
.sa-contact-list strong { display: block; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sa-slate); }
.sa-contact-list a { font-size: 1.25rem; font-weight: 700; color: var(--sa-navy); text-decoration: none; }
.sa-contact-list a:hover { text-decoration: underline; }

/* ---------- Closing CTA band ---------- */
.sa-cta-band { background: var(--sa-sand); border-top: 1px solid var(--sa-line); }
.sa-cta-band__inner { max-width: var(--sa-shell); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--sa-gutter); display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
.sa-cta-band__photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--sa-shadow); }
.sa-cta-band h2 { margin: 0 0 .5rem; font-size: var(--wp--preset--font-size--heading); }
.sa-cta-band p { margin: 0; color: var(--sa-slate); max-width: 62ch; }
.sa-cta-band__actions { display: flex; flex-direction: column; gap: .75rem; }
.sa-cta-band .sa-btn--ghost { color: var(--sa-navy); border-color: var(--sa-navy); }
.sa-cta-band .sa-btn--ghost:hover { background: var(--sa-navy); color: #fff; }
@media (max-width: 900px) {
	.sa-cta-band__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	.sa-cta-band__photo { width: 96px; height: 96px; }
	.sa-cta-band__actions { width: 100%; max-width: 360px; }
}

/* ---------- Footer ---------- */
.sa-footer { background: var(--sa-ink); color: rgba(255, 255, 255, .78); font-size: .9375rem; }
.sa-footer a { color: #fff; text-decoration: none; }
.sa-footer a:hover { color: var(--sa-sky); text-decoration: underline; }
.sa-footer__inner { max-width: var(--sa-shell); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--sa-gutter) 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.sa-footer__logo { height: 56px; width: auto; display: block; margin-bottom: 1rem; }
.sa-footer__brand p { max-width: 42ch; margin: 0; }
.sa-footer__heading { font-family: var(--wp--preset--font-family--body); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sa-sky); margin: 0 0 1rem; font-weight: 700; }
.sa-footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.sa-footer__contact span { color: rgba(255, 255, 255, .55); font-size: .8125rem; margin-left: .3rem; }
.sa-footer__rating { margin-top: 1.25rem; color: #fff; }
.sa-footer__legal { max-width: var(--sa-shell); margin: 0 auto; padding: 1.25rem var(--sa-gutter) 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; font-size: .8125rem; color: rgba(255, 255, 255, .55); }
.sa-footer__legal p { margin: 0; }
.sa-footer__legal a { color: rgba(255, 255, 255, .75); }
@media (max-width: 860px) { .sa-footer__inner { grid-template-columns: 1fr 1fr; } .sa-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .sa-footer__inner { grid-template-columns: 1fr; } }

/* ---------- Mobile contact bar ---------- */
.sa-mobilebar { display: none; }
@media (max-width: 781px) {
	body { padding-bottom: 64px; }
	.sa-mobilebar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -6px 20px rgba(12, 28, 43, .18); padding-bottom: env(safe-area-inset-bottom); background: var(--sa-navy); }
	.sa-mobilebar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 56px; font-weight: 700; text-decoration: none; }
	.sa-mobilebar__call { background: var(--sa-navy); color: #fff; }
	.sa-mobilebar__call::before { content: ""; width: 1.05em; height: 1.05em; background: var(--sa-sky); -webkit-mask: var(--sa-icon-phone) center / contain no-repeat; mask: var(--sa-icon-phone) center / contain no-repeat; }
	.sa-mobilebar__book { background: var(--sa-sky); color: var(--sa-ink); }
}

/* ---------- Legal pages ---------- */
.sa-legal h2 { font-size: var(--wp--preset--font-size--subheading); margin-top: 2rem; }
.sa-legal h3 { font-size: 1.125rem; font-family: var(--wp--preset--font-family--body); font-weight: 700; margin-top: 1.5rem; }
.sa-legal p, .sa-legal li { color: var(--sa-slate); font-size: .9875rem; }
.sa-contact-list a { overflow-wrap: anywhere; }
/* Breathing room under the page header when a page doesn't open with a full-width section. */
.sa-content:not(:has(> .alignfull:first-child)) { padding-top: var(--wp--preset--spacing--50); }
.sa-content > :not(.alignfull):first-child { margin-top: 0; }

/* ---------- Spacing pass ---------- */
/* Two-column layouts (photo + text, form + details): a generous gutter. WordPress doesn't output the per-block gap. */
.sa-content .wp-block-columns { column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: var(--wp--preset--spacing--40); }
.sa-content .wp-block-columns.sa-cards { column-gap: clamp(1rem, 2.5vw, 1.75rem); row-gap: 1rem; }
/* Inside a section: clear separation between the intro, the main content and any closing button. */
.sa-content .sa-section > * + * { margin-block-start: var(--wp--preset--spacing--40) !important; }

.sa-center > .sa-lede { margin-block-start: 1rem; }
.sa-content .wp-block-column > * + .wp-block-buttons { margin-block-start: 1.75rem; }
.sa-peter__quals { margin-block: 1.5rem !important; }
.sa-press__logos { margin-block-start: 1.25rem !important; }
/* Pull quotes need room either side. */
.sa-content .wp-block-quote { margin-block: var(--wp--preset--spacing--30); }
/* Long-form pages: headings get space above, less below. */
.sa-content .wp-block-column > h2:not(:first-child), .sa-content > h2:not(:first-child) { margin-block-start: var(--wp--preset--spacing--40); }

/* Steps: a 4 x 2 grid where the 8th card links to the full process. */
.sa-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sa-steps li strong { text-wrap: balance; }
.sa-steps li.sa-steps__more { counter-increment: none; padding: 1.25rem; background: var(--sa-navy); border-color: var(--sa-navy); display: flex; transition: background-color .15s; }
.sa-steps li.sa-steps__more::before { display: none; }
.sa-steps li.sa-steps__more:hover { background: var(--sa-navy-2); }
.sa-steps__more a { display: flex; flex-direction: column; width: 100%; color: rgba(255, 255, 255, .8); text-decoration: none; }
.sa-steps__more a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sa-steps__more a::after { content: "→"; margin-top: auto; padding-top: .75rem; color: var(--sa-sky); font-size: 1.6rem; line-height: 1; transition: transform .15s; }
.sa-steps__more a:hover::after { transform: translateX(4px); }
.sa-steps li.sa-steps__more strong { color: #fff; }
@media (max-width: 1100px) { .sa-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sa-steps { grid-template-columns: 1fr; } }
.sa-section > .wp-block-quote:first-child { margin-block-start: 0; }

/* ---------- Consistent widths ---------- */
/* Everything lines up on the 1200px grid. Narrow text (legal pages) sits on its left edge instead of floating in the middle. */
.sa-content.is-layout-constrained > :where(:not(.alignwide):not(.alignfull)) { margin-left: max(0px, calc((100% - var(--sa-wide)) / 2)) !important; margin-right: auto !important; }

/* ---------- Process page: steps + sticky callback card ---------- */
.sa-process { align-items: stretch !important; }
.sa-process__main > .sa-lede { margin-top: 0; }
.sa-process-step:first-of-type { margin-top: var(--wp--preset--spacing--40) !important; }
.sa-process-step__img { margin: 1.75rem 0 0 !important; }
.sa-process-step__img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--sa-radius); box-shadow: var(--sa-shadow); }
.sa-sticky-card { position: sticky; top: 8.5rem; background: #fff; border: 1px solid var(--sa-line); border-radius: var(--sa-radius); box-shadow: var(--sa-shadow); padding: clamp(1.25rem, 3vw, 1.75rem) !important; }
.admin-bar .sa-sticky-card { top: calc(8.5rem + var(--wp-admin--admin-bar--height, 32px)); }
.sa-sticky-card__intro { gap: .9rem !important; align-items: center !important; margin-bottom: .75rem; }
.sa-sticky-card__intro .wp-block-image { margin: 0; flex: none; }
.sa-sticky-card__intro img { border-radius: 50%; border: 2px solid var(--sa-sky); }
.sa-sticky-card h2 { font-size: 1.5rem; margin: 0; line-height: 1.2; }
.sa-sticky-card > p { color: var(--sa-slate); font-size: .9375rem; margin: 0 0 1rem; }
@media (max-width: 781px) {
	.sa-sticky-card { position: static; }
	.sa-process-step { padding-left: 0 !important; }
}
a[href^="tel:"] { white-space: nowrap; }
/* Review cards: our situation label sits above the stars, styled as a category tag (not part of the quote). */
.sa-review__tag { margin: 0; align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sa-sky-deep); background: var(--sa-mist); padding: .3rem .65rem; border-radius: 999px; }
.sa-review-dialog .sa-review__tag { display: inline-block; margin-bottom: .6rem; }
.sa-video video { aspect-ratio: 16 / 9; display: block; }
