/**
 * SEO Master Agency — editorial layer (v3).
 *
 * Loaded after theme.css and motion.css. It moves the theme away from the
 * template look (gradient blobs, glass, glowing cards, pill everything)
 * toward a calmer, editorial system: paper and ink, hairline rules, real
 * visuals, and a varied section rhythm.
 *
 *   1. Effects retired
 *   2. Type and links
 *   3. Buttons
 *   4. Section bands and rhythm
 *   5. Hero (split, with a visual)
 *   6. Figures and screenshots
 *   7. Editorial components (statement, rows, facts, steps, points)
 *   8. Cards, FAQ, forms tidy-up
 *   9. Editor-only placeholders
 *  10. Header and footer
 *  11. Responsive
 */

/* ------------------------------------------------- 1. Effects retired */

/* Old content may still carry these classes; they now render calmly. */
.smseo-aurora::before,
.smseo-aurora::after,
.smseo-grid-bg::before,
.smseo-grid-bg::after,
.smseo-noise::before,
.smseo-noise::after,
.smseo-spotlight::before,
.smseo-spotlight::after { content: none !important; display: none !important; }

.smseo-gradient-text,
.smseo-gradient-text--ink {
	background: none !important;
	-webkit-text-fill-color: currentColor !important;
	color: inherit !important;
}
.smseo-counter--gradient .smseo-counter__value,
.smseo-counter__value {
	background: none !important;
	-webkit-text-fill-color: currentColor !important;
	color: inherit;
}
.smseo-glass,
.smseo-ring {
	background: var(--wp--preset--color--base) !important;
	border: 1px solid var(--wp--preset--color--contrast-3) !important;
	box-shadow: none !important;
	backdrop-filter: none !important;
}
.smseo-glass::before, .smseo-ring::before, .smseo-sheen::after { content: none !important; }
.smseo-lift:hover,
.smseo-card:hover,
.wp-block-columns.is-style-smseo-cards > .wp-block-column:hover { transform: none; }
.smseo-chip__dot { animation: none !important; }

/* Scroll reveal: a short, quiet fade. No blur, no bounce. */
.smseo-js :where(.smseo-reveal, .smseo-stagger > *) { transform: translate3d(0, 8px, 0); }
.smseo-js .smseo-reveal--blur { filter: none; }

/* ------------------------------------------------- 2. Type and links */

body { font-feature-settings: "cv11", "ss01"; }

:where(.wp-block-heading, h1, h2, h3) { text-wrap: balance; }
:where(p, li) { text-wrap: pretty; }

.smseo-kicker,
.wp-block-heading.is-style-smseo-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--contrast-2) !important;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem !important;
	font-weight: 600;
	letter-spacing: 0.12em;
}
.smseo-kicker::before,
.wp-block-heading.is-style-smseo-kicker::before {
	content: "";
	width: 18px;
	height: 1px;
	background: currentColor;
}
.has-dark-background-color .smseo-kicker,
.smseo-band--ink .smseo-kicker { color: #aab3c5 !important; }

.smseo-lede {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
	color: var(--wp--preset--color--contrast-2);
}

/* In-text links: underline that sits a little lower and thinner. */
:where(.entry-content, .wp-block-post-content, main) p a:not(.wp-element-button) {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* A plain "Read more →" link style. */
.smseo-textlink a,
a.smseo-textlink {
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--primary);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--primary) 35%, transparent);
	padding-bottom: 1px;
	transition: border-color .15s ease;
}
.smseo-textlink a:hover,
a.smseo-textlink:hover { border-color: currentColor; }
.smseo-textlink a::after,
a.smseo-textlink::after { content: " →"; }

/* ---------------------------------------------------------- 3. Buttons */

