/*
Theme Name: Simon White SEO
Theme URI: https://simonwhiteseo.com
Author: Simon White
Description: Swiss-poster block theme for Simon White SEO.
Version: 2.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: simon-white-seo
*/

:root {
	--sw-rule: 3px solid var(--wp--preset--color--ink);
	--sw-rule-thin: 1px solid var(--wp--preset--color--ink);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
:where(a, button, input, summary, .wp-element-button):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}
.skip-link:focus { z-index: 100000; }

/* Buttons: square, outline variant uses a thick rule */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid currentColor;
	background: transparent;
	padding: calc(0.95rem - 2px) calc(1.6rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); border-color: var(--wp--preset--color--ink); }
.has-ink-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--white); }
.sw-btn-navy .wp-block-button__link { background: var(--wp--preset--color--ink); }
.sw-btn-navy .wp-block-button__link:hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); }

/* Header */
.sw-header { position: sticky; top: 0; z-index: 50; border-bottom: var(--sw-rule); }
.sw-header .wp-block-site-title a { text-decoration: none; color: var(--wp--preset--color--ink); }
.sw-logo-mark { display: inline-block; width: 22px; height: 22px; background: var(--wp--preset--color--accent); border-radius: 0 0 22px 0; flex: none; }
.sw-header .wp-block-navigation a { text-decoration: none; }
.sw-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent-deep); }
.sw-header .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem); }
.sw-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-size: var(--wp--preset--font-size--large); gap: 1.25rem; }
@media (max-width: 600px) { .sw-header-cta { display: none; } }

/* Labels */
.sw-eyebrow {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--accent-deep);
}
.has-ink-background-color .sw-eyebrow, .has-accent-background-color .sw-eyebrow { color: var(--wp--preset--color--white); }

/* Hero */
.sw-hero h1 { text-wrap: balance; }
.sw-hero h1 .sw-hl { color: var(--wp--preset--color--accent); }
.sw-hero-art svg { width: 100%; height: auto; display: block; }

/* Proof strip: four cells split by rules */
.sw-proof { border-bottom: var(--sw-rule); }
.sw-proof .wp-block-column { border-left: var(--sw-rule-thin); padding: 1.6rem 1.4rem; display: flex; gap: 0.9rem; align-items: center; }
.sw-proof .wp-block-column:first-child { border-left: 0; }
.sw-proof p { margin: 0; font-weight: 700; line-height: 1.25; }
.sw-icon svg { width: 34px; height: 34px; display: block; }
@media (max-width: 781px) { .sw-proof .wp-block-column { border-left: 0; border-top: var(--sw-rule-thin); } .sw-proof .wp-block-column:first-child { border-top: 0; } }

/* Service cards */
.sw-card { border: var(--sw-rule); height: 100%; }
.sw-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.sw-card:hover, .sw-card:focus-within { border-color: var(--wp--preset--color--accent); box-shadow: 8px 8px 0 var(--wp--preset--color--ink); transform: translate(-3px, -3px); }
.sw-card:hover .sw-num, .sw-card:focus-within .sw-num { color: var(--wp--preset--color--accent); }
@media (prefers-reduced-motion: reduce) { .sw-card:hover, .sw-card:focus-within { transform: none; } }
.sw-card a { text-decoration: none; font-weight: 700; }
.sw-num { font-family: var(--wp--preset--font-family--display); font-size: 3.5rem; line-height: 0.9; color: var(--wp--preset--color--accent); margin: 0; }
@media (prefers-reduced-motion: reduce) { .sw-card { transition: none; } }

/* About */
.sw-section-05-about { overflow-x: clip; }
.sw-photo { aspect-ratio: 1 / 1; background: var(--wp--preset--color--grey); border: var(--sw-rule); position: relative; display: flex; align-items: center; justify-content: center; box-shadow: 20px 20px 0 var(--wp--preset--color--accent); margin-right: 20px; margin-bottom: 20px; }
.sw-photo p { font-family: var(--wp--preset--font-family--display); font-size: 1.6rem; letter-spacing: 0.04em; color: var(--wp--preset--color--muted); margin: 0; }
.sw-stat strong { display: block; font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 0.9; color: var(--wp--preset--color--accent); }
.sw-stats .wp-block-column { border-top: var(--sw-rule); padding-top: 0.9rem; }

