/* ==========================================================================
   Sivad Custom Fab — site styles
   Concept: the shop drawing and the cut. Light "drawing sheet" sections,
   dark "plate" sections, Mohave for the spec-forward headlines, Archivo for
   reading, Sivad purple as the plasma arc. One animated moment: the hero cut.
   ========================================================================== */

:root {
	--sf-plate: var(--wp--preset--color--plate, #1d1c21);
	--sf-plate-2: var(--wp--preset--color--plate-2, #29282f);
	--sf-ink: var(--wp--preset--color--ink, #1f1e23);
	--sf-steel: var(--wp--preset--color--steel, #585b60);
	--sf-grey: var(--wp--preset--color--grey, #888b8d);
	--sf-line: var(--wp--preset--color--line, #c9cbd0);
	--sf-sheet: var(--wp--preset--color--sheet, #e8e9ec);
	--sf-paper: var(--wp--preset--color--paper, #f6f6f7);
	--sf-brand: var(--wp--preset--color--brand, #472c7c);
	--sf-deep: var(--wp--preset--color--brand-deep, #2e1a47);
	--sf-arc: var(--wp--preset--color--arc, #c9bce6);
	--sf-display: var(--wp--preset--font-family--display, Mohave, sans-serif);
	--sf-radius: 2px;
	--sf-header-h: 76px;
	/* Drawing colors (overridden on dark sections). */
	--d-ink: var(--sf-ink);
	--d-dim: var(--sf-brand);
	--d-faint: color-mix(in srgb, var(--sf-ink) 22%, transparent);
	--d-fill: color-mix(in srgb, var(--sf-ink) 5%, transparent);
	--d-bg: var(--sf-paper);
}

html { scroll-padding-top: calc(var(--sf-header-h) + 1rem); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "kern"; }
::selection { background: var(--sf-arc); color: var(--sf-deep); }
img, svg { max-width: 100%; }
p { text-wrap: pretty; }
h1, h2, h3, .wp-block-heading { text-wrap: balance; }

/* Focus: always visible, never removed. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--sf-brand);
	outline-offset: 3px;
	border-radius: 1px;
}
.is-style-plate :where(a, button, summary, [tabindex]):focus-visible,
.is-style-deep :where(a, button, summary, [tabindex]):focus-visible { outline-color: var(--sf-arc); }

.skip-link.screen-reader-text:focus { background: var(--sf-plate); color: #fff; padding: .75rem 1rem; z-index: 100000; }

/* Links inside running text: underline offset reads cleaner. */
:where(p, li, dd, address) a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
:where(p, li, dd) a:hover { text-decoration-thickness: 2px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header-wrap { top: 0; position: relative; } }
/* Solid background, no backdrop-filter: a filter here would trap the fixed menu drawer inside the header bar.
   White, so the logo shows in its own colors with the most contrast. */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--sf-line);
}
.site-header__bar { min-height: var(--sf-header-h); gap: 1.5rem; }
.site-header .sivad-logo { margin: 0; line-height: 0; flex: 0 0 auto; }
.site-header .sivad-logo a { display: inline-block; }
.site-header .sivad-logo svg { height: 56px; width: auto; display: block; }
.site-header__actions { gap: 1rem; align-items: center; }
.site-header .wp-block-navigation { gap: 1.25rem; }
.site-header .wp-block-navigation__container { flex-wrap: nowrap; gap: 1.1rem; }
/* Contact is a utility link: in the drawer and footer, not the desktop bar (room for call + quote + cart). */
@media (min-width: 1240px) { .site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .nav-utility { display: none; } }
@media (min-width: 1240px) and (max-width: 1359px) {
	.site-header__call .sivad-call__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.site-header__call .sivad-call { width: 2.6rem; height: 2.6rem; justify-content: center; border: 1.5px solid var(--sf-line); border-radius: var(--sf-radius); }
}
.site-header .wp-block-navigation-item__content { white-space: nowrap; }
.site-header .wp-block-navigation-item__content { color: var(--sf-ink); text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-header .wp-block-navigation-item__content:hover { border-bottom-color: var(--sf-line); }
.site-header .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.site-header .wp-block-navigation-item__content[aria-current="page"] { border-bottom-color: var(--sf-brand); }
.site-header .nav-utility .wp-block-navigation-item__content { color: var(--sf-steel); }
.site-header__cta .wp-block-button__link { padding: .7rem 1.1rem; white-space: nowrap; }

.sivad-call { display: inline-flex; align-items: center; gap: .45rem; color: var(--sf-ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.sivad-call__icon { width: 1.05rem; height: 1.05rem; background: currentColor; -webkit-mask: 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") center / contain no-repeat; mask: 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") center / contain no-repeat; }

/* Collapse the menu into the drawer below 1240px (tablets and small laptops get the drawer). */
@media (max-width: 1239px) {
	.site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.site-header__call .sivad-call__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.site-header__call .sivad-call { width: 2.6rem; height: 2.6rem; justify-content: center; border: 1.5px solid var(--sf-line); border-radius: var(--sf-radius); }
}
@media (max-width: 600px) {
	:root { --sf-header-h: 64px; }
	.site-header .sivad-logo svg { height: 42px; }
	.site-header__bar { gap: .75rem; }
	.site-header__actions { gap: .6rem; }
	.site-header__cta .wp-block-button__link { padding: .6rem .8rem; font-size: .9rem; }
}
@media (max-width: 380px) {
	.site-header .sivad-logo svg { height: 36px; }
}
.site-header .wp-block-navigation__responsive-container-open,
.site-header .wp-block-navigation__responsive-container-close { color: var(--sf-ink); padding: .35rem; }
.site-header .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }

/* Drawer */
.site-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--sf-plate) !important;
	color: #fff !important;
	padding: clamp(1.25rem, 5vw, 3rem);
}
.site-header .is-menu-open .wp-block-navigation__responsive-container-close { color: #fff; }
.site-header .is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; padding-top: 3.5rem; }
.site-header .is-menu-open .wp-block-navigation__container { gap: .4rem !important; align-items: flex-start !important; }
.site-header .is-menu-open .wp-block-navigation-item__content {
	color: #fff; font-family: var(--sf-display); font-size: clamp(2rem, 8vw, 3rem); font-weight: 500; line-height: 1.1; border: 0;
}
.site-header .is-menu-open .wp-block-navigation-item__content[aria-current="page"] { color: var(--sf-arc); }
.site-header .is-menu-open .nav-utility .wp-block-navigation-item__content { font-family: inherit; font-size: 1.1rem; color: var(--sf-arc); margin-top: 1rem; }

/* Focused header (quote page) */
.site-header--focused .site-header__bar { min-height: 64px; }
.site-header--focused .site-header__aside { gap: 1rem; font-size: .95rem; color: var(--sf-steel); }
.site-header--focused .site-header__aside a { color: var(--sf-ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Section styles
   -------------------------------------------------------------------------- */
.is-style-plate { background: var(--sf-plate); color: #ecebef; --d-ink: #e2e1e6; --d-dim: var(--sf-arc); --d-faint: rgba(255, 255, 255, .16); --d-fill: rgba(255, 255, 255, .04); --d-bg: var(--sf-plate); }
.is-style-plate :where(h1, h2, h3, h4) { color: #fff; }
.is-style-plate a:where(:not(.wp-element-button)) { color: var(--sf-arc); }
.is-style-plate .has-steel-color, .is-style-plate .sf-muted { color: #b5b4bc !important; }
.is-style-deep { background: var(--sf-deep); color: #f1edf8; --d-ink: #f1edf8; --d-dim: var(--sf-arc); --d-faint: rgba(255, 255, 255, .18); --d-bg: var(--sf-deep); }
.is-style-deep :where(h1, h2, h3) { color: #fff; }
.is-style-deep a:where(:not(.wp-element-button)) { color: #fff; }
.is-style-deep .wp-element-button:not(.is-style-ghost .wp-element-button) { background: #fff; color: var(--sf-deep); }
.is-style-deep .wp-element-button:not(.is-style-ghost .wp-element-button):hover { background: var(--sf-arc); color: var(--sf-deep); }
.is-style-sheet { background: var(--sf-sheet); --d-bg: var(--sf-sheet); }
/* Spec sheet: faint drawing-paper grid. */
.is-style-spec-sheet {
	background-color: var(--sf-paper);
	background-image:
		linear-gradient(color-mix(in srgb, var(--sf-ink) 5.5%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--sf-ink) 5.5%, transparent) 1px, transparent 1px);
	background-size: 24px 24px;
	background-position: -1px -1px;
}

/* Ghost button */
.wp-block-button.is-style-ghost .wp-block-button__link { background: transparent; color: var(--sf-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.wp-block-button.is-style-ghost .wp-block-button__link:hover { background: var(--sf-ink); color: #fff; }
.is-style-plate .wp-block-button.is-style-ghost .wp-block-button__link,
.is-style-deep .wp-block-button.is-style-ghost .wp-block-button__link { color: #fff; }
.is-style-plate .wp-block-button.is-style-ghost .wp-block-button__link:hover,
.is-style-deep .wp-block-button.is-style-ghost .wp-block-button__link:hover { background: #fff; color: var(--sf-plate); }
.is-style-plate .wp-element-button:not(.is-style-ghost .wp-element-button):hover { background: var(--sf-arc); color: var(--sf-deep); }

/* Section rhythm */
.sf-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.sf-section--tight { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.sf-lede { font-size: var(--wp--preset--font-size--large); line-height: 1.5; max-width: 40rem; }
.sf-muted { color: var(--sf-steel); }
.sf-micro { font-size: var(--wp--preset--font-size--small); color: var(--sf-steel); }
.is-style-plate .sf-micro, .is-style-deep .sf-micro { color: #b5b4bc; }
.sf-measure { max-width: 42rem; }

/* Section heading pattern: heading with a cut rule underneath (the kerf). */
.sf-cut-rule { position: relative; padding-bottom: .9rem; margin-bottom: 1.5rem; }
.sf-cut-rule::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 7rem; height: 2px;
	background: linear-gradient(90deg, var(--sf-brand) 0 62%, transparent 62% 66%, var(--sf-brand) 66% 100%);
}
.is-style-plate .sf-cut-rule::after, .is-style-deep .sf-cut-rule::after { background: linear-gradient(90deg, var(--sf-arc) 0 62%, transparent 62% 66%, var(--sf-arc) 66% 100%); }
.has-text-align-center.sf-cut-rule::after { left: 50%; transform: translateX(-50%); }

/* --------------------------------------------------------------------------
   Drawings and image slots
   -------------------------------------------------------------------------- */
.sivad-figure { margin: 0; position: relative; }
.sivad-figure.is-drawing { color: var(--d-ink); }
.sivad-figure.has-ratio-4-3 { aspect-ratio: 4 / 3; }
.sivad-figure.has-ratio-3-2 { aspect-ratio: 3 / 2; }
.sivad-figure.has-ratio-16-9 { aspect-ratio: 16 / 9; }
.sivad-figure.has-ratio-1-1 { aspect-ratio: 1; }
.sivad-figure.has-ratio-3-4 { aspect-ratio: 3 / 4; }
.sivad-figure[class*="has-ratio"] > img, .sivad-figure[class*="has-ratio"] > svg { width: 100%; height: 100%; object-fit: cover; }
.sivad-figure.is-drawing[class*="has-ratio"] > svg { object-fit: contain; }
.sivad-figure__img { display: block; width: 100%; height: auto; border-radius: var(--sf-radius); }
.sivad-drawing { display: block; width: 100%; height: auto; overflow: visible; }
.sivad-drawing .d-part, .sivad-drawing .d-cut, .sivad-drawing .d-rail { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sivad-drawing .d-cut { stroke-width: 1.6; }
.sivad-drawing .d-rail { stroke-width: 5; }
.sivad-drawing .d-thin { fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.sivad-drawing .d-faint { fill: none; stroke: var(--d-faint); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sivad-drawing .d-fill { fill: var(--d-fill); stroke: none; }
.sivad-drawing .d-cutfill { fill: var(--d-bg); stroke: none; }
.sivad-drawing .d-dim, .sivad-drawing .d-ext { fill: none; stroke: var(--d-dim); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sivad-drawing .d-ext { opacity: .7; }
.sivad-drawing .d-arrow, .sivad-drawing .d-dot { fill: var(--d-dim); stroke: none; }
.sivad-drawing .d-center { fill: none; stroke: var(--d-dim); stroke-width: 1; stroke-dasharray: 10 3 2 3; opacity: .6; vector-effect: non-scaling-stroke; }
.sivad-drawing .d-bend { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 6 4; opacity: .7; vector-effect: non-scaling-stroke; }
.sivad-drawing .d-ground { fill: none; stroke: var(--d-faint); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.sivad-drawing .d-chain { fill: none; stroke: currentColor; stroke-width: 2; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.sivad-drawing .d-weldbead { fill: var(--d-dim); fill-opacity: .25; stroke: var(--d-dim); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.sivad-drawing .d-txt { fill: var(--d-dim); font: 600 13px/1 var(--wp--preset--font-family--body, sans-serif); font-variant-numeric: tabular-nums; paint-order: stroke; stroke: var(--d-bg); stroke-width: 5px; stroke-linejoin: round; }
.sivad-drawing .d-txt--lg { font-size: 17px; }
.sivad-drawing .d-spark { fill: var(--sf-arc); }
.sivad-drawing .d-arc { fill: none; stroke: var(--sf-arc); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px var(--sf-arc)); }
:where(.is-style-sheet, .is-style-spec-sheet, body) .sivad-drawing .d-spark { fill: var(--sf-brand); }
:where(.is-style-sheet, .is-style-spec-sheet, body) .sivad-drawing .d-arc { stroke: var(--sf-brand); filter: none; }
.is-style-plate .sivad-drawing .d-spark, .is-style-deep .sivad-drawing .d-spark { fill: var(--sf-arc); }
.is-style-plate .sivad-drawing .d-arc, .is-style-deep .sivad-drawing .d-arc { stroke: var(--sf-arc); filter: drop-shadow(0 0 4px var(--sf-arc)); }

/* --------------------------------------------------------------------------
   Hero — the one animated moment: the torch cuts the part.
   -------------------------------------------------------------------------- */
.sf-hero { position: relative; overflow: hidden; }
.sf-hero .wp-block-cover__inner-container, .sf-hero > .wp-block-group__inner-container { position: relative; z-index: 1; }
.sf-hero__grid { align-items: center !important; }
.sf-hero h1 { font-size: var(--wp--preset--font-size--display); line-height: .94; margin: 0 0 1.5rem; max-width: 12ch; }
.sf-hero:not(.sf-hero--home) h1 { font-size: clamp(2.75rem, 5.2vw, 4.6rem); max-width: 17ch; line-height: .98; }
.sf-hero--home h1 { max-width: 16ch; }
.sf-hero .sf-lede { color: #d8d6de; }
.sf-hero .sivad-drawing--kerf { max-width: 640px; margin-inline: auto; }
.sivad-drawing--kerf .d-kerf { fill: none; stroke: var(--sf-arc); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(201, 188, 230, .7)); stroke-dasharray: 1; stroke-dashoffset: 1; animation: sf-cut 2.8s cubic-bezier(.55, .1, .35, 1) .35s forwards; }
.sivad-drawing--kerf .d-kerf-guide { fill: none; stroke: var(--d-faint); stroke-width: 1; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.sivad-drawing--kerf .d-kerf-fill { fill: rgba(255, 255, 255, .045); stroke: none; opacity: 0; animation: sf-fade .8s ease 3s forwards; }
.sivad-drawing--kerf .d-torch { opacity: 0; animation: sf-fade .3s ease 3.1s forwards; }
.sivad-drawing--kerf .d-spark--glow { fill: var(--sf-arc); opacity: .35; filter: blur(6px); }
@keyframes sf-cut { to { stroke-dashoffset: 0; } }
@keyframes sf-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.sivad-drawing--kerf .d-kerf { animation: none; stroke-dashoffset: 0; }
	.sivad-drawing--kerf .d-kerf-fill, .sivad-drawing--kerf .d-torch { animation: none; opacity: 1; }
}
@media (max-width: 781px) {
	.sf-hero .sivad-drawing--kerf { max-width: 420px; margin-top: 1rem; }
	.sf-hero h1 { max-width: none; }
}

/* --------------------------------------------------------------------------
   Capability strip — four cells of a spec sheet
   -------------------------------------------------------------------------- */
.sf-specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--sf-line); border-left: 1px solid var(--sf-line); margin: 0; padding: 0; list-style: none; }
.sf-specs > * { border-right: 1px solid var(--sf-line); border-bottom: 1px solid var(--sf-line); padding: 1.25rem 1.25rem 1.4rem; margin: 0 !important; display: grid; gap: .9rem; align-content: start; background: color-mix(in srgb, var(--sf-paper) 80%, transparent); }
.sf-specs .sivad-figure { max-width: 220px; }
.sf-specs h3, .sf-specs p.sf-spec-label { font-family: var(--wp--preset--font-family--body); font-size: 1.05rem; font-weight: 650; line-height: 1.3; margin: 0; }
@media (max-width: 900px) { .sf-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .sf-specs { grid-template-columns: 1fr; } .sf-specs > * { grid-template-columns: 96px 1fr; align-items: center; } .sf-specs .sivad-figure { max-width: 96px; } }

/* --------------------------------------------------------------------------
   Service lines — two large panels
   -------------------------------------------------------------------------- */
.sf-lines { gap: 0 !important; }
.sf-lines > .wp-block-column { padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; gap: 1rem; }
.sf-lines > .wp-block-column:first-child { background: var(--sf-white, #fff); border: 1px solid var(--sf-line); --d-bg: #fff; }
.sf-lines > .wp-block-column:last-child { background: var(--sf-plate); color: #ecebef; --d-ink: #e2e1e6; --d-dim: var(--sf-arc); --d-faint: rgba(255,255,255,.16); --d-fill: rgba(255,255,255,.04); --d-bg: var(--sf-plate); }
.sf-lines > .wp-block-column:last-child :where(h2, h3) { color: #fff; }
.sf-lines > .wp-block-column:last-child a { color: var(--sf-arc); }
.sf-lines > .wp-block-column:last-child .is-style-checks li::before { background: var(--sf-arc); }
.sf-lines h3 { font-size: var(--wp--preset--font-size--xx-large); margin: .25rem 0 0; }
.sf-lines .sivad-figure { margin-bottom: .5rem; }
.sf-more { font-weight: 650; }
/* In the two-line cards the link sits at the bottom of the card. */
.sf-lines > .wp-block-column > .sf-more { margin-top: auto !important; }
.sf-more a { text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }

/* Spec list style: short cut marks instead of bullets. */
.wp-block-list.is-style-checks { list-style: none; padding-left: 0; display: grid; gap: .45rem; }
.wp-block-list.is-style-checks li { position: relative; padding-left: 1.6rem; }
.wp-block-list.is-style-checks li::before { content: ""; position: absolute; left: 0; top: .78em; width: 1rem; height: 2px; background: var(--sf-brand); }
.is-style-plate .wp-block-list.is-style-checks li::before, .is-style-deep .wp-block-list.is-style-checks li::before { background: var(--sf-arc); }

/* --------------------------------------------------------------------------
   Process: a real sequence, so it is numbered.
   -------------------------------------------------------------------------- */
.sf-steps { counter-reset: sf-step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; margin-top: 2.5rem !important; }
.sf-steps::before { content: ""; position: absolute; left: 2.05rem; right: calc(25% - 2.05rem); top: 2.05rem; height: 2px; background: repeating-linear-gradient(90deg, var(--d-dim, var(--sf-brand)) 0 18px, transparent 18px 24px); opacity: .55; }
.sf-steps > * { position: relative; padding: 0 1.5rem 0 0; margin: 0 !important; }
.sf-steps > * > :first-child { margin-top: 0; }
.sf-steps h3 { font-family: var(--wp--preset--font-family--body); font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin: 1.25rem 0 .5rem; }
.sf-steps h3 .sf-step-no, .sf-step-no { display: inline-grid; place-items: center; font-family: var(--sf-display); font-size: 1.5rem; font-weight: 600; width: 4.1rem; height: 4.1rem; border-radius: 50%; background: var(--sf-paper); border: 2px solid var(--d-dim, var(--sf-brand)); color: var(--d-dim, var(--sf-brand)); margin-bottom: 1rem; position: relative; z-index: 1; }
.is-style-plate .sf-steps .sf-step-no { background: var(--sf-plate); }
.sf-steps p { margin: 0; }
@media (max-width: 900px) {
	.sf-steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
	.sf-steps::before { display: none; }
}
@media (max-width: 560px) {
	.sf-steps { grid-template-columns: 1fr; }
	.sf-steps > * { display: grid; grid-template-columns: 4.1rem 1fr; column-gap: 1rem; padding: 0; }
	.sf-steps > * > .sf-step-no { grid-row: span 2; margin: 0; }
	.sf-steps h3 { margin-top: .4rem; }
}

/* --------------------------------------------------------------------------
   Credibility statement
   -------------------------------------------------------------------------- */
.sf-statement { font-family: var(--sf-display); font-size: var(--wp--preset--font-size--xx-large); line-height: 1.05; font-weight: 500; max-width: 22ch; margin: 0; }
.sf-statement strong { font-weight: 700; color: var(--sf-brand); }
.is-style-plate .sf-statement strong, .is-style-deep .sf-statement strong { color: var(--sf-arc); }
.sf-record { border-left: 3px solid var(--sf-brand); padding-left: 1.25rem; }

/* --------------------------------------------------------------------------
   Offer cards (what we build)
   -------------------------------------------------------------------------- */
.sf-build { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3.5rem); }
.sf-build > * { margin: 0 !important; display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 1.25rem; align-items: start; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--sf-line); }
.sf-build h3 { font-size: var(--wp--preset--font-size--x-large); margin: 0 0 .5rem; }
.sf-build p { margin: 0 0 .6rem; }
.sf-build .sivad-figure { grid-row: span 3; }
@media (min-width: 901px) {
	.sf-build > :last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: minmax(120px, 16%) minmax(0, 40rem); }
}
@media (max-width: 900px) { .sf-build { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .sf-build > * { grid-template-columns: 1fr; } .sf-build .sivad-figure { max-width: 260px; } }

/* Pricing factors */
.sf-factors { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--sf-ink); }
.sf-factors li { padding: .9rem 1rem 0 0; }
.sf-factors strong { display: block; font-family: var(--sf-display); font-size: 1.6rem; font-weight: 600; line-height: 1; margin-bottom: .4rem; }
.is-style-plate .sf-factors { border-top-color: var(--sf-arc); }
@media (max-width: 900px) { .sf-factors { grid-template-columns: 1fr 1fr; gap: .75rem 1.25rem; } }
@media (max-width: 480px) { .sf-factors { grid-template-columns: 1fr; } }

/* FAQ */
.wp-block-details.is-style-faq { border-top: 1px solid var(--sf-line); padding: 1.1rem 0; margin: 0 !important; }
.wp-block-details.is-style-faq:last-of-type { border-bottom: 1px solid var(--sf-line); }
.wp-block-details.is-style-faq summary { font-weight: 650; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details.is-style-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-faq summary::after { content: ""; flex: 0 0 auto; width: .75rem; height: .75rem; margin-top: .4rem; border-right: 2px solid var(--sf-brand); border-bottom: 2px solid var(--sf-brand); transform: rotate(45deg); transition: transform .2s ease; }
.wp-block-details.is-style-faq[open] summary::after { transform: rotate(-135deg); margin-top: .7rem; }
.wp-block-details.is-style-faq > :not(summary) { margin-top: .75rem; max-width: 46rem; }

/* Closing CTA band */
.sf-cta h2 { font-size: var(--wp--preset--font-size--xx-large); margin: 0; }
.sf-cta .wp-block-buttons { margin-top: 1.5rem; }

/* Cross-link line above the footer */
.sf-crosslink { font-size: var(--wp--preset--font-size--small); }

/* Page header band (inner pages) */
.sf-pagehead { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--50); }
.sf-pagehead h1 { margin: 0 0 1rem; }
.sf-pagehead .sf-lede { margin: 0; }
/* Category pages lead with their own description, styled like the Shop intro. */
.sf-pagehead .wp-block-term-description { font-size: var(--wp--preset--font-size--large); line-height: 1.5; max-width: 40rem; margin: 0 0 .75rem; }
.sf-pagehead .wp-block-term-description p { margin: 0; }

/* Contact cards */
.sf-cards { display: flex; flex-wrap: wrap; gap: 1rem; }
.sf-cards > * { flex: 1 1 14rem; max-width: 24rem; }
.sf-cards > * { background: #fff; border: 1px solid var(--sf-line); border-top: 3px solid var(--sf-brand); padding: 1.25rem 1.4rem; margin: 0 !important; }
.sf-cards h3 { font-family: var(--wp--preset--font-family--body); font-size: 1.05rem; font-weight: 700; margin: 0 0 .4rem; }
.sf-cards .sivad-info { font-size: 1.15rem; font-weight: 600; margin: 0 0 .3rem; }
.sivad-info address { font-style: normal; }
.sivad-hours { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }

/* Trust strip (quote page) */
.sf-trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.5rem; font-size: var(--wp--preset--font-size--small); }
.sf-trust li { padding-top: .75rem; border-top: 2px solid var(--sf-brand); }
@media (max-width: 800px) { .sf-trust { grid-template-columns: 1fr 1fr; } }

/* Quote form card */
.sf-form-card { background: #fff; border: 1px solid var(--sf-line); padding: clamp(1.25rem, 4vw, 3rem); }
.sivad-quote { --sq-accent: var(--sf-brand); --sq-line: #b9bcc2; }
.sivad-quote__group legend { font-family: var(--sf-display); font-weight: 600; font-size: 1.75rem; }
.sivad-quote__group { padding-top: 1.5rem; border-top: 1px solid var(--sf-line); }
.sivad-quote__group:first-of-type { border-top: 0; padding-top: 0; }
.sivad-quote__button { font-size: 1.1rem; padding: 1rem 1.75rem; }

/* What happens next — numbered sequence */
.sf-next { counter-reset: sf-next; list-style: none; padding: 0; display: grid; gap: 1rem; }
/* Number hangs in the margin; the bold lead-in and its sentence flow as one text block (a grid here split them apart). */
.sf-next li { counter-increment: sf-next; position: relative; padding-left: 2.75rem; min-height: 2rem; }
.sf-next li::before { content: counter(sf-next); position: absolute; left: 0; top: 0; font-family: var(--sf-display); font-size: 1.6rem; font-weight: 600; color: var(--sf-brand); line-height: 1.1; }
.sf-next li strong { display: block; margin-bottom: .15rem; }

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */
.sivad-portfolio__filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.75rem; }
.sivad-portfolio__btn { display: inline-block; padding: .55rem 1rem; border: 1.5px solid var(--sf-line); border-radius: var(--sf-radius); text-decoration: none; color: var(--sf-ink); font-weight: 600; font-size: .95rem; }
.sivad-portfolio__btn:hover { border-color: var(--sf-ink); }
.sivad-portfolio__btn[aria-pressed="true"] { background: var(--sf-ink); border-color: var(--sf-ink); color: #fff; }
.sivad-portfolio__hint { margin-left: auto; color: var(--sf-steel); font-size: .9rem; }
.sivad-portfolio__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 1000px) { .sivad-portfolio__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sivad-portfolio__grid { grid-template-columns: 1fr; } .sivad-portfolio__hint { display: none; } }
.sivad-portfolio__tile[hidden] { display: none; }
.sivad-portfolio__link { display: block; color: inherit; text-decoration: none; background: #fff; border: 1px solid var(--sf-line); height: 100%; --d-bg: #fff; }
.sivad-portfolio__link:hover { border-color: var(--sf-ink); }
.sivad-portfolio__link:hover .sivad-portfolio__caption { text-decoration: underline; }
.sivad-portfolio__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; padding: 1rem; background: color-mix(in srgb, var(--sf-sheet) 50%, #fff); }
.sivad-portfolio__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sivad-portfolio__media > svg { position: absolute; inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); }
.sivad-portfolio__concept { position: absolute; top: .75rem; left: .75rem; background: var(--sf-ink); color: #fff; font-size: .78rem; font-weight: 600; padding: .25rem .55rem; border-radius: var(--sf-radius); letter-spacing: .01em; }
.sivad-portfolio__meta { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .3rem; }
.sivad-portfolio__tag { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sf-brand); }
.sivad-portfolio__caption { font-weight: 600; line-height: 1.35; }

/* --------------------------------------------------------------------------
   Footer — a drawing title block on a white sheet, so the logo keeps its own colors
   -------------------------------------------------------------------------- */
.site-footer { background: #fff; color: var(--sf-steel); font-size: .95rem; border-top: 1px solid var(--sf-line); }
.site-footer a:not(.wp-element-button) { color: var(--sf-ink); }
.site-footer a:not(.wp-element-button):hover { color: var(--sf-brand); }
.site-footer .sivad-logo svg { width: min(100%, 360px); height: auto; display: block; }
.site-footer .sivad-logo { margin: 0 0 1.25rem; line-height: 0; }
.site-footer h2 { font-family: var(--wp--preset--font-family--body); font-size: .95rem; font-weight: 700; color: var(--sf-brand); margin: 0 0 .9rem; letter-spacing: .01em; }
.site-footer .wp-block-navigation { gap: .45rem; }
.site-footer .wp-block-navigation-item__content { color: var(--sf-ink); text-decoration: none; }
.site-footer .wp-block-navigation-item__content:hover { color: var(--sf-brand); text-decoration: underline; }
.site-footer .sivad-info { margin: 0 0 .35rem; }
.sf-titleblock { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; border: 1px solid var(--sf-line); margin-top: var(--wp--preset--spacing--50) !important; }
.sf-titleblock > * { margin: 0 !important; padding: .85rem 1rem; border-right: 1px solid var(--sf-line); font-size: .85rem; color: var(--sf-steel); }
.sf-titleblock > *:last-child { border-right: 0; }
.sf-titleblock > .sivad-policy-links { list-style: none; padding: .85rem 1rem; display: flex; flex-wrap: wrap; align-content: flex-start; gap: .35rem 1rem; }
@media (max-width: 900px) { .sf-titleblock { grid-template-columns: 1fr 1fr; } .sf-titleblock > *:nth-child(2) { border-right: 0; } .sf-titleblock > *:nth-child(-n+2) { border-bottom: 1px solid var(--sf-line); } }
@media (max-width: 520px) { .sf-titleblock { grid-template-columns: 1fr; } .sf-titleblock > * { border-right: 0; border-bottom: 1px solid var(--sf-line); } .sf-titleblock > *:last-child { border-bottom: 0; } }

/* --------------------------------------------------------------------------
   WooCommerce
   -------------------------------------------------------------------------- */
.woocommerce-breadcrumb, .wc-block-breadcrumbs { font-size: var(--wp--preset--font-size--small); color: var(--sf-steel); }
.wc-block-product-template .wc-block-product, .wp-block-woocommerce-product-template > li { background: #fff; border: 1px solid var(--sf-line); padding: 1rem 1rem 1.25rem; }
.wc-block-components-product-price, .wp-block-woocommerce-product-price { font-variant-numeric: tabular-nums; font-weight: 650; }
.wp-block-woocommerce-product-collection .wp-block-post-title { font-family: var(--wp--preset--font-family--body); font-weight: 650; }
.wp-block-woocommerce-product-collection .wp-block-post-title a { color: var(--sf-ink); text-decoration: none; }
.sivad-inquire { display: grid; gap: .5rem; justify-items: start; margin: 1.25rem 0; }
.sivad-inquire__note { margin: 0; color: var(--sf-steel); font-size: var(--wp--preset--font-size--small); }
.sf-shop-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.sf-shop-cats > * { margin: 0 !important; background: #fff; border: 1px solid var(--sf-line); padding: 1.5rem; display: grid; grid-template-columns: 38% 1fr; gap: 1.25rem; align-items: start; align-content: start; --d-bg: #fff; }
@media (max-width: 1100px) { .sf-shop-cats > * { grid-template-columns: 1fr; } .sf-shop-cats .sivad-figure { max-width: 320px; margin-inline: auto; } }
.sf-shop-cats h3 { font-size: var(--wp--preset--font-size--x-large); margin: 0 0 .4rem; }
/* Markdown badge on product pages: brand colors in place of WooCommerce's default circle. */
.woocommerce span.onsale, span.onsale { background: var(--sf-brand); color: #fff; border-radius: 2px; min-width: 0; min-height: 0; line-height: 1; padding: .45rem .7rem; font-weight: 600; font-size: .85rem; letter-spacing: .02em; top: .75rem; left: .75rem; }
/* Three cards once Clearance has items: three across on wide screens, each card stacked. */
@media (min-width: 1101px) { .sf-shop-cats:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sf-shop-cats:has(> :nth-child(3)) > * { grid-template-columns: 1fr; } .sf-shop-cats:has(> :nth-child(3)) .sivad-figure { max-width: 260px; } }
@media (min-width: 761px) and (max-width: 1100px) { .sf-shop-cats > .sf-clearance-card:nth-child(3) { grid-column: 1 / -1; grid-template-columns: 38% 1fr; } .sf-shop-cats > .sf-clearance-card:nth-child(3) .sivad-figure { max-width: none; } }
@media (max-width: 760px) { .sf-shop-cats { grid-template-columns: 1fr; } }
.sf-fulfill { font-weight: 600; color: var(--sf-steel); }
.wc-block-components-notice-banner { border-radius: var(--sf-radius); }
.wp-block-woocommerce-product-details .wc-tabs li a { text-decoration: none; }

/* Policy pages: keep reading measure */
.sf-policy { max-width: 40rem; }
.sf-policy h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.5rem; }

/* Utility */
.sf-nowrap { white-space: nowrap; }
.sf-center { text-align: center; }
.screen-reader-text:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Commitments reuse the build grid without a figure column. */
.sf-build.sf-commitments > * { grid-template-columns: 1fr; gap: .25rem; }
.sf-build.sf-commitments h3 { font-size: var(--wp--preset--font-size--large); font-family: var(--wp--preset--font-family--body); font-weight: 700; }
.sf-review-note { background: #fff8e1; border-left: 4px solid #b58100; padding: .75rem 1rem; }
.sf-inline-links.sivad-policy-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }

/* Full-bleed sections butt together; no stray gaps between bands. */
.wp-block-post-content > .alignfull, main > .alignfull, main.wp-block-group > .wp-block-post-content { margin-block-start: 0 !important; margin-block-end: 0 !important; }
footer.wp-block-template-part, .wp-site-blocks > footer { margin-block-start: 0 !important; }
.wp-site-blocks > main { margin-block-start: 0; }
/* Reading measure inside the wide column. */
.sf-section > .alignwide > :where(p, .wp-block-list, .wp-block-details) { max-width: 40rem; }
.sf-section > .alignwide > .sf-lede { max-width: 40rem; }
.sf-section > .alignwide > .sf-factors { max-width: none; }
.sf-more { margin-top: .9rem; }
.sf-cta .wp-block-buttons + .sf-more, .sf-cta .wp-block-buttons + .wp-block-group { margin-top: 1.6rem; }
.sf-more + .sf-more { margin-top: .6rem; }
.sf-titleblock .sivad-policy-links { margin: 0; }
.sf-titleblock p { margin: 0; }
.sf-pagehead > .alignwide > :first-child { margin-top: 0; }

/* Phones: the call + quote actions live in a bar fixed to the bottom of the screen. */
body .site-mobilebar { display: none; }
@media (max-width: 600px) {
	.site-header .site-header__cta, .site-header .site-header__call { display: none; }
	body .site-mobilebar {
		display: flex; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; gap: .6rem; margin: 0 !important;
		padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--sf-plate); box-shadow: 0 -1px 0 rgba(255,255,255,.08);
	}
	.site-mobilebar > * { margin: 0 !important; }
	.site-mobilebar__cta { flex: 1 1 auto; }
	.site-mobilebar__cta .wp-block-button { width: 100%; }
	.site-mobilebar__cta .wp-block-button__link { width: 100%; text-align: center; background: var(--sf-arc); color: var(--sf-deep); padding: .8rem 1rem; }
	.site-mobilebar__call .sivad-call { color: #fff; border: 1.5px solid rgba(255,255,255,.5); border-radius: var(--sf-radius); height: 100%; padding: 0 .9rem; min-height: 2.9rem; }
	body { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom)); }
	body.page-template-page-focused { padding-bottom: 0; } /* focused pages have no bottom bar */
	.site-header .sivad-logo svg { height: 40px; }
}
@media (max-width: 360px) { .site-header .sivad-logo svg { height: 34px; } .site-mobilebar__call .sivad-call__text { font-size: .85rem; } }

/* WooCommerce buttons in brand colors (WooCommerce's own purple fails contrast on some states). */
.single_add_to_cart_button, .woocommerce .button.alt, .wc-block-components-button:not(.is-link):not(.wc-block-components-drawer__close) {
	background: var(--sf-brand) !important; color: #fff !important; border-radius: var(--sf-radius); border: 0;
}
.single_add_to_cart_button:not(.disabled):hover, .woocommerce .button.alt:hover, .wc-block-components-button:not(.is-link):hover { background: var(--sf-deep) !important; }
.site-header__cart a { color: var(--sf-ink); text-decoration: none; font-weight: 600; }
.wc-block-components-quantity-selector input { color: var(--sf-ink); }
.single_add_to_cart_button.disabled, .single_add_to_cart_button:disabled, .single_add_to_cart_button[aria-disabled="true"] { opacity: 1 !important; background: #dcd8e6 !important; color: #3b3546 !important; cursor: not-allowed; }
@media (max-width: 560px) { .sf-shop-cats > * { grid-template-columns: 1fr; } .sf-shop-cats .sivad-figure { max-width: 240px; } }

/* 1.0.1 layout fixes (found in the release visual review) */
.sf-pagehead .wc-block-breadcrumbs, .sf-pagehead .woocommerce-breadcrumb { margin-bottom: 1rem; }
/* Columns inside sections: room between them side by side, and when they stack on phones. */
.sf-section .wp-block-columns:not(.sf-lines) { column-gap: clamp(2rem, 4vw, 4rem); }
@media (max-width: 781px) { .sf-section .wp-block-columns:not(.sf-lines) { row-gap: 2.75rem; } }
/* Short pages (404) keep the footer at the bottom of the screen. */
body.error404 .wp-site-blocks { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.error404 .wp-site-blocks > main { flex: 1 0 auto; }
/* Policy pages use the site's dash bullets. */
.sf-policy .wp-block-list:not(ol) { list-style: none; padding-left: 0; }
.sf-policy .wp-block-list:not(ol) > li { position: relative; padding-left: 1.6rem; margin-bottom: .35rem; }
.sf-policy .wp-block-list:not(ol) > li::before { content: ""; position: absolute; left: 0; top: .78em; width: 1rem; height: 2px; background: var(--sf-brand); }
/* Quote form: section headings sit above their rule, fields share one height and look. */
body .sivad-quote__group > legend { float: left; width: 100%; padding: 0; margin-bottom: 1.25rem; }
body .sivad-quote__group > legend + * { clear: both; }
body .sivad-quote input[type="text"], body .sivad-quote input[type="email"], body .sivad-quote input[type="tel"], body .sivad-quote select { height: 3.2rem; min-height: 3.2rem; padding-top: 0; padding-bottom: 0; line-height: 1.3; }
body .sivad-quote select { -webkit-appearance: none; appearance: none; border-radius: 3px; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d1c21' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: .8rem auto; }
.sivad-quote input[type="file"]::file-selector-button { font: inherit; font-weight: 600; color: #fff; background: var(--sf-brand); border: 0; border-radius: 3px; padding: .55rem 1rem; margin-right: .9rem; cursor: pointer; }
.sivad-quote input[type="file"]::file-selector-button:hover { background: var(--sf-deep); }
/* Pre-launch page (WooCommerce "Coming soon"): the theme's own, without WooCommerce's placeholder social links.
   White sheet, so the logo shows in its own colors. */
.sf-coming-soon { background: #fff; color: var(--sf-ink); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--70); }
.sf-coming-soon .sivad-logo { margin: 0 0 2.5rem; line-height: 0; }
.sf-coming-soon .sivad-logo svg { width: min(100%, 560px); height: auto; display: block; }
.sf-coming-soon h1 { font-size: var(--wp--preset--font-size--xx-large); margin: 0; }
.sf-coming-soon .sf-lede { margin-top: 1.5rem; max-width: 40rem; }
.sf-coming-soon__login { margin-top: 2rem; font-size: var(--wp--preset--font-size--small); }
.sf-coming-soon__login a { color: var(--sf-brand); }
body:not(:has(.site-mobilebar)) { padding-bottom: 0; }

/* "Shop local, Colorado proud." line (footer brand column, Home's Parker section). */
.sf-local { font-family: var(--sf-display); font-weight: 600; font-size: 1.35rem; letter-spacing: .01em; color: var(--sf-arc); margin-top: .75rem; }
:where(.is-style-sheet, .is-style-spec-sheet, body) > .sf-local, .sf-section:not(.is-style-plate):not(.is-style-deep) .sf-local { color: var(--sf-brand); }
.site-footer .sf-local { font-size: 1.15rem; color: var(--sf-brand); margin: .9rem 0 0; }

/* 1.0.2: longer, connected copy. Keep lines readable and avoid one-word last lines. */
p, li, .wp-block-heading { text-wrap: pretty; }
.sf-section--tight > .alignwide > p, .sf-section--tight > .alignwide > .wp-block-list { max-width: 40rem; }
.sivad-quote__help { max-width: 62ch; }
/* Focused pages (Get a Quote) have a shorter header bar. */
.site-header--focused .sivad-logo svg { height: 44px; }
@media (max-width: 600px) { .site-header--focused .sivad-logo svg { height: 38px; } }
/* Home hero: stack the drawing under the text until there's room for both side by side. */
@media (max-width: 1024px) {
	.sf-hero--home .sf-hero__grid { flex-wrap: wrap !important; }
	.sf-hero--home .sf-hero__grid > .wp-block-column { flex-basis: 100% !important; }
	.sf-hero--home h1 { max-width: 18ch; }
	.sf-hero--home .sivad-drawing--kerf { max-width: 420px; margin-top: 1rem; }
}
/* 1.0.2: the trust strip spans the full row (the 40rem measure is for prose), and headings balance their lines so a single word doesn't hang. */
:is(.sf-section, .sf-section--tight) > .alignwide > .wp-block-list.sf-trust { max-width: none; }
:is(h1, h2, h3), :is(h1, h2, h3).wp-block-heading { text-wrap: balance; }
/* 1.0.4: the Parker locator map (real county lines). Douglas County is tinted; colors follow the band it sits on. */
.sivad-drawing .d-county { fill: color-mix(in srgb, var(--d-dim) 14%, transparent); stroke: var(--d-dim); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sivad-drawing .d-town { fill: currentColor; stroke: var(--d-bg); stroke-width: 1.5; }
.sivad-drawing .d-ring { fill: none; stroke: var(--sf-brand); stroke-width: 1.5; opacity: .55; vector-effect: non-scaling-stroke; }
.is-style-plate .sivad-drawing .d-ring, .is-style-deep .sivad-drawing .d-ring { stroke: var(--sf-arc); }
/* Map labels are sized in the drawing's own units (640 wide), so they stay readable on a phone. */
.sivad-drawing .d-txt--town { fill: currentColor; font-weight: 500; font-size: 19px; stroke-width: 6px; }
.sivad-drawing .d-txt--county { fill: currentColor; opacity: .6; font-weight: 500; font-style: italic; font-size: 17px; }
.sivad-drawing .d-txt--home { fill: var(--d-dim); opacity: 1; font-weight: 700; font-style: normal; font-size: 19px; stroke-width: 6px; }
.sivad-drawing .d-txt--parker { fill: var(--d-dim); font-weight: 700; font-size: 28px; stroke-width: 7px; }
.sivad-drawing .d-inset { fill: var(--d-bg); stroke: var(--d-faint); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sivad-drawing .d-foot { fill: var(--d-dim); fill-opacity: .35; stroke: var(--d-dim); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* 1.0.7: photo and drawing together. The slot's line drawing rides in the photo's corner as a small spec card. */
.sivad-figure.has-spec, .sivad-portfolio__media:has(> .sivad-figure__spec) { position: relative; overflow: hidden; container-type: inline-size; }
.sivad-figure__spec {
	position: absolute; right: 10px; bottom: 10px; z-index: 2; display: block; width: 30%; padding: 6px; pointer-events: none;
	background: rgba(29, 28, 33, .82); border: 1px solid rgba(255, 255, 255, .14); border-radius: 2px;
	box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	color: #e2e1e6; --d-ink: #e2e1e6; --d-dim: var(--sf-arc); --d-faint: rgba(255, 255, 255, .16); --d-fill: rgba(255, 255, 255, .05); --d-bg: #1d1c21;
}
.sivad-figure__spec .sivad-drawing { width: 100%; height: auto; display: block; }
.sivad-figure__spec .d-txt { opacity: 0; }
@container (max-width: 360px) { .sivad-figure__spec { width: 38%; padding: 4px; right: 6px; bottom: 6px; } }
.sivad-portfolio__media > .sivad-figure__spec { width: 30%; }

/* 1.0.7: a dark band can carry a photo behind its text (Group background image). */
:is(.sf-hero, .sf-pagehead)[style*="background-image"] { position: relative; isolation: isolate; background-size: cover; background-position: center; }
:is(.sf-hero, .sf-pagehead)[style*="background-image"]::before {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(90deg, rgba(29, 28, 33, .94) 0%, rgba(29, 28, 33, .84) 42%, rgba(29, 28, 33, .5) 100%);
}
@media (max-width: 781px) {
	:is(.sf-hero, .sf-pagehead)[style*="background-image"]::before { background: linear-gradient(180deg, rgba(29, 28, 33, .9) 0%, rgba(29, 28, 33, .78) 60%, rgba(29, 28, 33, .9) 100%); }
}
:is(.sf-hero, .sf-pagehead)[style*="background-image"] > :not(canvas) { position: relative; z-index: 1; }
.sivad-portfolio__concept { z-index: 3; }
/* 1.0.7: footer "Reach us" lists the phone, email and town one under another (they render as inline spans). */
.site-footer .wp-block-column > .sivad-info { display: block; }
/* 1.0.7: a blocks plugin on the host sets color: var(--dsgo-text-color, inherit) inside any Group that has a background
   image, which turned the dark bands' text dark. Feed it the band's own colors. */
.has-background:is(.is-style-plate, .is-style-deep) { --dsgo-text-color: #ecebef; }
.has-background:is(.is-style-plate, .is-style-deep) :is(h1, h2, h3, h4) { --dsgo-text-color: #fff; }
.has-background:is(.is-style-plate, .is-style-deep) .sf-lede { --dsgo-text-color: #d8d6de; }
.has-background:is(.is-style-plate, .is-style-deep) :is(.sf-micro, .has-steel-color) { --dsgo-text-color: #b5b4bc; }
.has-background:is(.is-style-plate, .is-style-deep) a:not(.wp-element-button) { --dsgo-text-color: var(--sf-arc); }