.wp-element-button,
.wp-block-button__link {
	box-shadow: none !important;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.wp-block-button.is-style-smseo-button-arrow .wp-block-button__link::after { content: "→"; }

/* Secondary: ink outline on light, light outline on ink. */
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
	color: var(--wp--preset--color--contrast);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 30%, transparent);
	background: transparent;
	padding: calc(0.85rem - 1px) calc(1.35rem - 1px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):hover {
	border-color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base);
}
.smseo-band--ink .wp-block-button.is-style-outline > .wp-block-button__link,
.has-dark-background-color .wp-block-button.is-style-outline > .wp-block-button__link {
	color: #fff;
	border-color: rgba(255, 255, 255, .35);
}
.wp-block-button.is-style-smseo-button-pill .wp-block-button__link { border-radius: var(--wp--custom--radius--md); }

/* --------------------------------------- 4. Section bands and rhythm */

.smseo-band {
	padding-block: var(--wp--preset--spacing--80);
}
.smseo-band--tight { padding-block: var(--wp--preset--spacing--70); }
.smseo-band--paper { background: var(--wp--preset--color--surface); }
.smseo-band--rule { border-top: 1px solid var(--wp--preset--color--contrast-3); }
.smseo-band--ink {
	background: var(--wp--preset--color--dark);
	color: #e8ecf3;
}
.smseo-band--ink :where(h1, h2, h3, h4) { color: #fff; }
.smseo-band--ink .smseo-lede,
.smseo-band--ink p { color: #c4cbd8; }
.smseo-band--ink a:not(.wp-element-button) { color: #fff; }

/* Section header: kicker, heading, optional lede — left-aligned, readable. */
.smseo-head > * { margin: 0; }
.smseo-head > * + * { margin-top: var(--wp--preset--spacing--30); }
.smseo-head { max-width: 44rem; margin-bottom: var(--wp--preset--spacing--60); }
.smseo-head--split {
	max-width: none;
	display: grid;
	gap: var(--wp--preset--spacing--40);
	align-items: end;
}
@media (min-width: 900px) {
	.smseo-head--split { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------- 5. Hero (split, with a visual) */

.smseo-hero {
	padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--80);
	background:
		linear-gradient(to bottom, var(--wp--preset--color--surface), var(--wp--preset--color--base) 85%);
	border-bottom: 1px solid var(--wp--preset--color--contrast-3);
}
.smseo-hero .wp-block-columns { gap: var(--wp--preset--spacing--70); }
.smseo-hero h1 { max-width: 15ch; }
.smseo-hero .smseo-lede { max-width: 36rem; }

/* Proof list: short, verifiable commitments separated by rules. */
.smseo-proof {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
}
.smseo-proof li { display: inline-flex; align-items: center; padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--wp--preset--color--contrast-3); }
.smseo-proof li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.smseo-proof strong { color: var(--wp--preset--color--contrast); font-weight: 600; margin-right: 4px; }

/* ------------------------------------------- 6. Figures and screenshots */

.smseo-shot img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius--lg);
	background: var(--wp--preset--color--surface);
}
.smseo-shot figcaption,
.smseo-shot .wp-element-caption {
	margin-top: 12px;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--contrast-2);
	text-align: left;
}
.smseo-shot--framed img {
	border: 1px solid var(--wp--preset--color--contrast-3);
	box-shadow: 0 1px 2px rgba(11, 19, 36, .04), 0 18px 40px -22px rgba(11, 19, 36, .28);
}
.smseo-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--md);
}
.smseo-photo--portrait img { aspect-ratio: 5 / 6; }

/* ------------------------------------ 7. Editorial components */

/* Statement: one big sentence instead of a heading + three cards. */
.smseo-statement {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.375rem);
	line-height: 1.25;
	letter-spacing: -0.02em;
	font-weight: 600;
	max-width: 34ch;
	margin: 0;
}
.smseo-statement em { font-style: normal; color: var(--wp--preset--color--contrast-2); }