/* Why grid: 3 x 2 with rules */
.sw-reasons { border-top: var(--sw-rule); }
.sw-reasons > * { border-bottom: var(--sw-rule-thin); padding: 1.6rem 1.4rem 1.6rem 0; }
.sw-reasons h3 { font-size: 1.9rem; }

/* Testimonials */
.sw-quote { border: 3px solid var(--wp--preset--color--white); height: 100%; }
.sw-quote .sw-qmark { font-family: var(--wp--preset--font-family--display); font-size: 6rem; line-height: 0.7; color: var(--wp--preset--color--accent); margin: 0; height: 3rem; }

/* Process band */
.sw-steps .wp-block-column { position: relative; }
.sw-steps .sw-step-num { font-family: var(--wp--preset--font-family--display); font-size: 5rem; line-height: 0.85; color: var(--wp--preset--color--accent); margin: 0; }
@media (min-width: 782px) {
	.sw-steps .wp-block-column:not(:last-child)::after { content: "\2192"; position: absolute; right: -1.6rem; top: 1.2rem; font-size: 2rem; color: var(--wp--preset--color--accent); }
}

/* Post cards */
.sw-post-card { border: var(--sw-rule); height: 100%; }
.sw-post-card .sw-card-art svg { width: 100%; height: auto; display: block; }
.sw-post-card .wp-block-post-title a, .sw-post-card h3 a { text-decoration: none; color: inherit; }
.sw-post-card .wp-block-post-title a:hover, .sw-post-card h3 a:hover { color: var(--wp--preset--color--accent-deep); }
.sw-post-card .wp-block-post-title { font-size: 1.9rem; }
.sw-more a, a.sw-more { font-weight: 700; text-decoration: none; }
.sw-card-art > span { display: none; }
.sw-insights > li:nth-child(3n+1) .sw-art-1,
.sw-insights > li:nth-child(3n+2) .sw-art-2,
.sw-insights > li:nth-child(3n) .sw-art-3 { display: block; }
.sw-card-art { border-bottom: var(--sw-rule); }
.sw-reasons > * { padding-right: 2rem; }

/* FAQ */
.sw-faq details { border-bottom: 2px solid var(--wp--preset--color--ink); padding: 1.1rem 0; }
.sw-faq details:first-of-type { border-top: var(--sw-rule); }
.sw-faq summary { font-weight: 700; font-size: var(--wp--preset--font-size--large); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.sw-faq summary::-webkit-details-marker { display: none; }
.sw-faq summary::after { content: "+"; font-family: var(--wp--preset--font-family--display); font-size: 2rem; line-height: 1; color: var(--wp--preset--color--accent); }
.sw-faq details[open] summary::after { content: "\2212"; }
.sw-faq details > :not(summary) { margin-top: 0.75rem; color: var(--wp--preset--color--muted); }

/* CTA band */
.sw-cta h2 { color: var(--wp--preset--color--white); }

/* Long-form reading */
.sw-prose { font-size: var(--wp--preset--font-size--medium); }
.sw-prose h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.5rem; }
.sw-prose h3 { font-size: 1.75rem; margin-top: 2rem; }
.sw-prose h4 { font-size: 1.35rem; }
.sw-prose img { height: auto; }
.sw-prose iframe { max-width: 100%; }
.sw-prose table { display: block; overflow-x: auto; }

/* Footer */
.sw-footer a { color: inherit; text-decoration: none; }
.sw-footer a:hover { color: var(--wp--preset--color--accent); }
.sw-footer .wp-block-site-title a { color: var(--wp--preset--color--white); }

/* ---- Fidelity pass 1 ---- */
/* 01 nav: bigger mark and wordmark, heavier rule */
.sw-header { border-bottom-width: 4px; }
.sw-header > .wp-block-group { min-height: 56px; }
.sw-header .sw-logo-mark { width: 30px; height: 30px; border-radius: 0 0 30px 0; }
.sw-header .wp-block-site-title { font-size: 2.4rem; }

/* 02 hero: navy first lines, orange second half */
.sw-hero h1 { font-size: clamp(3rem, 6.2vw, 5.6rem); line-height: 0.92; }

