/*
Theme Name: Southeastern Monitoring
Theme URI: https://semonitoring.com
Author: Gray Owl Group
Author URI: https://grayowlgroup.com
Description: Child theme of Twenty Twenty-Five for Southeastern Monitoring. Brand tokens in theme.json, one stylesheet, fonts and icons served from the theme. No page builder.
Template: twentytwentyfive
Version: 1.2.3
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sem-child
Update URI: false
*/

/* ---------- Header (inner pages): white bar, logo left, menu right ---------- */
.sem-header {
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--silver);
}
.sem-header__inner {
	min-height: 100px;
	gap: var(--wp--preset--spacing--40);
}
.sem-logo { display: inline-flex; line-height: 0; }
.sem-logo--header img { width: 180px; height: 60px; }
.sem-logo--footer img { width: 300px; height: 100px; max-width: 100%; }
.sem-header .wp-block-navigation {
	font-family: var(--wp--preset--font-family--menu);
	font-size: 17px;
	gap: var(--wp--preset--spacing--40);
}
.sem-header .wp-block-navigation-item__content { color: var(--wp--preset--color--muted); padding: 10px 0; }
.sem-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--magenta); }
.sem-header .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
	box-shadow: inset 0 -2px 0 var(--wp--preset--color--magenta);
}
.sem-header .sem-pay .wp-block-button__link {
	color: var(--wp--preset--color--magenta);
	border: 2px solid currentColor;
	background: transparent;
	padding: 10px 18px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}
.sem-header .sem-pay .wp-block-button__link:hover { background: var(--wp--preset--color--magenta); color: var(--wp--preset--color--base); }
.sem-header .wp-block-navigation__responsive-container-open,
.sem-header .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; justify-content: center; }
@media (max-width: 767px) {
	.sem-header { border-bottom: 4px solid #dddddd; }
	.sem-header__inner { min-height: 70px; }
	.sem-logo--header img { width: 132px; height: 44px; }
	.sem-header .sem-pay { display: none; } /* payment link lives in the phone menu */
}
@media (min-width: 768px) {
	.sem-header .sem-pay-mobile { display: none; }
}

/* ---------- Section rhythm ---------- */
.sem-section { padding-top: var(--wp--preset--spacing--80); padding-bottom: var(--wp--preset--spacing--80); }
.sem-lead { font-size: var(--wp--preset--font-size--lead); }

/* ---------- Service box (icon tile + title + text + buttons) ---------- */
.sem-icon-tile {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 12px;
	background: var(--wp--preset--color--blush); color: var(--wp--preset--color--magenta);
}
.sem-icon-tile svg { width: 24px; height: 24px; fill: currentColor; }
@media (max-width: 767px) {
	.sem-service .wp-block-button, .sem-service .wp-block-button__link { width: 100%; }
	.sem-service .wp-block-button__link { min-height: 48px; }
}

/* ---------- Contact details (Find us / Email Us / Call us) ---------- */
.sem-contact-details h6 { margin-bottom: 4px; color: var(--wp--preset--color--muted); }
.sem-contact-details p { margin-top: 0; }
.sem-contact-details a { font-weight: 700; }

/* ---------- Map (Leaflet + OpenStreetMap) ---------- */
.sem-map-wrap { margin: var(--wp--preset--spacing--40) 0 0; }
.sem-map { height: 360px; border-radius: 12px; border: 1px solid var(--wp--preset--color--silver); z-index: 0; }
.sem-map-caption { font-size: var(--wp--preset--font-size--small); margin-top: 8px; }
.sem-map-caption a { font-weight: 700; }
.sem-map .leaflet-control-attribution { font-size: 12px; background: #ffffff; } /* opaque: the map must not show through the credit */
.sem-map .leaflet-control-attribution a { color: #595959; }
@media (max-width: 767px) { .sem-map { height: 280px; } }

/* ---------- Contact Form 7 extras (base styling is in theme.json) ---------- */
.wpcf7-form fieldset { border: 0; padding: 0; margin: 0 0 var(--wp--preset--spacing--40); }
.wpcf7-form legend { font-weight: 700; font-size: var(--wp--preset--font-size--small); margin-bottom: 6px; padding: 0; }
.wpcf7-form p { margin: 0 0 var(--wp--preset--spacing--40); }
.wpcf7-form .sem-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--wp--preset--spacing--30); }
.wpcf7-form .sem-name-row label { font-weight: 400; }
.wpcf7-form .wpcf7-checkbox { display: grid; gap: 8px; }
.wpcf7-form .wpcf7-list-item { margin: 0; }
.wpcf7-form .wpcf7-list-item label { display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: var(--wp--preset--font-size--medium); min-height: 44px; margin: 0; }
.wpcf7-form .wpcf7-list-item input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--wp--preset--color--magenta); }
.wpcf7-form .sem-help { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); margin-top: 6px; }
@media (max-width: 767px) {
	.wpcf7-form .sem-name-row { grid-template-columns: 1fr; }
	.wpcf7-form .wpcf7-submit { width: 100%; }
}
/* Honeypot: never visible, never in the tab order (see functions.php). */
.sem-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Preview-only review notes (replaced before launch; the launch battery fails if any remain) ---------- */
.sem-review-note {
	border: 2px dashed var(--wp--preset--color--magenta);
	background: #fdf6fb;
	color: var(--wp--preset--color--contrast);
	padding: 12px 16px;
	border-radius: 3px;
	font-size: var(--wp--preset--font-size--small);
}
.sem-review-note::before { content: "FOR REVIEW — "; font-weight: 700; color: var(--wp--preset--color--magenta-deep); }

