/* APS Pavement theme styles. Layout and color live in theme.json; this file covers details theme.json cannot express. */

:root {
	--aps-red: var(--wp--preset--color--primary);
	--aps-yellow: var(--wp--preset--color--accent);
	--aps-steel: var(--wp--preset--color--steel);
	--aps-header-h: 0px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { height: auto; }
::selection { background: var(--aps-red); color: #fff; }

a:focus-visible, button:focus-visible, .wp-element-button:focus-visible {
	outline: 2px solid var(--aps-yellow);
	outline-offset: 3px;
}

/* Heading links inherit heading color, no underline */
:where(h1, h2, h3, h4, h5, h6) a { text-decoration: none; }
:where(h1, h2, h3, h4, h5, h6) a:hover { color: var(--aps-red); }

/* ------------------------------------------------------------------ */
/* Header                                                             */
/* ------------------------------------------------------------------ */
.aps-header-wrap { position: sticky; top: -42px; z-index: 100; }
.admin-bar .aps-header-wrap { top: calc(32px - 42px); }
@media (max-width: 782px) { .admin-bar .aps-header-wrap { top: 0; position: relative; } }

.aps-topbar { border-bottom: 3px solid var(--aps-red); height: 42px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; padding-top: 0 !important; padding-bottom: 0 !important; }
.aps-topbar > * { width: 100%; }
.aps-topbar p { margin: 0; line-height: 1.4; }
.aps-topbar a { color: #fff; text-decoration: none; }
.aps-topbar a:hover { color: var(--aps-yellow); }
.aps-topbar-tag {
	font-family: var(--wp--preset--font-family--saira);
	font-weight: 700; font-style: italic; letter-spacing: 0.06em; text-transform: uppercase;
	color: var(--aps-yellow);
}

.aps-mainbar { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.aps-mainbar .wp-block-site-logo img { display: block; max-height: 62px; width: auto; }
.aps-header-badge { margin: 0; }
.aps-header-badge img { display: block; }

.aps-primary-nav .wp-block-navigation-item__content { text-decoration: none; padding: 0.4rem 0; position: relative; }
.aps-primary-nav .wp-block-navigation-item__content:hover,
.aps-primary-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--aps-red) !important; }
.aps-primary-nav > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
	background: var(--aps-red); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.aps-primary-nav > .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.aps-primary-nav > .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }

.aps-primary-nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--ink) !important;
	color: #fff !important;
	border: 0 !important;
	border-top: 3px solid var(--aps-red) !important;
	min-width: 260px !important;
	padding: 0.5rem 0 !important;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.aps-primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.6rem 1.25rem !important; font-weight: 500; letter-spacing: 0.01em;
}
.aps-primary-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { color: var(--aps-yellow) !important; background: rgba(255, 255, 255, 0.04); }

/* Mobile overlay */
.aps-primary-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem 1.5rem; }
.aps-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; color: #fff !important; }
.aps-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { border-top: 0 !important; box-shadow: none; padding-left: 1rem !important; background: transparent !important; }
.aps-primary-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1rem; color: var(--wp--preset--color--body-text) !important; }
.aps-primary-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }

@media (max-width: 1080px) { .aps-header-badge { display: none !important; } }
@media (max-width: 781px) {
	.aps-hide-mobile { display: none !important; }
	.aps-mainbar .wp-block-site-logo img { max-height: 48px; }
}