/* 03 proof: tall navy band, big white icons over display labels */
.sw-proof { border-bottom: 0; }
.sw-proof .wp-block-column { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2.6rem 1.6rem; border-color: rgb(255 255 255 / .35); }
.sw-proof .sw-icon svg { width: 54px; height: 54px; }
.sw-proof .sw-icon svg * { stroke: #fff; }
.sw-proof .sw-icon svg [fill="#D4441B"] { fill: var(--wp--preset--color--accent); stroke: var(--wp--preset--color--accent); }
.sw-proof p { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 1.9rem; line-height: 1; letter-spacing: .01em; }

/* 04 services: navy numerals, large orange icons, arrow links */
.sw-card .sw-num { color: var(--wp--preset--color--ink); }
.sw-card .sw-icon svg { width: 52px; height: 52px; }
.sw-card .sw-icon svg * { stroke: var(--wp--preset--color--accent); }
.sw-card .sw-arrow a { font-size: 2rem; line-height: 1; color: var(--wp--preset--color--accent-deep); }
.sw-card:hover .sw-num { color: var(--wp--preset--color--accent); }

/* 05 about: geometric decoration, navy stats with dividers, orange bottom rule */
.sw-about { border-bottom: 10px solid var(--wp--preset--color--accent); }
.sw-photo-wrap { position: relative; padding: 28px; }
.sw-photo { box-shadow: none; margin: 0; }
.sw-deco-q { position: absolute; left: 0; top: 0; width: 46%; height: 46%; background: var(--wp--preset--color--accent); border-radius: 100% 0 0 0; }
.sw-deco-corner { position: absolute; right: 0; bottom: 0; width: 34%; height: 34%; background: var(--wp--preset--color--ink); }
.sw-deco-dots { position: absolute; right: 0; top: 0; width: 30%; height: 30%; background-image: radial-gradient(var(--wp--preset--color--ink) 2px, transparent 2.5px); background-size: 14px 14px; }
.sw-photo-wrap .sw-photo { position: relative; z-index: 1; background: var(--wp--preset--color--grey); }
.sw-stat strong { color: var(--wp--preset--color--ink); }
.sw-stats .wp-block-column { border-top: 0; border-left: var(--sw-rule); padding: 0 0 0 1rem; }

/* 06 why: orange section, white rules and icons */
.sw-section-06-why .sw-reasons { border-top-color: rgb(255 255 255 / .7); }
.sw-section-06-why .sw-reasons > * { border-bottom-color: rgb(255 255 255 / .7); }
.sw-section-06-why .sw-icon svg { width: 46px; height: 46px; }

/* 07 testimonials: light ground, navy-ruled cards, orange quote marks */
.sw-quote { border: var(--sw-rule); background: var(--wp--preset--color--white); }

/* 08 process: title left with divider, orange discs with white numerals, bold arrows */
.sw-process > .wp-block-column:first-child { border-right: 3px solid rgb(255 255 255 / .6); padding-right: 2rem; }
.sw-steps .sw-step-num { width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--wp--preset--color--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; padding-top: .2rem; }
.sw-steps h3 { font-size: 1.9rem; margin-top: .8rem; }
@media (min-width: 782px) { .sw-steps .wp-block-column:not(:last-child)::after { content: "\2192"; font-weight: 700; font-size: 2.8rem; right: -2.4rem; top: .5rem; } }
@media (max-width: 781px) { .sw-process > .wp-block-column:first-child { border-right: 0; border-bottom: 3px solid rgb(255 255 255 / .6); padding: 0 0 1rem; } }

/* 09 insights: rule from heading to link, sentence-case bold titles */
.sw-ins-head { gap: 1.5rem; }
.sw-ins-head h2 { margin: 0; white-space: nowrap; }
.sw-ins-head .sw-head-rule { flex: 1; height: 3px; background: var(--wp--preset--color--ink); min-width: 2rem; }
.sw-ins-head p { margin: 0; white-space: nowrap; }
.sw-post-card .wp-block-post-title { font-family: var(--wp--preset--font-family--body); text-transform: none; font-weight: 700; font-size: 1.3rem; line-height: 1.25; letter-spacing: 0; }

/* 10 FAQ boxed rows + compact CTA banner */
.sw-faq details { border: var(--sw-rule); padding: 1.1rem 1.4rem; }
.sw-faq details:first-of-type { border-top: var(--sw-rule); }
.sw-cta { position: relative; overflow: hidden; }
.sw-cta h2 { font-size: var(--wp--preset--font-size--xx-large); position: relative; z-index: 1; }
.sw-cta .wp-block-buttons { position: relative; z-index: 1; }
.sw-cta-arrow { position: absolute; left: 6%; top: 50%; transform: translateY(-50%); font-size: 7rem; line-height: 1; font-weight: 700; color: var(--wp--preset--color--ink); }
.sw-cta-dots { position: absolute; left: 18%; bottom: 14%; width: 110px; height: 70px; background-image: radial-gradient(#fff 2px, transparent 2.5px); background-size: 14px 14px; opacity: .8; }
.sw-cta-half { position: absolute; right: -60px; top: 50%; width: 200px; height: 200px; transform: translateY(-50%); background: var(--wp--preset--color--ink); border-radius: 50%; }
.sw-cta-stripes { position: absolute; right: 16%; top: 0; width: 90px; height: 100%; background: repeating-linear-gradient(90deg, rgb(255 255 255 / .35) 0 6px, transparent 6px 18px); }
@media (max-width: 781px) { .sw-cta-arrow, .sw-cta-stripes, .sw-cta-dots { display: none; } .sw-cta-half { right: -120px; opacity: .5; } }
@media (max-width: 781px) {
	.sw-ins-head { flex-wrap: wrap !important; }
	.sw-ins-head h2 { white-space: normal; }
	.sw-ins-head .sw-head-rule { display: none; }
	.sw-hero h1 { overflow-wrap: anywhere; }
}

/* ---- Fidelity pass 2 ---- */
.sw-header { padding-top: 1.2rem !important; padding-bottom: 1.2rem !important; }
.sw-wordmark { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 2.9rem; line-height: 1; letter-spacing: .01em; }
.sw-wordmark a { color: var(--wp--preset--color--ink); text-decoration: none; }
.sw-header .sw-logo-mark { width: 38px; height: 38px; border-radius: 0 0 38px 0; }
.sw-hero h1 { font-size: clamp(3.2rem, 7vw, 6.6rem); }
.sw-proof .wp-block-column { align-items: center; text-align: center; padding: 3.6rem 1.6rem; }
.sw-proof .sw-icon svg { width: 68px; height: 68px; }
.sw-proof p { font-size: 2.2rem; max-width: 12ch; }
.sw-card .sw-num { font-size: 4.6rem; }
.sw-card .sw-icon svg { width: 66px; height: 66px; }
.sw-stat span { display: block; font-family: var(--wp--preset--font-family--display); font-size: 1.5rem; letter-spacing: .03em; text-transform: uppercase; }
.sw-section-06-why .sw-reasons > * { border-right: 2px solid rgb(255 255 255 / .7); padding: 1.8rem 1.6rem; }
.sw-section-06-why .sw-reasons > *:nth-child(3n) { border-right: 0; }
.sw-section-06-why .sw-why-item .sw-icon svg { width: 58px; height: 58px; }
.sw-section-06-why .sw-why-item > .wp-block-group { flex: 1; }
@media (max-width: 781px) { .sw-section-06-why .sw-reasons > * { border-right: 0; } }
.sw-quote { display: flex; gap: 1.2rem; align-items: flex-start; }
.sw-quote .sw-qmark { font-size: 9rem; line-height: .75; height: auto; flex: none; }
.sw-qtext { font-weight: 600; }
.sw-section-08-process { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; }
.sw-section-08-process h2 { font-size: var(--wp--preset--font-size--huge); }
.sw-steps .sw-step-num { width: 5rem; height: 5rem; font-size: 3.2rem; }
.sw-steps h3 { font-size: 2.4rem; }
.sw-steps .wp-block-column { border-bottom: 3px solid var(--wp--preset--color--accent); padding-bottom: 1.2rem; }
.sw-form-wrap { border: var(--sw-rule); background: var(--wp--preset--color--white); margin: 2rem 0; }
@media (max-width: 1180px) and (min-width: 600px) {
	.sw-header .wp-block-navigation { gap: 1.1rem !important; }
	.sw-header .wp-block-navigation__container { gap: 1.1rem !important; }
	.sw-wordmark { font-size: 2.3rem; }
}
.sw-author { border-top: var(--sw-rule); border-bottom: var(--sw-rule-thin); padding-block: 1.4rem; }
.sw-author h2 { margin: 0; }