/* Service rows: a numbered list with WHAT → HOW → IMPACT, not cards. */
.smseo-rows { border-top: 1px solid var(--wp--preset--color--contrast); counter-reset: smseo-row; }
.smseo-row.wp-block-columns {
	counter-increment: smseo-row;
	margin: 0 !important;
	padding-block: var(--wp--preset--spacing--50);
	border-bottom: 1px solid var(--wp--preset--color--contrast-3);
	gap: var(--wp--preset--spacing--50);
}
.smseo-row h3 {
	font-size: var(--wp--preset--font-size--x-large);
	margin: 0;
	display: flex;
	gap: 14px;
	align-items: baseline;
}
.smseo-row h3::before {
	content: counter(smseo-row, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--wp--preset--color--contrast-2);
	flex: 0 0 auto;
}
.smseo-row h3 a { text-decoration: none; color: inherit; }
.smseo-row h3 a:hover { color: var(--wp--preset--color--primary); }
.smseo-row p { margin: 0; font-size: var(--wp--preset--font-size--small); line-height: 1.6; }
.smseo-row p + p { margin-top: 8px; }
.smseo-label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-2);
	margin-bottom: 4px;
}

/* Facts: honest numbers (our own commitments) set large, with a rule. */
.smseo-facts.wp-block-columns { gap: 0; margin: 0; }
.smseo-facts > .wp-block-column {
	border-top: 1px solid var(--wp--preset--color--contrast);
	padding: 18px 24px 0 0;
}
.smseo-facts .smseo-fact__value {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 0 0 8px;
}
.smseo-facts p { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--contrast-2); }

/* Steps: numbered process, horizontal on desktop. */
.smseo-steps.wp-block-columns { counter-reset: smseo-step; gap: var(--wp--preset--spacing--40); }
.smseo-steps > .wp-block-column { counter-increment: smseo-step; position: relative; padding-top: 44px; }
.smseo-steps > .wp-block-column::before {
	content: counter(smseo-step);
	position: absolute;
	top: 0;
	left: 0;
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid currentColor;
	font-size: 0.8125rem;
	font-weight: 600;
}
.smseo-steps > .wp-block-column::after {
	content: "";
	position: absolute;
	top: 15px;
	left: 42px;
	right: 0;
	height: 1px;
	background: var(--wp--preset--color--contrast-3);
}
.smseo-steps > .wp-block-column:last-child::after { display: none; }
.smseo-steps h3 { font-size: var(--wp--preset--font-size--large); margin: 0 0 8px; }
.smseo-steps p { margin: 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--contrast-2); }
.smseo-steps .smseo-label { margin-bottom: 6px; }
.smseo-band--ink .smseo-steps p { color: #c4cbd8; }
.smseo-band--ink .smseo-steps > .wp-block-column::after { background: rgba(255,255,255,.15); }

/* Points: 2x2 statements on a rule, used on the ink band. */
.smseo-points.wp-block-columns { gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); margin: 0; }
.smseo-points > .wp-block-column { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 18px; }
.smseo-band--paper .smseo-points > .wp-block-column,
.smseo-points--light > .wp-block-column { border-top-color: var(--wp--preset--color--contrast-3); }
.smseo-points h3 { font-size: var(--wp--preset--font-size--large); margin: 0 0 8px; }
.smseo-points p { margin: 0; font-size: var(--wp--preset--font-size--small); }

/* Checklist with ticks, used for deliverables. */
.smseo-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.smseo-ticks li { position: relative; padding-left: 28px; }
.smseo-ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .45em;
	width: 14px;
	height: 8px;
	border-left: 2px solid var(--wp--preset--color--accent);
	border-bottom: 2px solid var(--wp--preset--color--accent);
	transform: rotate(-45deg);
}

/* Quote: a note from the founder, set as editorial. */
.smseo-note {
	border-left: 2px solid var(--wp--preset--color--contrast);
	padding-left: var(--wp--preset--spacing--40);
}
.smseo-note p { font-size: var(--wp--preset--font-size--large); line-height: 1.5; }