/* Icons (CSS masks so they inherit color) */
.aps-ico { display: flex; align-items: center; gap: 0.55rem; }
.aps-ico::before {
	content: ""; flex: 0 0 auto; width: 16px; height: 16px; background: var(--aps-red);
	-webkit-mask: var(--aps-icon) center / contain no-repeat; mask: var(--aps-icon) center / contain no-repeat;
}
.aps-ico-phone { --aps-icon: 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.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E"); }
.aps-ico-mail { --aps-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E"); }
.aps-ico-pin { --aps-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.aps-ico-check { --aps-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); }
.aps-break, .aps-break a { overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ */
/* Shared components                                                  */
/* ------------------------------------------------------------------ */
.aps-eyebrow,
.is-style-aps-eyebrow {
	display: flex; align-items: center; gap: 0.75rem;
	font-family: var(--wp--preset--font-family--saira) !important;
	font-size: 0.95rem !important; font-weight: 700 !important; font-style: normal;
	letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--aps-red) !important; margin-bottom: 0.25rem;
}
.aps-eyebrow::before,
.is-style-aps-eyebrow::before { content: ""; width: 2.25rem; height: 3px; background: currentColor; flex: 0 0 auto; }
.has-text-align-center.aps-eyebrow, .has-text-align-center.is-style-aps-eyebrow { justify-content: center; }
.aps-eyebrow a { color: inherit; text-decoration: none; }
.aps-on-red .aps-eyebrow, .has-primary-background-color .aps-eyebrow { color: #fff !important; }
@media (max-width: 600px) { .aps-eyebrow, .is-style-aps-eyebrow { font-size: 0.75rem !important; letter-spacing: 0.12em !important; gap: 0.6rem !important; } .aps-eyebrow::before, .is-style-aps-eyebrow::before { width: 1.5rem; } }

/* Page hero */
.aps-page-hero { position: relative; overflow: hidden; }
.aps-page-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
	background: linear-gradient(90deg, var(--aps-red) 0 72%, var(--aps-yellow) 72% 100%);
	z-index: 2;
}
.aps-page-hero .wp-block-cover__inner-container, .aps-page-hero > * { position: relative; z-index: 1; }
.aps-hero-title { margin-top: 0.25rem; text-wrap: balance; }
/* Keep template hero content on the same left edge as the header */
.wp-block-cover.aps-page-hero .wp-block-cover__inner-container { width: 100% !important; max-width: 1240px !important; margin-inline: auto !important; }
.wp-block-cover.aps-page-hero .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: 0 !important; max-width: 100%; }
.aps-page-hero .wp-block-cover__image-background { filter: grayscale(25%); }

/* Body copy rhythm inside pages and posts */
.aps-page-body .wp-block-post-content > * + * { margin-block-start: 1.25rem; }
.aps-page-body .wp-block-post-content :where(h2) { margin-block-start: var(--wp--preset--spacing--60); }
.aps-page-body .wp-block-post-content :where(h3) { margin-block-start: var(--wp--preset--spacing--50); }
.aps-page-body .wp-block-post-content :where(h2, h3, h4) + * { margin-block-start: 0.85rem; }
.aps-page-body .wp-block-post-content strong { color: #fff; }
.aps-page-body .wp-block-post-content li + li { margin-top: 0.4rem; }
.aps-page-body .wp-block-post-content li::marker { color: var(--aps-red); }
.aps-page-body .wp-block-image img { border-radius: 4px; }
.aps-page-body .wp-block-post-content > .wp-block-heading:first-child { margin-top: 0; }

/* Red callout */
.is-style-aps-callout,
.aps-page-body .wp-block-column.has-primary-background-color {
	background: var(--aps-red) !important; color: #fff;
	padding: clamp(1.5rem, 4vw, 2.75rem) !important; border-radius: 4px;
	box-shadow: none !important;
}
.is-style-aps-callout :where(p, li, h2, h3, h4, strong, a),
.aps-page-body .wp-block-column.has-primary-background-color :where(p, li, h2, h3, h4, strong, a) { color: #fff !important; }
.is-style-aps-callout li::marker { color: #fff !important; }
.is-style-aps-callout .wp-element-button { background: #000; }

/* Dark card */
.is-style-aps-card {
	background: var(--wp--preset--color--charcoal); border: 1px solid var(--aps-steel); border-top: 3px solid var(--aps-red);
	padding: clamp(1.25rem, 3vw, 2rem); border-radius: 4px; height: 100%;
}

/* Slanted section edge */
.is-style-aps-slant { clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 calc(100% - 4vw)); padding-block: calc(4vw + var(--wp--preset--spacing--60)) !important; }

/* Checklist */
.is-style-aps-checklist { list-style: none; padding-left: 0 !important; }
.is-style-aps-checklist li { position: relative; padding-left: 1.85rem; }
.is-style-aps-checklist li::before {
	content: ""; position: absolute; left: 0; top: 0.3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
	background: var(--aps-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.has-primary-background-color .is-style-aps-checklist li::before { background-color: #000; }

/* Framed image */
.is-style-aps-framed { position: relative; }
.is-style-aps-framed img { position: relative; z-index: 1; border-radius: 4px; }
.is-style-aps-framed::before {
	content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 3px solid var(--aps-red); border-radius: 4px; z-index: 0;
}

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent; color: #fff; border: 2px solid currentColor; padding: calc(0.95rem - 2px) calc(1.6rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: #000; }
.aps-btn-dark .wp-block-button__link:hover { background: #fff !important; color: #000 !important; }
.wp-element-button { transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.wp-element-button:hover { transform: translateY(-1px); }

/* Details / FAQ */
.wp-block-details summary { font-family: var(--wp--preset--font-family--saira); font-weight: 700; color: #fff; cursor: pointer; font-size: 1.1rem; }
.wp-block-details[open] summary { color: var(--aps-red); margin-bottom: 0.75rem; }
.wp-block-details + .wp-block-details { margin-top: 0.75rem !important; }

/* Tables */
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th { background: var(--wp--preset--color--charcoal); color: #fff; font-family: var(--wp--preset--font-family--saira); text-align: left; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--aps-steel); padding: 0.7rem 0.9rem; }
/* Header-style first row when the table has no thead (legacy content) */
.wp-block-table table:not(:has(thead)) tr:first-child td,
.wp-block-table table:not(:has(thead)) tr td:first-child { color: #fff; font-family: var(--wp--preset--font-family--saira); font-weight: 700; }
.wp-block-table table:not(:has(thead)) tr:first-child td { background: var(--wp--preset--color--charcoal); }
@media (max-width: 600px) {
  .wp-block-table { overflow-x: auto; }
  .wp-block-table th, .wp-block-table td { padding: 0.55rem 0.6rem; font-size: 0.9rem; line-height: 1.45; overflow-wrap: normal; word-break: normal; hyphens: auto; }
}

/* Forms (WPForms) on dark backgrounds */
.wpforms-container .wpforms-field-label, .wpforms-container .wpforms-field-sublabel { color: #fff !important; }
.wpforms-container input[type=text], .wpforms-container input[type=email], .wpforms-container input[type=tel], .wpforms-container textarea, .wpforms-container select {
	background: #fff !important; border: 1px solid var(--aps-steel) !important; border-radius: 4px !important; color: #111 !important; max-width: 100% !important;
}
.wpforms-container button[type=submit] {
	background: var(--aps-red) !important; color: #fff !important; border: 0 !important; border-radius: 4px !important;
	font-family: var(--wp--preset--font-family--saira) !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: 0.04em;
	padding: 0.95rem 1.6rem !important; height: auto !important;
}
.wpforms-container button[type=submit]:hover { background: var(--wp--preset--color--primary-dark) !important; }

/* ------------------------------------------------------------------ */
/* Home page                                                          */
/* ------------------------------------------------------------------ */
.aps-hero { position: relative; }
.wp-block-cover.aps-hero .wp-block-cover__inner-container { width: 100% !important; max-width: 1240px !important; margin-inline: auto !important; }
.aps-hero .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: 0 !important; }
.aps-hero h1 { font-style: italic; font-weight: 800; text-wrap: balance; max-width: 21ch; font-size: clamp(2.1rem, 4.4vw, 3.5rem) !important; line-height: 1.1; }
.aps-hero h1 em, .aps-hero h1 .aps-hl { color: var(--aps-red); font-style: italic; }
.aps-hero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 5vw; background: var(--aps-red);
	clip-path: polygon(0 100%, 100% 0, 100% 100%); z-index: 2;
}

.aps-stats { position: relative; }
.aps-stat { text-align: center; }
.aps-stat .aps-stat-num {
	font-family: var(--wp--preset--font-family--saira); font-weight: 800; font-style: italic;
	font-size: clamp(2.75rem, 6vw, 4.25rem); line-height: 1; color: #fff; margin: 0;
}
.aps-stat .aps-stat-label {
	font-family: var(--wp--preset--font-family--saira); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	font-size: 0.9rem; color: #fff; opacity: 0.92; margin-top: 0.5rem !important;
}
@media (min-width: 782px) {
	.aps-stats .wp-block-column + .wp-block-column { border-left: 1px solid rgba(255, 255, 255, 0.35); }
}

.aps-phone-callout { display: flex; align-items: center; gap: 1rem; }
.aps-phone-callout .aps-phone-num { font-family: var(--wp--preset--font-family--saira); font-weight: 800; font-size: 1.6rem; color: #fff; text-decoration: none; }
.aps-phone-callout .aps-phone-num:hover { color: var(--aps-yellow); }

.aps-front .wp-block-post-content > * { margin-block-start: 0 !important; margin-block-end: 0; }
.aps-front + * , .aps-main > .aps-cta-band { margin-block-start: 0; }
.aps-phone-callout .aps-phone-num { white-space: nowrap; font-size: clamp(1.25rem, 1.8vw, 1.5rem) !important; }
.is-style-aps-checklist a { text-decoration: none; }
.is-style-aps-checklist a:hover { color: var(--aps-red); }

/* Service tiles */
.aps-service-grid { gap: 1rem !important; }
.aps-service-tile { overflow: hidden; border-radius: 4px; position: relative; isolation: isolate; }
.aps-service-tile .wp-block-cover__image-background { transition: transform 0.6s ease, filter 0.4s ease; }
.aps-service-tile:hover .wp-block-cover__image-background { transform: scale(1.06); }
.aps-service-tile .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.88) 100%) !important; opacity: 1 !important;
}
.aps-service-tile .wp-block-cover__inner-container { align-self: flex-end; }
.aps-service-tile h3 { margin: 0; }
.aps-service-tile h3 a { color: #fff; text-decoration: none; }
.aps-service-tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.aps-service-tile .aps-tile-link {
	font-family: var(--wp--preset--font-family--saira); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; color: var(--aps-red); margin-top: 0.4rem !important;
}
.aps-service-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--aps-red); z-index: 3; transform: scaleY(0); transform-origin: bottom; transition: transform 0.3s ease; }
.aps-service-tile:hover::before { transform: scaleY(1); }

/* Award band */
.aps-award img { max-width: 100%; }

/* Client logos (circular badge images) */
.aps-logo-grid { display: grid !important; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(0.75rem, 2vw, 1.5rem); }
@media (max-width: 1100px) { .aps-logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .aps-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.aps-logo-grid .wp-block-image { margin: 0 !important; }
.aps-logo-grid .wp-block-image img { width: 100% !important; height: auto; border-radius: 50%; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.aps-logo-grid .wp-block-image:hover img { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--aps-red); }

/* Project gallery */
.aps-projects.wp-block-gallery { gap: 0.75rem !important; }
.aps-projects.wp-block-gallery .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* Industries grid */
.aps-industry-card { transition: border-color 0.2s ease, transform 0.2s ease; }
.aps-industry-card:hover { transform: translateY(-3px); border-color: var(--aps-red) !important; }
.aps-industry-card h3 a { text-decoration: none; }
.aps-industry-card h3 a::after { content: ""; position: absolute; inset: 0; }
.aps-industry-card { position: relative; }

/* ------------------------------------------------------------------ */
/* Blog                                                               */
/* ------------------------------------------------------------------ */
.aps-post-card { border-radius: 4px; overflow: hidden; height: 100%; border: 1px solid var(--aps-steel); transition: border-color 0.2s ease, transform 0.2s ease; }
.aps-post-card:hover { border-color: var(--aps-red); transform: translateY(-3px); }
.aps-post-card .wp-block-post-featured-image { margin: 0; }
.aps-post-card .wp-block-post-featured-image img { border-radius: 0; }
.aps-post-card .wp-block-post-title { line-height: 1.25; }
.aps-card-date { color: var(--aps-red) !important; font-family: var(--wp--preset--font-family--saira); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem !important; }
.aps-post-card .wp-block-post-excerpt__more-link { font-family: var(--wp--preset--font-family--saira); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--aps-red); text-decoration: none; }
.aps-pagination { margin-top: var(--wp--preset--spacing--60) !important; font-family: var(--wp--preset--font-family--saira); font-weight: 600; gap: 0.5rem; }
.aps-pagination a, .aps-pagination .current { padding: 0.4rem 0.8rem; border: 1px solid var(--aps-steel); border-radius: 4px; text-decoration: none; }
.aps-pagination .current { background: var(--aps-red); border-color: var(--aps-red); color: #fff; }
.aps-post-nav a { font-family: var(--wp--preset--font-family--saira); font-weight: 600; text-decoration: none; }
.aps-post-nav a:hover { color: var(--aps-red); }

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */
.aps-footer { border-top: 4px solid var(--aps-red); }
.aps-footer p { margin: 0 0 0.6rem; }
.aps-footer a { color: var(--wp--preset--color--body-text); text-decoration: none; }
.aps-footer a:hover { color: #fff; }
.aps-footer .aps-ico-phone a { color: #fff; }
.aps-footer-heading {
	font-size: 1rem !important; letter-spacing: 0.14em; text-transform: uppercase; color: var(--aps-red) !important; margin-bottom: 1rem !important;
}
.aps-footer-links { list-style: none; padding-left: 0 !important; margin: 0; }
.aps-footer-links li { margin: 0 0 0.55rem; }
.aps-footer-logo { margin-bottom: 1.25rem !important; }
.aps-footer-logo img { background: none; padding: 0; max-width: 100%; height: auto; }
.aps-footer .aps-ico-mail { font-size: 0.95rem; }
.aps-footer-bottom p { margin: 0; }

/* CTA band */
.aps-cta-band { position: relative; overflow: hidden; }
.aps-cta-band::before {
	content: ""; position: absolute; right: -8%; top: 0; bottom: 0; width: 38%; background: rgba(0,0,0,0.12);
	transform: skewX(-18deg); pointer-events: none;
}
.aps-cta-band > * { position: relative; }
.aps-cta-band h2 { margin: 0; }
.aps-cta-band p { margin: 0; }
.aps-btn-outline-light .wp-block-button__link { color: #fff !important; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Inner pages (rebuilt sections) ---------- */
.aps-main .wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-block-cover.aps-inner-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem) !important; max-width: 22ch; line-height: 1.08; margin-top: 0.4rem; }
.aps-hero-lead { font-family: var(--wp--preset--font-family--saira); font-weight: 600; font-size: clamp(1.1rem, 1.7vw, 1.4rem) !important; color: #fff !important; max-width: 52ch; line-height: 1.4; margin-top: 1rem !important; }
.aps-inner-hero .wp-block-buttons { margin-top: 1.75rem !important; gap: 0.75rem; }
.aps-section > * + * { margin-block-start: 1.15rem; }
.aps-section :where(h2) { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.15; text-wrap: balance; }
.aps-section > :where(h2):not(:first-child) { margin-block-start: var(--wp--preset--spacing--50); }
.aps-section :where(h3) { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; }
.aps-section > :where(h3, h4):not(:first-child) { margin-block-start: 2rem; }
.aps-section :where(h2, h3, h4) + * { margin-block-start: 0.8rem; }
.aps-section strong { color: #fff; }
.aps-section li + li { margin-top: 0.45rem; }
.aps-section li::marker { color: var(--aps-red); }
.aps-section .wp-block-list { padding-left: 1.25rem; }
.aps-section .wp-block-list.is-style-aps-checklist { padding-left: 0; }
.aps-section a:not(.wp-element-button) { color: #fff; text-decoration-color: var(--aps-red); text-underline-offset: 3px; }
.aps-section a:not(.wp-element-button):hover { color: var(--aps-red); }
.aps-section .wp-block-buttons { margin-block-start: 1.75rem; }
.aps-section .wp-block-video video { width: 100%; border-radius: 4px; display: block; }
.aps-section .wp-block-image img { border-radius: 4px; height: auto; }
.aps-split .wp-block-column > * + * { margin-block-start: 1.1rem; }
.aps-split .wp-block-column > :where(h2, h3):first-child { margin-top: 0; }
.aps-split .is-style-aps-framed { margin-right: 14px; margin-bottom: 14px; }
.aps-split .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.aps-section .aps-rule.wp-block-separator { border: 0 !important; border-top: 1px solid var(--aps-steel) !important; opacity: 1; margin-block: 2.5rem !important; width: 100% !important; max-width: var(--wp--style--global--content-size) !important; background: none !important; height: 0; }
.aps-faq-q { color: #fff; }
.aps-faq.wp-block-details { background: var(--wp--preset--color--charcoal); border: 1px solid var(--aps-steel); border-left: 3px solid var(--aps-red); border-radius: 4px; padding: 1rem 1.25rem; }
.aps-faq.wp-block-details > * + * { margin-block-start: 0.8rem; }
.aps-faq.wp-block-details summary { list-style-position: outside; }

/* Red callout band */
.aps-callout-band { position: relative; overflow: hidden; }
.aps-callout-band::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 28%; background: var(--wp--preset--color--primary-dark); clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%); opacity: 0.55; z-index: 0; pointer-events: none; }
.aps-callout-band > * { position: relative; z-index: 1; }
.aps-callout-band :where(p, li, h2, h3, h4, strong, a) { color: #fff !important; }
.aps-callout-band li::marker { color: #fff; }
.aps-callout-band a:not(.wp-element-button) { text-decoration: underline !important; text-decoration-color: rgba(255,255,255,0.7) !important; text-underline-offset: 3px; }
.aps-callout-band a:not(.wp-element-button):hover { color: #000 !important; }
.aps-callout-band .wp-element-button { background: #000 !important; color: #fff !important; }
.aps-callout-band .is-style-outline .wp-element-button { background: transparent !important; }
@media (max-width: 781px) { .aps-callout-band::after { display: none; } }

/* Service tiles used outside the homepage */
.aps-section .aps-service-grid + .aps-service-grid { margin-top: 1rem !important; }

/* Popup Maker slide-in (popup 560): match brand type and colors */
.pum-theme-553 .pum-container, .pum-theme-enterprise-blue .pum-container { border-radius: 6px !important; box-shadow: 0 12px 32px rgba(0,0,0,.45) !important; }
.pum-theme-553 .pum-title, .pum-theme-enterprise-blue .pum-title { font-family: var(--wp--preset--font-family--saira) !important; font-weight: 800 !important; font-size: 1.5rem !important; line-height: 1.15 !important; color: #fff !important; padding-right: 2.5rem !important; }
.pum-theme-553 .pum-content, .pum-theme-553 .pum-content a, .pum-theme-enterprise-blue .pum-content a { font-family: var(--wp--preset--font-family--work-sans) !important; color: #fff !important; font-weight: 600; }
.pum-theme-553 .pum-close, .pum-theme-enterprise-blue .pum-close { background: var(--wp--preset--color--base, #000) !important; color: #fff !important; box-shadow: none !important; }
