/* Steve Van Diest — finishing touches theme.json can't express. */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * + * { margin-block-start: 0; }
::selection { background: var(--wp--preset--color--amber); color: var(--wp--preset--color--espresso); }
a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--wp--preset--color--amber); outline-offset: 3px; }

/* Eyebrow labels */
.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 700 !important;
	letter-spacing: 0.2em !important;
	text-transform: uppercase;
	line-height: 1.4 !important;
}

/* Header */
.svd-header { position: sticky; top: 0; z-index: 50; background: #fff !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(35,19,14,.08); }
.admin-bar .svd-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .svd-header { top: 46px; } }

/* Outline button */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1.5px solid currentColor; background: transparent; color: inherit; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--espresso); border-color: var(--wp--preset--color--cream); }

/* Cards */
.wp-block-group.is-style-card { border-radius: 16px; transition: transform .3s ease, box-shadow .3s ease; }
.wp-block-group.is-style-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(35,19,14,.45); }

/* Core value photo tiles */
.svd-value { border-radius: 16px; overflow: hidden; }
.svd-value .wp-block-cover__image-background { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.svd-value:hover .wp-block-cover__image-background { transform: scale(1.05); }

/* Testimonial portraits */
.svd-portrait img { border-radius: 999px; }

/* Rounded photos */
.svd-photo img { border-radius: 16px; }

/* Social icons: labels only for screen readers */
.wp-block-social-links:not(.has-visible-labels) .wp-block-social-link-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Details (policy accordion) */
.wp-block-details summary { font-weight: 700; font-size: var(--wp--preset--font-size--large); cursor: pointer; }
.wp-block-details summary::marker { color: var(--wp--preset--color--amber); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Short amber rule under hero and mission titles */
.wp-block-separator.svd-rule { width: 120px; height: 3px; border: 0; margin-left: 0; margin-right: auto; }
.svd-header .wp-block-button__link { white-space: nowrap; }

/* Hero copy sits in the left half, clear of the photo's subject */
.svd-hero-text { max-width: 620px; }
/* Hero frame is 16:9 on wider screens so the whole photo shows */
@media (min-width: 782px) { .wp-block-cover:has(.svd-hero-text) { min-height: 0 !important; aspect-ratio: 16 / 9 !important; } }
@media (max-width: 781px) {
	.svd-hero-text { max-width: none; }
	/* On phones the photo fills the top and the copy sits below it on cream */
	.wp-block-cover.is-position-center-left:has(.svd-hero-text) { align-items: flex-end; background: var(--wp--preset--color--cream); }
	.wp-block-cover:has(.svd-hero-text) .wp-block-cover__image-background { height: 58%; }
	.wp-block-cover:has(.svd-hero-text) .has-hero-light-gradient-background { background: linear-gradient(180deg, rgba(249,246,241,0) 30%, rgba(249,246,241,1) 50%) !important; }
}

/* "Businesses" dropdown */
.svd-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--espresso);
	border: 1px solid var(--wp--preset--color--taupe);
	border-radius: 12px;
	padding: 0.5rem 0;
	min-width: 200px;
	box-shadow: 0 18px 40px -24px rgba(35,19,14,.45);
}
.svd-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0.55rem 1.1rem; }
.svd-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--sage); }