/* --------------------------------------- 8. Cards, FAQ, forms tidy-up */

.smseo-faq__item { border-radius: 0; border-width: 0 0 1px; background: transparent; box-shadow: none !important; }
.smseo-faq { gap: 0; border-top: 1px solid var(--wp--preset--color--contrast); }
.smseo-faq__item[open] { border-color: var(--wp--preset--color--contrast-3); }
.smseo-faq__q { padding: 20px 0; font-size: var(--wp--preset--font-size--medium); }
.smseo-faq__a { padding: 0 0 20px; max-width: 46rem; color: var(--wp--preset--color--contrast-2); }

.smseo-form { box-shadow: none; border-radius: var(--wp--custom--radius--lg); }
.smseo-band--ink .smseo-form { color: var(--wp--preset--color--contrast); }

.smseo-card { box-shadow: none; }

/* ------------------------------------------- 9. Editor-only placeholders */

/* The theme removes these blocks for visitors on the server; this styling
   is what logged-in editors see in place of the missing real content. */
.smseo-editor-only {
	position: relative;
	outline: 2px dashed #c98a1c;
	outline-offset: 6px;
	border-radius: 2px;
}
.smseo-editor-only::before {
	content: "Visible to editors only — replace with real content to publish";
	position: absolute;
	top: -14px;
	left: 12px;
	z-index: 2;
	background: #c98a1c;
	color: #fff;
	font: 600 11px/1 var(--wp--preset--font-family--body);
	letter-spacing: .02em;
	padding: 5px 8px;
	border-radius: 2px;
}

/* ------------------------------------------------ 10. Header and footer */

.smseo-header { border-bottom-color: var(--wp--preset--color--contrast-3); }
.smseo-header .wp-block-navigation { font-family: var(--wp--preset--font-family--body); font-weight: 500; }
.smseo-header .wp-block-navigation > ul > li > .wp-block-navigation-item__content::after { height: 1px; bottom: 0; }
.smseo-header .wp-block-navigation__submenu-container { border-radius: var(--wp--custom--radius--md) !important; }
.smseo-header .smseo-header__cta .wp-block-button__link { padding: .6rem 1rem; }

/* Mobile overlay: a clean list, submenus as quiet indented groups. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: 4px;
	align-items: stretch;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.0625rem;
	padding-block: 8px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: .9375rem;
	padding-block: 5px;
	color: var(--wp--preset--color--contrast-2);
}

.smseo-footer { background: var(--wp--preset--color--dark) !important; }

/* --------------------------------------------------------- 11. Responsive */

@media (max-width: 899px) {
	.smseo-hero h1 { max-width: none; }
	.smseo-hero .wp-block-columns { gap: var(--wp--preset--spacing--50); }
	.smseo-head { margin-bottom: var(--wp--preset--spacing--50); }
}

@media (max-width: 781px) {
	.smseo-row.wp-block-columns { gap: var(--wp--preset--spacing--30); }
	.smseo-facts > .wp-block-column { padding: 14px 0 18px; }
	.smseo-steps > .wp-block-column::after { display: none; }
	.smseo-steps > .wp-block-column { padding-top: 0; padding-left: 46px; }
	.smseo-steps > .wp-block-column::before { top: -2px; }
	.smseo-points.wp-block-columns { gap: var(--wp--preset--spacing--40); }
}

@media (max-width: 600px) {
	.smseo-proof { display: grid; gap: 8px; }
	.smseo-proof li { border-right: 0; margin: 0; padding: 0; }
	.smseo-statement { max-width: none; }
	.smseo-editor-only::before { font-size: 10px; left: 6px; }
}