/* ---------- Careers ---------- */
.sem-job dl, .sem-job p { margin-top: 0; }
.sem-job .wp-block-list { margin-bottom: var(--wp--preset--spacing--40); }

/* ---------- Contact page: icon + label + detail rows (as the current site's icon boxes) ---------- */
.sem-detail { display: flex; gap: var(--wp--preset--spacing--30); align-items: flex-start; }
.sem-detail .sem-icon-tile { flex: 0 0 auto; }
.sem-detail h6 { margin: 4px 0 2px; }
.sem-detail p { margin: 0; }

/* =====================================================================================================
   v1.2 "warm" layout (CD build spec sem-homepage-v1.2-build-spec v1.0; copy = brief v1.1; Guy-approved)
   ===================================================================================================== */

/* ---------- Globals: pills, hover, headings ---------- */
.wp-element-button, .wp-block-button__link { border-radius: 999px; }
.wp-block-button__link:hover { background: var(--wp--preset--color--magenta-deep); color: #fff; }
.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--magenta); color: #fff; }
.sem-pills { gap: 10px; }
.sem-pills .wp-block-button__link { font-size: 14px; letter-spacing: 1.5px; padding: 13px 24px; display: inline-flex; align-items: center; gap: 8px; }
.sem-doc-download .wp-block-button__link::before, .sem-doc-form .wp-block-button__link::before {
	content: ""; width: 14px; height: 14px; flex: 0 0 14px; background: currentColor;
	-webkit-mask: var(--sem-doc-icon) center / contain no-repeat; mask: var(--sem-doc-icon) center / contain no-repeat;
}
.sem-doc-download { --sem-doc-icon: url(assets/icons/file-arrow-down.svg); }
.sem-doc-form { --sem-doc-icon: url(assets/icons/pen-to-square.svg); }
@media (max-width: 767px) {
	.sem-pills, .sem-pills .wp-block-button { width: 100%; }
	.sem-pills .wp-block-button__link { width: 100%; min-height: 48px; justify-content: center; }
	.sem-footer__links a, .sem-footer__bottom a, .sem-contact-details a, .sem-map-caption a,
	.sem-job p > a[href^="mailto:"], .sem-job p > a[href^="http"] { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- Homepage: header over the hero (desktop); white bar on phone ---------- */
.sem-home-main .wp-block-post-content > * { margin-block: 0; }
.sem-home-main { padding: 0; }
@media (min-width: 768px) {
	.home:has(.wp-block-post-content > .sem-hero:first-child) .wp-site-blocks > header.wp-block-template-part { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
	.home:has(.wp-block-post-content > .sem-hero:first-child) .sem-header { background: transparent; border-bottom: 0; }
	.home:has(.wp-block-post-content > .sem-hero:first-child) .sem-header > .sem-header__inner { min-height: 120px; }
	.home:has(.wp-block-post-content > .sem-hero:first-child) .sem-header .wp-block-navigation-item__content { color: #fff; }
	.home:has(.wp-block-post-content > .sem-hero:first-child) .sem-header .wp-block-navigation-item__content:hover { color: #fff; text-decoration: underline; }
	.home:has(.wp-block-post-content > .sem-hero:first-child) .sem-header .current-menu-item > .wp-block-navigation-item__content { color: #fff; box-shadow: inset 0 -2px 0 #fff; padding-bottom: 4px; }
	.home:has(.wp-block-post-content > .sem-hero:first-child) .sem-header .sem-pay .wp-block-button__link { color: #fff; border-color: #fff; padding: 11px 24px; }
	.home:has(.wp-block-post-content > .sem-hero:first-child) .sem-header .sem-pay .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--plum); }
}
.sem-header .sem-pay .wp-block-button__link { border-radius: 999px; }

/* ---------- Hero ---------- */
.wp-block-image.sem-hero { position: relative; margin: 0; height: 640px; overflow: hidden; border-radius: 0 0 40px 40px; background: var(--wp--preset--color--slate); }
.wp-block-image.sem-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.wp-block-image.sem-hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(56, 26, 46, .72) 0, rgba(56, 26, 46, .72) 120px, rgba(56, 26, 46, .12) 260px, rgba(56, 26, 46, .35) 100%);
}
@media (max-width: 767px) {
	.wp-block-image.sem-hero { height: 240px; border-radius: 0 0 28px 28px; }
	.wp-block-image.sem-hero::after { display: none; }
}

/* ---------- Welcome card over the hero + Contact Info card ---------- */
.sem-welcome-wrap { position: relative; z-index: 2; padding: 0 48px; }
.sem-hero + .sem-welcome-wrap { margin-top: -96px !important; }
.sem-welcome {
	background: #fff; border-radius: 28px; box-shadow: 0 20px 60px rgba(56, 26, 46, .12); padding: 64px;
	display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; max-width: 1184px; margin: 0 auto;
}
.sem-welcome__text { display: flex; flex-direction: column; gap: 20px; }
.sem-welcome__text > * { margin: 0; }
.sem-welcome__title { font-size: 42px; line-height: 1.2; text-wrap: balance; }
.sem-welcome .sem-lead { font-size: 21px; line-height: 1.55; color: var(--wp--preset--color--plum); }
.sem-welcome__text p:not(.sem-lead) { font-size: 18px; line-height: 1.7; color: var(--wp--preset--color--contrast); }
.sem-contact-card { background: var(--wp--preset--color--blush); border-radius: 24px; padding: 36px; align-self: start; }
.sem-contact-card > * { margin: 0; }
.sem-contact-card__title { font-size: 24px; color: var(--wp--preset--color--plum); margin-bottom: 8px !important; }
.sem-phone-row { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid rgba(56, 26, 46, .12); font-size: 15px; }
.sem-phone-row a { font-family: var(--wp--preset--font-family--heading); font-weight: 500; font-size: 22px; color: var(--wp--preset--color--magenta-deep); text-decoration: none; }
.sem-phone-row a:hover { text-decoration: underline; }
.sem-contact-card__address { padding: 14px 0 18px; }
@media (max-width: 767px) {
	.sem-welcome-wrap { padding: 0 12px; }
	.sem-hero + .sem-welcome-wrap { margin-top: -32px !important; }
	.sem-welcome { display: block; padding: 28px 22px; border-radius: 22px; }
	.sem-welcome__title { font-size: 28px; }
	.sem-welcome .sem-lead { font-size: 18px; }
	.sem-welcome__text p:not(.sem-lead) { font-size: 16px; }
	.sem-contact-card { margin: 16px -22px -28px; border-radius: 22px; padding: 24px 22px; }
	.sem-phone-row { min-height: 52px; justify-content: center; }
	.sem-phone-row a { font-size: 20px; min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---------- Two list cards ---------- */
.sem-lists { padding: 72px 48px 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1280px; margin: 0 auto; box-sizing: border-box; }
.sem-list-card { background: #fff; border-radius: 24px; border: 1px solid rgba(161, 76, 133, .12); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.sem-list-card > * { margin: 0; }
.sem-card-title { font-size: 26px; line-height: 1.25; }
.sem-dots { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 18px; line-height: 1.5; }
.sem-dots li { display: flex; gap: 14px; align-items: baseline; }
.sem-dots li::before { content: ""; flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--wp--preset--color--magenta); transform: translateY(-2px); }
.sem-dots--orchid li::before { background: var(--wp--preset--color--orchid); }
.sem-list-card p { font-size: 17px; line-height: 1.7; }
@media (max-width: 767px) {
	.sem-lists { grid-template-columns: 1fr; padding: 32px 12px; gap: 16px; }
	.sem-list-card { border-radius: 22px; padding: 26px 22px; }
	.sem-dots { font-size: 16px; }
	.sem-dots li::before { flex-basis: 9px; width: 9px; height: 9px; }
}

/* ---------- Two service cards ---------- */
.sem-services { padding: 0 48px 88px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1280px; margin: 0 auto; box-sizing: border-box; }
.sem-service-card { background: #fff; border-radius: 24px; box-shadow: 0 12px 40px rgba(56, 26, 46, .06); padding: 44px; display: flex; flex-direction: column; gap: 14px; }
.sem-service-card > * { margin: 0; }
.sem-service-card .sem-icon-tile { width: 56px; height: 56px; border-radius: 16px; }
.sem-service-card .sem-icon-tile svg { width: 26px; height: 26px; }
.sem-service-card p { font-size: 17px; line-height: 1.7; }
.sem-callout { background: var(--wp--preset--color--blush); border-radius: 16px; padding: 18px 20px; color: var(--wp--preset--color--plum); }
.sem-coloring { background: var(--wp--preset--color--blush-white); border-radius: 18px; padding: 14px; align-self: flex-start; }
.sem-coloring .wp-block-image { margin: 0; }
.sem-coloring img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; display: block; }
@media (max-width: 767px) {
	.sem-services { grid-template-columns: 1fr; padding: 0 12px 32px; gap: 16px; }
	.sem-service-card { border-radius: 22px; padding: 26px 22px; }
	.sem-service-card .sem-card-title { font-size: 22px; }
	.sem-service-card p { font-size: 16px; }
}

/* ---------- Wellness Tees & MERCH band ---------- */
.sem-merch { background: var(--wp--preset--color--blush); padding: 80px 48px; }
.sem-merch > * { max-width: 1184px; margin-left: auto !important; margin-right: auto !important; }
.sem-merch__top { margin-bottom: 32px; align-items: flex-end; }
.sem-band-title { font-size: 40px; color: var(--wp--preset--color--plum); margin: 0; }
.sem-merch__grid.wp-block-gallery { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 20px !important; margin: 0; }
.sem-merch__grid.wp-block-gallery .wp-block-image { width: auto !important; margin: 0 !important; aspect-ratio: 1; background: #fff; border-radius: 20px; overflow: hidden; }
.sem-merch__grid.wp-block-gallery .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
	.sem-merch { padding: 40px 16px; display: flex; flex-direction: column; gap: 20px; }
	.sem-merch .wp-block-group.sem-merch__top { display: contents !important; } /* beat the layout engine's own flex rule */
	.sem-band-title { font-size: 28px; order: 1; }
	.sem-merch__grid.wp-block-gallery { order: 2; grid-template-columns: repeat(2, 1fr); gap: 12px !important; }
	.sem-merch__grid.wp-block-gallery .wp-block-image { border-radius: 16px; }
	.sem-merch__top .sem-pills { order: 3; }
}

/* ---------- Tour Our Facility ---------- */
.sem-tour { margin: 88px max(48px, calc((100% - 1184px) / 2)) 0 !important; border-radius: 32px; padding: 64px 56px; background: linear-gradient(150deg, #a14c85 20%, #f774cc 70%); color: #fff; }
.sem-tour > * { max-width: 1184px; margin-left: auto !important; margin-right: auto !important; }
/* the link sits under the heading, on the solid-magenta end of the gradient: top-right it measured 3.91:1 (below AA) */
.sem-tour__top { flex-direction: column; align-items: flex-start !important; gap: 8px; margin-bottom: 32px; }
.sem-tour__title { font-size: 34px; color: #fff; margin: 0; }
.sem-tour__link { margin: 0; font-size: 17px; }
.sem-tour__link a { color: #fff; text-decoration: underline; word-break: break-all; }
.sem-tour__photos.wp-block-gallery { display: block !important; columns: 3; column-gap: 20px; }
.sem-tour__photos.wp-block-gallery .wp-block-image { width: 100% !important; margin: 0 0 20px !important; break-inside: avoid; display: block; }
.sem-tour__photos.wp-block-gallery .wp-block-image img { width: 100%; height: auto; border-radius: 16px; display: block; }
@media (max-width: 767px) {
	.sem-tour { margin: 32px 12px 0 !important; border-radius: 24px; padding: 32px 16px; }
	.sem-tour__title { font-size: 26px; }
	.sem-tour__photos.wp-block-gallery { columns: 2; column-gap: 10px; }
	.sem-tour__photos.wp-block-gallery .wp-block-image { margin-bottom: 10px !important; }
	.sem-tour__photos.wp-block-gallery .wp-block-image img { border-radius: 12px; }
	.sem-tour__link a { display: inline-flex; min-height: 44px; align-items: center; }
}

/* ---------- Prices + hours (editable core blocks, outside the content lock) ---------- */
.sem-prices { padding: 88px 48px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; max-width: 1280px; margin: 0 auto; box-sizing: border-box; }
.sem-price-card { background: #fff; border-radius: 24px; padding: 44px; display: flex; flex-direction: column; gap: 22px; }
.sem-price-card > .sem-price-item { margin: 0; }
.sem-price-row { align-items: baseline; gap: 0; }
.sem-price-row > p { margin: 0; }
.sem-price-title { flex: 1 1 auto; display: flex; align-items: baseline; font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--wp--preset--color--magenta); }
.sem-price-title::after { content: ""; flex: 1 1 24px; min-width: 24px; margin: 0 12px; border-bottom: 2px dotted rgba(161, 76, 133, .5); }
.sem-price-amount { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: 22px; color: var(--wp--preset--color--magenta); white-space: nowrap; }
.sem-price-pill { display: inline-block; margin: 8px 0 0; padding: 3px 12px; border-radius: 999px; background: var(--wp--preset--color--blush); color: var(--wp--preset--color--plum); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.sem-price-desc { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--wp--preset--color--contrast); }
.sem-hours-card { background: var(--wp--preset--color--plum); color: #fff; border-radius: 24px; padding: 40px; }
.sem-hours-card .wp-block-table { margin: 0; }
.wp-block-table.sem-hours table { border-collapse: collapse; width: 100%; border: 0; font-size: 17px; }
.wp-block-table.sem-hours tr { display: block; padding: 18px 0; border-bottom: 1px dashed rgba(255, 255, 255, .28); }
.wp-block-table.sem-hours tr:first-child { padding-top: 0; }
.wp-block-table.sem-hours tr:last-child { border-bottom: 0; padding-bottom: 0; }
.wp-block-table.sem-hours td { display: block; border: 0; padding: 0; color: #fff; }
.wp-block-table.sem-hours td:first-child { font-weight: 700; }
.wp-block-table.sem-hours mark, .wp-block-table.sem-hours .has-orchid-soft-color { color: var(--wp--preset--color--orchid-soft) !important; background: transparent !important; }
@media (max-width: 767px) {
	.sem-prices { grid-template-columns: 1fr; padding: 32px 12px; gap: 16px; }
	.sem-price-card { border-radius: 22px; padding: 24px 20px; }
	.sem-price-title { font-size: 17px; }
	.sem-price-amount { font-size: 19px; }
	.sem-price-pill { font-size: 11px; }
	.sem-hours-card { border-radius: 22px; padding: 8px 22px; }
	.wp-block-table.sem-hours table { font-size: 16px; }
	.wp-block-table.sem-hours tr:first-child { padding-top: 18px; }
	.wp-block-table.sem-hours tr:last-child { padding-bottom: 18px; }
}

/* ---------- Footer (site-wide) ---------- */
.sem-footer { background: var(--wp--preset--color--blush); border-radius: 40px 40px 0 0; padding: 72px 48px 36px; margin-top: 0; }
.sem-footer > * { max-width: 1184px; margin-left: auto !important; margin-right: auto !important; }
.sem-footer__main { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.sem-footer__main > * > * { margin: 0 0 12px; }
.sem-footer__tagline { font-size: 17px; line-height: 1.7; max-width: 420px; }
.sem-footer__links a { color: var(--wp--preset--color--magenta-deep); text-decoration: none; font-weight: 700; }
.sem-footer__links a:hover { text-decoration: underline; }
.sem-footer__bottom { margin-top: 56px !important; padding-top: 24px; border-top: 1px solid rgba(56, 26, 46, .12); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; font-size: 15px; }
.sem-footer__bottom p { margin: 0; font-size: 15px; }
.sem-footer__bottom > :last-child { justify-self: end; }
.sem-footer .sem-muted { color: var(--wp--preset--color--contrast); } /* muted #666d80 on blush is 4.35:1 — below AA */
.sem-footer .sem-muted a { color: var(--wp--preset--color--magenta-deep); }
.sem-footer .sem-fb { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--wp--preset--color--magenta-deep); }
.sem-footer .sem-fb svg { width: 20px; height: 20px; fill: currentColor; }
.sem-social { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
@media (max-width: 767px) {
	.sem-footer { border-radius: 28px 28px 0 0; padding: 40px 22px 28px; margin-top: 0; }
	.sem-footer__main { grid-template-columns: 1fr; gap: 16px; }
	.sem-logo--footer img { width: 240px; height: 80px; }
	.sem-footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.sem-footer__bottom > :last-child { justify-self: center; }
}

/* ---------- v1.2 overrides of v1.0 rules that ship in theme.json styles.css (CD brief v1.0 §5) ---------- */
.sem-hours-card .wp-block-table.sem-hours { background: transparent; padding: 0; color: #fff; } /* v1.0 painted .sem-hours charcoal */
.sem-welcome > *, .sem-lists > *, .sem-services > *, .sem-prices > * { margin-block: 0 !important; } /* flow blockGap offset the 2nd card */

/* ---------- Review fixes (wf_c52a237c-76b) ---------- */
/* Focus rings visible on dark/colour grounds (WCAG 2.4.7 / 1.4.11) */
.sem-tour a:focus-visible { outline-color: #fff !important; }
@media (min-width: 768px) {
	.home:has(.wp-block-post-content > .sem-hero:first-child) .sem-header a:focus-visible { outline-color: #fff !important; }
}
/* Links inside running text are underlined, not colour-only (WCAG 1.4.1) */
.sem-footer .sem-muted a, .wp-block-post-content p a:not(.wp-element-button), .wpcf7-form p a { text-decoration: underline; text-underline-offset: 2px; }
.wp-block-post-content .sem-phone-row a { text-decoration: none; }

/* Homepage desktop header: logo | centred nav | pill, 48px inset, 34px nav gap; active item does not shift */
@media (min-width: 768px) {
	.home:has(.wp-block-post-content > .sem-hero:first-child) .sem-header { padding-left: 0 !important; padding-right: 0 !important; }
	.home:has(.wp-block-post-content > .sem-hero:first-child) .sem-header > .sem-header__inner {
		display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: none !important; padding: 0 48px;
	}
	.home:has(.wp-block-post-content > .sem-hero:first-child) .sem-header__right { display: contents !important; }
	.home:has(.wp-block-post-content > .sem-hero:first-child) .sem-header .sem-pay { justify-self: end; }
	.home:has(.wp-block-post-content > .sem-hero:first-child) .sem-header .wp-block-navigation__container { gap: 34px; }
	.home:has(.wp-block-post-content > .sem-hero:first-child) .sem-header .wp-block-navigation-item__content { padding: 10px 0 4px !important; }
}
.sem-header .sem-pay .wp-block-button__link { padding: 11px 24px; font-size: 15px; letter-spacing: 2px; }

/* List cards: 16px gaps (spec), no stray list/flow margins */
.sem-list-card.wp-block-group > * { margin-block: 0 !important; }
.sem-dots > li { margin: 0 !important; }

/* Phone: the Contact Info card is its own blush card 16px below the welcome card */
@media (max-width: 767px) {
	.sem-welcome { background: none; box-shadow: none; padding: 0; border-radius: 0; display: flex; flex-direction: column; gap: 16px; }
	.sem-welcome__text { background: #fff; border-radius: 22px; padding: 28px 22px; box-shadow: 0 20px 60px rgba(56, 26, 46, .12); }
	.sem-contact-card { margin: 0; }
}

/* Captions: her tee names under each tile; the coloring-pages caption under its thumbnail */
.sem-merch__grid.wp-block-gallery .wp-block-image { aspect-ratio: auto !important; background: none !important; border-radius: 0 !important; overflow: visible !important; flex-direction: column; }
.sem-merch__grid.wp-block-gallery .wp-block-image img { aspect-ratio: 1; background: #fff; border-radius: 20px; object-fit: cover; }
.sem-merch__grid.wp-block-gallery .wp-block-image figcaption {
	position: static !important; background: none !important; color: var(--wp--preset--color--plum) !important; text-shadow: none !important;
	padding: 8px 2px 0 !important; margin: 0 !important; font-size: 15px; text-align: left; max-height: none !important; overflow: visible !important;
}
@media (max-width: 767px) { .sem-merch__grid.wp-block-gallery .wp-block-image img { border-radius: 16px; } }
.sem-coloring .wp-block-image { display: flex; align-items: center; gap: 14px; }
.sem-coloring .wp-block-image figcaption { margin: 0; font-size: 15px; color: var(--wp--preset--color--plum); text-align: left; }
.sem-coloring .wp-block-image a { flex: 0 0 auto; line-height: 0; }

/* Phone menu overlay: 16px inset, 48px rows (tap targets), focus ring not clipped */
.sem-header .wp-block-navigation__responsive-container.is-menu-open { padding: 16px !important; }
.sem-header .is-menu-open .wp-block-navigation-item__content { min-height: 48px; display: flex !important; align-items: center; padding: 0 8px !important; }

/* Contact Form 7: pill submit, regular-weight typed text, no stray spinner row on phone */
.wpcf7-form .wpcf7-submit { border-radius: 999px !important; }
.wpcf7-form input, .wpcf7-form textarea, .wpcf7-form select { font-weight: 400 !important; }
@media (max-width: 767px) { .wpcf7 form:not(.submitting) .wpcf7-spinner { display: none; } }

/* Review notes stand off the new blush-white ground */
.sem-review-note { background: #fff; border-radius: 12px; }
/* h6 overlines at the v1.2 heading weight */
h6.wp-block-heading { font-weight: 500; }
/* Tour: spacing inside each photo box (a margin carries across column breaks in WebKit → ragged tops) */
.sem-tour__photos.wp-block-gallery .wp-block-image { margin: 0 !important; padding-bottom: 20px; }
@media (max-width: 767px) { .sem-tour__photos.wp-block-gallery .wp-block-image { padding-bottom: 10px; } }
/* Footer spacing: no layout block-gap before the footer part; inner pages get the v1.2 section rhythm */
.wp-site-blocks > footer.wp-block-template-part { margin-block-start: 0 !important; }
body:not(.home) .sem-footer { margin-top: 72px; }
@media (max-width: 767px) { body:not(.home) .sem-footer { margin-top: 32px; } }
/* Tiles reserve their square before the image loads (no collapse / layout shift); captions left-aligned */
.sem-merch__grid.wp-block-gallery .wp-block-image img { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1 !important; flex: none !important; }
.sem-merch__grid.wp-block-gallery .wp-block-image figcaption { text-align: left !important; width: 100%; }
/* Phone: the Contact Info card spans the full width; phone numbers are standalone links, not underlined */
@media (max-width: 767px) { .sem-contact-card { align-self: stretch; } }
.wp-block-post-content p.sem-phone-row a { text-decoration: none; }

/* ---------- Tour media: balanced masonry (JS), click-to-play video tile, photo lightbox (Guy 2026-09-27) ---------- */
.sem-tour__photos.wp-block-gallery { --sem-masonry-cols: 3; --sem-masonry-gap: 20px; }
@media (max-width: 767px) { .sem-tour__photos.wp-block-gallery { --sem-masonry-cols: 2; --sem-masonry-gap: 10px; } }
/* with JS: real columns, each a stack; the split is chosen for the most even column heights */
.sem-tour__photos.wp-block-gallery.is-masonry { display: flex !important; align-items: flex-start; gap: var(--sem-masonry-gap) !important; columns: auto; }
.sem-tour__photos.is-masonry > .sem-masonry__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sem-masonry-gap); }
.sem-tour__photos.is-masonry .wp-block-image, .sem-tour__photos.is-masonry .sem-video { width: 100% !important; margin: 0 !important; padding: 0 !important; }
.sem-tour__photos .wp-block-image a { display: block; line-height: 0; border-radius: 16px; }
.sem-tour__photos .wp-block-image img { width: 100%; height: auto !important; border-radius: 16px; display: block; }
@media (max-width: 767px) { .sem-tour__photos .wp-block-image a, .sem-tour__photos .wp-block-image img { border-radius: 12px; } }
.sem-tour__photos .wp-block-image a:focus-visible, .sem-video__link:focus-visible { outline: 3px solid #fff !important; outline-offset: 3px; }
.sem-tour__photos .wp-block-image a:hover img { filter: brightness(1.05); }

/* the video tile: 9:16 still with a play button; becomes the player on click */
.sem-video { position: relative; margin: 0 0 20px; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--wp--preset--color--plum); }
.sem-tour > .sem-video { max-width: 340px; } /* before the script moves it into the grid, and without JS */
.sem-video__link { position: absolute; inset: 0; display: block; }
.sem-video__poster { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.72); }
.sem-video__play {
	position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
	background: #fff; color: var(--wp--preset--color--magenta); display: flex; align-items: center; justify-content: center;
	box-shadow: 0 12px 40px rgba(56, 26, 46, .35);
}
.sem-video__play svg { fill: currentColor; margin-left: 4px; }
.sem-video__link:hover .sem-video__play { transform: scale(1.06); }
.sem-video__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 767px) { .sem-video { border-radius: 12px; } .sem-video__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; } }

/* photo viewer */
html.sem-lightbox-open { overflow: hidden; }
dialog.sem-lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 10, 18, .94); color: #fff; }
dialog.sem-lightbox::backdrop { background: rgba(20, 10, 18, .94); }
.sem-lightbox__stage { margin: 0; position: absolute; inset: 56px 72px; display: flex; align-items: center; justify-content: center; }
.sem-lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; }
.sem-lightbox__count { position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; text-align: center; font-family: var(--wp--preset--font-family--menu); font-size: 15px; color: #fff; }
.sem-lightbox__btn {
	position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
	background: #fff; color: var(--wp--preset--color--plum); font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.sem-lightbox__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sem-lightbox__prev { left: 12px; top: 50%; margin-top: -24px; }
.sem-lightbox__next { right: 12px; top: 50%; margin-top: -24px; }
.sem-lightbox__close { right: 12px; top: 12px; }
@media (max-width: 767px) {
	.sem-lightbox__stage { inset: 64px 8px 56px; }
	.sem-lightbox__prev, .sem-lightbox__next { top: auto; bottom: 8px; margin-top: 0; }
	.sem-lightbox__count { bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) { .sem-video__link:hover .sem-video__play { transform: none; } }
/* Merch (Guy S338): each tee links to her Etsy shop in a new tab; the tile grows and lifts on hover and on keyboard
   focus. Touch screens have no hover — a tap goes straight to Etsy. Reduced motion: the lift without the grow. */
.sem-merch__grid.wp-block-gallery .wp-block-image > a { display: block; position: relative; z-index: 0; line-height: 0; border-radius: 20px; transition: transform .22s ease, box-shadow .22s ease; }
.sem-merch__grid.wp-block-gallery .wp-block-image > a img { border-radius: inherit; }
@media (max-width: 767px) { .sem-merch__grid.wp-block-gallery .wp-block-image > a { border-radius: 16px; } }
@media (hover: hover) {
	.sem-merch__grid.wp-block-gallery .wp-block-image > a:hover { transform: scale(1.08); box-shadow: 0 20px 60px rgba(56, 26, 46, .22); z-index: 2; }
}
.sem-merch__grid.wp-block-gallery .wp-block-image > a:focus-visible { transform: scale(1.08); box-shadow: 0 20px 60px rgba(56, 26, 46, .22); z-index: 2; }
@media (prefers-reduced-motion: reduce) {
	.sem-merch__grid.wp-block-gallery .wp-block-image > a { transition: none; }
	.sem-merch__grid.wp-block-gallery .wp-block-image > a:hover, .sem-merch__grid.wp-block-gallery .wp-block-image > a:focus-visible { transform: none; }
}