/* Client logo strip: small, quiet, never louder than the content. */
.smseo-logos.wp-block-columns { gap: var(--wp--preset--spacing--50); align-items: center; margin-top: var(--wp--preset--spacing--30); }
.smseo-logo img { max-height: 40px; width: auto !important; object-fit: contain !important; opacity: .75; filter: grayscale(1); }
@media (max-width: 781px) {
	.smseo-logos.wp-block-columns { display: grid !important; grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------- 12. Legacy components, re-set */

/* Page header printed by the theme when content has no H1. */
.smseo-pagehead {
	padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	border-bottom: 1px solid var(--wp--preset--color--contrast-3);
	margin-bottom: 0 !important;
}
.smseo-pagehead__title {
	font-size: var(--wp--preset--font-size--huge);
	max-width: 22ch;
	margin: 0;
}
.smseo-pagehead__lede { max-width: 40rem; margin: var(--wp--preset--spacing--30) 0 0; }

/* Gradient fills become solid colour. */
.has-midnight-gradient-background,
.has-brand-gradient-background,
.has-growth-gradient-background { background: var(--wp--preset--color--dark) !important; }
.has-brand-soft-gradient-background,
.has-fade-up-gradient-background { background: var(--wp--preset--color--surface) !important; }

/* Underlined headings: no decorative bar. */
.wp-block-heading.is-style-smseo-underline { padding-bottom: 0; }
.wp-block-heading.is-style-smseo-underline::after { content: none; }

/* Panels laid out in a grid read as a ruled list, not floating cards. */
.is-layout-grid > .wp-block-group.is-style-smseo-panel,
.is-layout-grid > .wp-block-group.is-style-smseo-panel-accent {
	background: transparent;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	padding: 18px 0 0;
}
.is-layout-grid > .wp-block-group.is-style-smseo-panel > .wp-block-image:first-child,
.is-layout-grid > .wp-block-group.is-style-smseo-panel-accent > .wp-block-image:first-child { display: none; }
.has-dark-background-color .is-layout-grid > .wp-block-group.is-style-smseo-panel { border-top-color: rgba(255, 255, 255, .25); }

/* A panel on its own (an aside next to text) becomes a quiet paper box. */
.wp-block-group.is-style-smseo-panel:not(.is-layout-grid > *) {
	background: var(--wp--preset--color--surface);
	border: 0;
	border-radius: var(--wp--custom--radius--md);
}
.has-surface-background-color .wp-block-group.is-style-smseo-panel:not(.is-layout-grid > *) { background: var(--wp--preset--color--base); }

/* Column "cards" style: same treatment as grid panels. */
.wp-block-columns.is-style-smseo-cards > .wp-block-column {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--contrast);
	border-radius: 0;
	padding: 18px 0 0;
	background: transparent;
}

.smseo-card-title { font-size: var(--wp--preset--font-size--large); }
.smseo-card-body { color: var(--wp--preset--color--contrast-2); }

/* Ticks: a quiet green check instead of a heavy glyph. */
.wp-block-list.is-style-smseo-check li::before { font-weight: 600; }

/* Chips ("live status" pills) read as plain labels. */
.smseo-chip {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	font-size: .75rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	font-weight: 600;
}
.smseo-chip__dot { display: none !important; }

/* Contact methods: label + value rows. */
.smseo-contact-list { list-style: none; padding: 0; margin: var(--wp--preset--spacing--40) 0; display: grid; gap: 10px; }
.smseo-contact-list li { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--wp--preset--color--contrast-3); }
.smseo-contact-list strong { min-width: 6rem; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); }
.smseo-contact-list a { font-weight: 600; text-decoration: none; }

/* Case study: facts row and closing CTA. */
.smseo-cs-facts.wp-block-columns { margin-bottom: var(--wp--preset--spacing--60) !important; }
.smseo-cs-facts p { color: var(--wp--preset--color--contrast); font-weight: 600; }
.smseo-cs-cta { margin-top: var(--wp--preset--spacing--60); padding: var(--wp--preset--spacing--50); background: var(--wp--preset--color--surface); border-radius: var(--wp--custom--radius--md); }
.smseo-cs-cta h3 { margin-top: 0; }
