/* =============================================================================
   Rev design system
   Everything here consumes theme.json presets (--wp--preset--*) and custom values
   (--wp--custom--*), so a client style variation re-skins the whole stylesheet.
   Classes: block styles (is-style-rev-*) registered in functions.php, plus the small
   rev-* vocabulary used by templates/parts/patterns. No layout is done here that a
   block attribute could do instead.
   ============================================================================= */

:root {
  --rev-radius-s: var(--wp--custom--radius--small, 6px);
  --rev-radius-m: var(--wp--custom--radius--medium, 12px);
  --rev-radius-l: var(--wp--custom--radius--large, 24px);
  --rev-shadow-card: var(--wp--custom--shadow--card, 0 8px 24px -12px rgba(0,0,0,.18));
  --rev-section-pad: var(--wp--custom--section-padding, var(--wp--preset--spacing--70));
  --rev-transition: 160ms ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { height: auto; max-width: 100%; }
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p) { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--wp--preset--color--primary); outline-offset: 3px; }

/* ---------- Sections --------------------------------------------------------- */
.rev-section,
.wp-block-group.is-style-rev-dark,
.wp-block-group.is-style-rev-tint,
.wp-block-group.is-style-rev-accent,
.wp-block-group.is-style-rev-bordered {
  padding-top: var(--rev-section-pad);
  padding-bottom: var(--rev-section-pad);
}
.wp-block-group.is-style-rev-dark {
  background: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--base);
}
.wp-block-group.is-style-rev-dark :where(h1, h2, h3, h4, p, li, a:not(.wp-block-button__link)) { color: inherit; }
.wp-block-group.is-style-rev-dark :where(a:not(.wp-block-button__link)):hover { color: var(--rev-accent-text); }
.wp-block-group.is-style-rev-tint { background: var(--wp--preset--color--tertiary); }
.wp-block-group.is-style-rev-accent {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-contrast);
}
.wp-block-group.is-style-rev-accent :where(h1, h2, h3, h4, p, li, a:not(.wp-block-button__link)) { color: inherit; }
.wp-block-group.is-style-rev-accent .wp-block-button__link {
  background: var(--wp--preset--color--primary-contrast);
  color: var(--rev-accent-text);
}
.wp-block-group.is-style-rev-bordered {
  border-top: 1px solid var(--wp--preset--color--border);
  border-bottom: 1px solid var(--wp--preset--color--border);
}

/* ---------- Text roles ------------------------------------------------------- */
.is-style-rev-eyebrow,
.rev-eyebrow {
  font-family: var(--wp--preset--font-family--body, inherit);
  font-size: var(--wp--preset--font-size--x-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rev-accent-text);
  margin-bottom: var(--wp--preset--spacing--20);
}
.is-style-rev-dark .rev-eyebrow, .is-style-rev-dark .is-style-rev-eyebrow { color: var(--rev-accent-text); }
.is-style-rev-accent .rev-eyebrow, .is-style-rev-accent .is-style-rev-eyebrow { color: inherit; opacity: .85; }
.is-style-rev-lead {
  font-size: var(--wp--preset--font-size--large);
  line-height: 1.5;
  color: var(--wp--preset--color--neutral);
  max-width: 60ch;
}
.is-style-rev-dark .is-style-rev-lead, .is-style-rev-accent .is-style-rev-lead { color: inherit; opacity: .9; }
.rev-section-head.has-text-align-center, .rev-section-head.is-content-justification-center { margin-inline: auto; }

/* ---------- Cards, stats, steps, quotes --------------------------------------- */
.wp-block-group.is-style-rev-card,
.wp-block-group.is-style-rev-card-flat {
  background: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: var(--rev-radius-m);
  padding: var(--wp--preset--spacing--40);
  height: 100%;
}
.wp-block-group.is-style-rev-card {
  box-shadow: var(--rev-shadow-card);
  transition: transform var(--rev-transition), box-shadow var(--rev-transition);
}
.wp-block-group.is-style-rev-card:has(a):hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 18px 36px -14px rgba(0,0,0,.25); }
.is-style-rev-dark .wp-block-group.is-style-rev-card,
.is-style-rev-dark .wp-block-group.is-style-rev-card-flat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.is-style-rev-card > .wp-block-image, .is-style-rev-card-flat > .wp-block-image { margin-top: calc(-1 * var(--wp--preset--spacing--40)); margin-inline: calc(-1 * var(--wp--preset--spacing--40)); }
.is-style-rev-card > .wp-block-image img, .is-style-rev-card-flat > .wp-block-image img { border-radius: var(--rev-radius-m) var(--rev-radius-m) 0 0; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.is-style-rev-card :where(h3) { margin-top: var(--wp--preset--spacing--30); }
.is-style-rev-card :where(h3 a) { text-decoration: none; color: inherit; }
.is-style-rev-card :where(h3 a):hover { color: var(--rev-accent-text); }

.wp-block-group.is-style-rev-stat { text-align: center; padding: var(--wp--preset--spacing--30); }
.is-style-rev-stat :where(p:first-child, h3:first-child) {
  font-family: var(--rev-font-heading, inherit);
  font-size: var(--wp--preset--font-size--xx-large);
  font-weight: 700;
  line-height: 1;
  color: var(--rev-accent-text);
  margin-bottom: var(--wp--preset--spacing--10);
}
.is-style-rev-stat :where(p:last-child) { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--neutral); }
.is-style-rev-dark .is-style-rev-stat :where(p:last-child) { color: inherit; opacity: .8; }

.wp-block-group.is-style-rev-step { counter-increment: rev-step; position: relative; padding-left: 4.25rem; }
.rev-steps { counter-reset: rev-step; }
.is-style-rev-step::before {
  content: counter(rev-step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-contrast);
  font-family: var(--rev-font-heading, inherit);
  font-weight: 700; font-size: var(--wp--preset--font-size--medium);
}

.wp-block-group.is-style-rev-quote {
  background: var(--wp--preset--color--base);
  border-radius: var(--rev-radius-m);
  padding: var(--wp--preset--spacing--40);
  border: 1px solid var(--wp--preset--color--border);
  position: relative; height: 100%;
}
.is-style-rev-quote::before {
  content: "“"; position: absolute; top: .25rem; right: 1rem;
  font-family: var(--rev-font-heading, serif); font-size: 5rem; line-height: 1;
  color: var(--rev-accent-text); opacity: .25;
}
.is-style-rev-quote :where(p:last-child) { font-size: var(--wp--preset--font-size--small); font-weight: 600; margin-top: var(--wp--preset--spacing--30); }
.rev-stars { color: #f0a500; letter-spacing: .08em; font-size: var(--wp--preset--font-size--small); }

/* ---------- Lists ------------------------------------------------------------ */
.wp-block-list.is-style-rev-checklist { list-style: none; padding-left: 0; }
.wp-block-list.is-style-rev-checklist li { position: relative; padding-left: 2rem; margin-bottom: .6em; }
.wp-block-list.is-style-rev-checklist li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--wp--preset--color--primary);
}
.wp-block-list.is-style-rev-checklist li::after {
  content: ""; position: absolute; left: .4rem; top: .42em; width: .45rem; height: .25rem;
  border-left: 2px solid var(--wp--preset--color--primary-contrast); border-bottom: 2px solid var(--wp--preset--color--primary-contrast);
  transform: rotate(-45deg);
}
.wp-block-list.is-style-rev-columns { columns: 2; column-gap: var(--wp--preset--spacing--40); }
@media (min-width: 782px) { .wp-block-list.is-style-rev-columns { columns: 3; } }
.wp-block-list.is-style-rev-columns li { break-inside: avoid; }

/* ---------- Buttons ---------------------------------------------------------- */
.wp-block-button__link { transition: background var(--rev-transition), color var(--rev-transition), transform var(--rev-transition); }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-rev-small .wp-block-button__link { padding: .6em 1.2em; font-size: var(--wp--preset--font-size--x-small); }
.wp-block-button.is-style-rev-ghost .wp-block-button__link { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.wp-block-button.is-style-rev-ghost .wp-block-button__link:hover { background: rgba(255,255,255,.12); }
.wp-block-button.is-style-rev-link .wp-block-button__link { background: transparent; color: var(--wp--preset--color--primary-dark); padding-inline: 0; text-decoration: underline; text-underline-offset: .2em; }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 2px; }

/* ---------- Hero (cover) ----------------------------------------------------- */
.wp-block-cover.is-style-rev-hero-left { min-height: min(72vh, 760px); }
.wp-block-cover.is-style-rev-hero-left .wp-block-cover__inner-container { max-width: var(--wp--style--global--wide-size); margin-inline: auto; }
.wp-block-cover.is-style-rev-hero-left .wp-block-cover__inner-container > * { max-width: 38rem; }
.wp-block-cover :where(h1, h2) { color: inherit; }
.rev-hero-trust { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40); font-size: var(--wp--preset--font-size--small); font-weight: 600; }
.rev-hero-trust li { list-style: none; display: inline-flex; align-items: center; gap: .4em; }
.rev-hero-trust li::before { content: "✓"; color: var(--rev-accent-text); font-weight: 800; }

/* ---------- Images ----------------------------------------------------------- */
.wp-block-image.is-style-rev-framed img { border-radius: var(--rev-radius-l); box-shadow: var(--rev-shadow-card); }
.wp-block-image figcaption { font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--neutral); }

/* ---------- Card grid (columns) ---------------------------------------------- */
.wp-block-columns.is-style-rev-cards { gap: var(--wp--preset--spacing--40); }
.wp-block-columns.is-style-rev-cards > .wp-block-column { display: flex; flex-direction: column; }
.wp-block-columns.is-style-rev-cards > .wp-block-column > .wp-block-group { flex: 1; }

/* ---------- Header: see the house rules block near the end of this file --------- */

/* ---------- Footer ----------------------------------------------------------- */
.rev-footer { font-size: var(--wp--preset--font-size--small); }
.rev-footer a { color: inherit; text-decoration: none; }
.rev-footer a:hover { color: var(--rev-accent-text); }
.rev-footer__title { font-size: var(--wp--preset--font-size--large); font-family: var(--rev-font-heading, inherit); font-weight: 700; }
.rev-footer__tagline { opacity: .75; }
.rev-footer .rev-eyebrow { color: var(--rev-accent-text); }
.rev-footer__nav .wp-block-navigation-item { margin: 0; }
.rev-footer__legal { opacity: .7; }
.rev-footer__legal p { margin: 0; }

/* ---------- Accordion (core/accordion) ---------------------------------------- */
.wp-block-accordion.rev-faq { border-top: 1px solid var(--wp--preset--color--border); }
.rev-faq .wp-block-accordion-item { border-bottom: 1px solid var(--wp--preset--color--border); }
.rev-faq .wp-block-accordion-heading { margin: 0; font-size: var(--wp--preset--font-size--medium); }
.rev-faq .wp-block-accordion-heading__toggle { padding: var(--wp--preset--spacing--30) 0; gap: var(--wp--preset--spacing--30); }
.rev-faq .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title { text-decoration: none; color: var(--rev-accent-text); }
.rev-faq .wp-block-accordion-heading__toggle-icon {
  flex: 0 0 auto; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--wp--preset--color--tertiary); color: var(--wp--preset--color--contrast); font-weight: 600; transition: transform var(--rev-transition), background var(--rev-transition);
}
.rev-faq .is-open .wp-block-accordion-heading__toggle-icon { transform: rotate(45deg); background: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-contrast); }
.rev-faq .wp-block-accordion-panel { padding-bottom: var(--wp--preset--spacing--30); color: var(--wp--preset--color--neutral); }
.rev-faq .wp-block-accordion-panel > :last-child { margin-bottom: 0; }
.is-style-rev-dark .rev-faq, .is-style-rev-dark .rev-faq .wp-block-accordion-item { border-color: rgba(255,255,255,.15); }
.is-style-rev-dark .rev-faq .wp-block-accordion-panel { color: inherit; opacity: .9; }

/* ---------- Rank Math FAQ block ---------------------------------------------- */
#rank-math-faq .rank-math-list-item { border-top: 1px solid var(--wp--preset--color--border); padding: var(--wp--preset--spacing--30) 0; }
#rank-math-faq .rank-math-list-item:last-child { border-bottom: 1px solid var(--wp--preset--color--border); }
#rank-math-faq .rank-math-question { font-size: var(--wp--preset--font-size--medium); margin: 0 0 var(--wp--preset--spacing--20); }
#rank-math-faq .rank-math-answer p:last-child { margin-bottom: 0; }

/* ---------- Gravity Forms ---------------------------------------------------- */
.gform_wrapper.gravity-theme .gfield_label { font-weight: 600; font-size: var(--wp--preset--font-size--small); }
.gform_wrapper.gravity-theme input:not([type=submit]), .gform_wrapper.gravity-theme select, .gform_wrapper.gravity-theme textarea {
  border: 1px solid var(--wp--preset--color--border); border-radius: var(--rev-radius-s); padding: .7em .9em; width: 100%; font: inherit; background: var(--wp--preset--color--base);
}
.gform_wrapper.gravity-theme input:focus, .gform_wrapper.gravity-theme select:focus, .gform_wrapper.gravity-theme textarea:focus { border-color: var(--wp--preset--color--primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 25%, transparent); }
.gform_wrapper.gravity-theme .gform_button {
  background: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-contrast); border: 0; border-radius: var(--wp--custom--radius--pill, 999px);
  padding: .85em 1.6em; font-weight: 600; cursor: pointer;
}
.gform_wrapper.gravity-theme .gform_button:hover { background: var(--wp--preset--color--primary-dark); }
/* Gravity Forms 2.7+/3.x "Orbital" theme reads CSS variables; map them to the brand. */
.gform_wrapper.gform-theme--orbital, .gform_wrapper.gform-theme--foundation, .gform_wrapper {
  --gf-color-primary: var(--wp--preset--color--primary);
  --gf-color-primary-contrast: var(--wp--preset--color--primary-contrast);
  --gf-color-primary-darker: var(--wp--preset--color--primary-dark);
  --gf-ctrl-btn-bg-color-primary: var(--wp--preset--color--primary);
  --gf-ctrl-btn-bg-color-hover-primary: var(--wp--preset--color--primary-dark);
  --gf-ctrl-btn-color-primary: var(--wp--preset--color--primary-contrast);
  --gf-ctrl-btn-border-color-primary: var(--wp--preset--color--primary);
  --gf-ctrl-btn-border-color-hover-primary: var(--wp--preset--color--primary-dark);
  --gf-ctrl-btn-border-radius: var(--wp--custom--radius--pill, 999px);
  --gf-ctrl-border-radius: var(--rev-radius-s);
  --gf-ctrl-border-color-focus: var(--wp--preset--color--primary);
  --gf-ctrl-shadow-focus: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 25%, transparent);
  --gf-font-family: inherit;
}
.gform_wrapper .gform_button, .gform_wrapper input[type="submit"] {
  background: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-contrast); border: 0;
  border-radius: var(--wp--custom--radius--pill, 999px); padding: .85em 1.6em; font-weight: 600; cursor: pointer;
}
.gform_wrapper .gform_button:hover, .gform_wrapper input[type="submit"]:hover { background: var(--wp--preset--color--primary-dark); }
.rev-form-card { background: var(--wp--preset--color--base); border-radius: var(--rev-radius-m); box-shadow: var(--rev-shadow-card); padding: var(--wp--preset--spacing--40); }

/* ---------- Motion ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wp-block-button__link, .is-style-rev-card { transition: none; }
}

/* =============================================================================
   Distinctive section treatments (D-028). All opt-in via classes; all token-driven.
   ============================================================================= */

/* Angled section edges: the roof-pitch motif. Add to any full-width group. */
.rev-angle-top    { clip-path: polygon(0 clamp(24px, 4vw, 64px), 100% 0, 100% 100%, 0 100%); padding-top: calc(var(--rev-section-pad) + clamp(24px, 4vw, 64px)); }
.rev-angle-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(24px, 4vw, 64px)), 0 100%); padding-bottom: calc(var(--rev-section-pad) + clamp(24px, 4vw, 64px)); }
.rev-angle-both   { clip-path: polygon(0 clamp(24px, 4vw, 64px), 100% 0, 100% calc(100% - clamp(24px, 4vw, 64px)), 0 100%); padding-top: calc(var(--rev-section-pad) + clamp(24px, 4vw, 64px)); padding-bottom: calc(var(--rev-section-pad) + clamp(24px, 4vw, 64px)); }
.rev-pull-up { margin-top: calc(-1 * clamp(24px, 4vw, 64px)); position: relative; z-index: 1; }

/* Hero: oversized display type, diagonal accent bar, floating card. */
.rev-hero { position: relative; overflow: hidden; }
.rev-hero::after { content: ""; position: absolute; right: 0; bottom: 0; width: clamp(160px, 28vw, 420px); height: clamp(90px, 16vw, 240px); background: var(--wp--preset--color--primary); clip-path: polygon(55% 0, 100% 0, 100% 100%, 0 100%); z-index: 1; opacity: .95; }
.rev-hero__accent { display: none; }
.rev-hero--plain::after { display: none; }
.rev-hero--center::after { display: none; }
.rev-hero--center .wp-block-cover__inner-container { text-align: center; }
.rev-hero--center .wp-block-cover__inner-container > * { max-width: 46rem; margin-inline: auto; }
.rev-hero--center .wp-block-buttons { justify-content: center; }
.rev-hero--center .rev-hero-trust { justify-content: center; }
.rev-hero--center .wp-block-cover__background { opacity: .78 !important; }
.rev-hero .wp-block-cover__inner-container { position: relative; z-index: 2; }
.rev-hero.is-style-rev-hero-left .wp-block-cover__inner-container > .wp-block-columns { max-width: none; }
.rev-hero .wp-block-column > * { max-width: 38rem; }
.rev-hero__card { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); border-radius: var(--rev-radius-m); padding: var(--wp--preset--spacing--40); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); max-width: 22rem; }
.rev-hero__card :where(p) { color: inherit; }
.rev-display { font-size: clamp(2.6rem, 6.2vw, 5.25rem) !important; line-height: .98 !important; letter-spacing: -0.025em; }
.rev-display em { font-style: normal; color: var(--rev-accent-text); }
.rev-underline { background-image: linear-gradient(transparent 62%, color-mix(in srgb, var(--wp--preset--color--primary) 35%, transparent) 62%); }

/* Marquee: credentials / cities strip. Pure CSS; respects reduced motion. */
.rev-marquee-wrap > * { max-width: none !important; }
.rev-marquee { overflow: hidden; white-space: nowrap; padding: var(--wp--preset--spacing--30) 0; border-top: 1px solid var(--wp--preset--color--border); border-bottom: 1px solid var(--wp--preset--color--border); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rev-marquee__track { display: inline-flex; gap: var(--wp--preset--spacing--60); animation: rev-marquee 40s linear infinite; padding-right: var(--wp--preset--spacing--60); }
.rev-marquee__track span { font-family: var(--rev-font-heading, inherit); font-size: var(--wp--preset--font-size--large); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.rev-marquee__track span::before { content: "◆"; color: var(--rev-accent-text); font-size: .55em; margin-right: var(--wp--preset--spacing--40); vertical-align: middle; }
@keyframes rev-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .rev-marquee__track { animation: none; } }

/* Numbered cards (01, 02, …) for services. */
.rev-numbered { counter-reset: rev-num; }
.rev-numbered .is-style-rev-card, .rev-numbered .is-style-rev-card-flat { counter-increment: rev-num; position: relative; }
.rev-numbered .is-style-rev-card::after, .rev-numbered .is-style-rev-card-flat::after {
  content: counter(rev-num, decimal-leading-zero); position: absolute; top: var(--wp--preset--spacing--30); left: var(--wp--preset--spacing--30); z-index: 2;
  font-family: var(--rev-font-heading, inherit); font-size: var(--wp--preset--font-size--small); font-weight: 700; line-height: 1;
  background: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-contrast); padding: .45em .6em; border-radius: var(--rev-radius-s);
}
.rev-numbered .is-style-rev-card > .wp-block-image + h3 { position: relative; z-index: 1; }

/* Icon callouts: inline SVG (core/html) + heading + text. */
.rev-callout { display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--wp--preset--spacing--30); align-items: start; }
.rev-callout .rev-icon { width: 3.5rem; height: 3.5rem; border-radius: var(--rev-radius-m); display: grid; place-items: center; background: color-mix(in srgb, var(--wp--preset--color--primary) 12%, transparent); color: var(--rev-accent-text); }
.rev-callout .rev-icon svg { width: 1.6rem; height: 1.6rem; }
.rev-callout > .wp-block-group { min-width: 0; }
.is-style-rev-dark .rev-callout .rev-icon { background: rgba(255,255,255,.08); }

/* Photo collage: two overlapping framed images. */
.rev-collage { position: relative; aspect-ratio: 5 / 4; }
.rev-collage .wp-block-image { position: absolute; margin: 0; }
.rev-collage .wp-block-image:first-child { inset: 0 18% 18% 0; }
.rev-collage .wp-block-image:last-child { inset: 32% 0 0 32%; box-shadow: 0 24px 50px -24px rgba(0,0,0,.45); }
.rev-collage .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--rev-radius-m); }
.rev-collage::before { content: ""; position: absolute; inset: auto auto -6% -6%; width: 40%; height: 40%; background: repeating-linear-gradient(135deg, var(--wp--preset--color--primary) 0 2px, transparent 2px 10px); opacity: .55; border-radius: var(--rev-radius-m); z-index: -1; }

/* Chips: service-area cities and the like. */
.rev-chips { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--20); list-style: none; padding: 0; margin: 0; }
.rev-chips li { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border); border-radius: 999px; padding: .35em .9em; font-size: var(--wp--preset--font-size--small); font-weight: 600; }
.rev-chips li a { text-decoration: none; color: inherit; }
.rev-chips li:hover { border-color: var(--wp--preset--color--primary); color: var(--rev-accent-text); }
.is-style-rev-dark .rev-chips li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); }

/* Project strip: horizontal scroll of photos. */
.rev-strip { display: flex; gap: var(--wp--preset--spacing--30); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--wp--preset--spacing--20); scrollbar-width: thin; }
.rev-strip .wp-block-image { flex: 0 0 min(72vw, 420px); scroll-snap-align: start; margin: 0; }
.rev-strip .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rev-radius-m); }
.rev-strip .wp-block-image figcaption { text-align: left; }

/* Proof band: big number + label pairs, inline. */
.rev-proof { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--50); align-items: baseline; }
.rev-proof__num { font-family: var(--rev-font-heading, inherit); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1; color: var(--rev-accent-text); }
.rev-proof__label { display: block; font-size: var(--wp--preset--font-size--small); opacity: .8; margin-top: .35em; }

/* Big quote mark pull-quote */
.rev-pullquote { font-family: var(--rev-font-heading, inherit); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; position: relative; padding-left: 1.2em; }
.rev-pullquote::before { content: "“"; position: absolute; left: 0; top: -.1em; font-size: 2.2em; color: var(--rev-accent-text); line-height: 1; }

/* Split CTA with phone block */
.rev-phone { font-family: var(--rev-font-heading, inherit); font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; text-decoration: none !important; color: inherit !important; letter-spacing: -0.01em; }
.rev-phone:hover { color: var(--rev-accent-text) !important; }

/* Package tier highlight */
.rev-tier--featured { border-color: var(--wp--preset--color--primary) !important; box-shadow: 0 0 0 1px var(--wp--preset--color--primary), var(--rev-shadow-card) !important; transform: translateY(-6px); }
@media (max-width: 781px) { .rev-tier--featured { transform: none; } }

/* ===== Section variants (D-041 layout families). Neutral base styling; skins restyle. ===== */
/* hero: split-image */
.rev-hero-split { background: var(--wp--preset--color--tertiary); }
.rev-hero-split .rev-hero-split__media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: var(--rev-radius-l); }
.rev-hero-split .rev-display { font-size: clamp(2.4rem, 5.4vw, 4.5rem) !important; }
/* hero: stacked (type on tint, full-width photo below) */
.rev-hero-stacked .rev-hero-stacked__media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--rev-radius-l); }
/* hero: type-only */
.rev-hero-type { background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--base); }
.rev-hero-type :where(h1, p, li) { color: inherit; }
.rev-hero-type .rev-display { font-size: clamp(3rem, 8vw, 7rem) !important; max-width: 14ch; }
.rev-hero-type .rev-hero-trust { color: inherit; }
.rev-hero-type .rev-hero__card-inline, .rev-hero-type .rev-hero__card-inline :where(p, li, h3) { color: var(--wp--preset--color--contrast); }
.rev-hero-type .rev-hero__card-inline .is-style-rev-eyebrow { color: var(--rev-accent-text); }
/* services: rows (alternating image / text) */
.rev-rows > .wp-block-columns { border-top: 1px solid var(--wp--preset--color--border); padding-top: var(--wp--preset--spacing--50); margin-top: var(--wp--preset--spacing--50); }
.rev-rows > .wp-block-columns:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.rev-rows .wp-block-image img { border-radius: var(--rev-radius-m); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.rev-rows__num { font-size: var(--wp--preset--font-size--x-large); font-weight: 800; color: var(--rev-accent-text); line-height: 1; }
/* services: icon grid */
.rev-icon-grid .is-style-rev-card-flat { display: grid; gap: var(--wp--preset--spacing--30); align-content: start; }
.rev-icon-grid .rev-icon { width: 3rem; height: 3rem; }
/* proof: tiles */
.rev-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--wp--preset--spacing--40); }
.rev-tiles > div { background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border); border-radius: var(--rev-radius-m); padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40); text-align: center; }
.rev-tiles .rev-proof__num { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; color: var(--rev-accent-text); line-height: 1; }
.rev-tiles .rev-proof__label { display: block; margin-top: .5em; color: var(--wp--preset--color--neutral); }
/* steps: timeline (horizontal) */
.rev-steps--timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--wp--preset--spacing--40); counter-reset: rev-step; position: relative; }
.rev-steps--timeline::before { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; top: 1.35rem; height: 2px; background: var(--wp--preset--color--border); }
.rev-steps--timeline .is-style-rev-step { padding-left: 0; padding-top: 3.5rem; }
.rev-steps--timeline .is-style-rev-step::before { top: 0; left: 0; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 999px; background: var(--wp--preset--color--primary); color: var(--wp--preset--color--primary-contrast); font-size: var(--wp--preset--font-size--small); position: absolute; }
/* steps: cards */
.rev-steps--cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--wp--preset--spacing--40); counter-reset: rev-step; }
.rev-steps--cards .is-style-rev-step { background: var(--wp--preset--color--tertiary); border-radius: var(--rev-radius-m); padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40) var(--wp--preset--spacing--40); padding-left: var(--wp--preset--spacing--40); }
.rev-steps--cards .is-style-rev-step::before { position: static; display: block; margin-bottom: var(--wp--preset--spacing--30); }
/* faq: two-column */
.rev-faq-two .rev-section-head { position: sticky; top: 6rem; }
/* cta: band + card */
.rev-cta-band { text-align: center; }
.rev-cta-band .rev-phone { display: inline-block; margin: var(--wp--preset--spacing--30) 0; }
.rev-cta-card { background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--base); border-radius: var(--rev-radius-l); padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50); }
.rev-cta-card :where(h2, p, a:not(.wp-block-button__link)) { color: inherit; }
/* callouts: list (two columns of icon rows) */
.rev-callout-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60); }
/* gallery: grid */
.rev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--wp--preset--spacing--30); }
.rev-grid .wp-block-image { margin: 0; }
.rev-grid .wp-block-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rev-radius-m); }
.rev-grid .wp-block-image:first-child { grid-column: span 2; grid-row: span 2; }
.rev-grid .wp-block-image:first-child img { aspect-ratio: auto; height: 100%; }
/* related: inline list */
.rev-related-inline { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--30); }
.rev-related-inline .wp-block-button__link { padding: .6em 1.2em; }
/* footer variants */
.rev-footer--minimal { text-align: center; }
.rev-footer--minimal .rev-footer__nav { justify-content: center; }
.rev-footer--columns .rev-footer__cols { gap: var(--wp--preset--spacing--60); }

/* ===== Header: house rules (docs/DECISIONS.md D-053) ==========================================
   logo | menu | phone + CTA. The phone and the CTA are always the right-hand group, on every
   variant and width. Whether the menu shows in full is decided by what fits, not by a fixed
   breakpoint: a tiny inline script (functions.php) measures the row and sets
     .is-compact    the menu still fits once the phone becomes an icon button and gaps tighten
     .is-collapsed  it does not fit: the menu becomes the toggle, to the right of the phone
   Under 600px WordPress collapses the menu itself. ========================================== */
.rev-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--wp--preset--color--border); background: var(--wp--preset--color--base); }
.admin-bar .rev-header { top: var(--wp-admin--admin-bar--height, 32px); }
.rev-header__inner { align-items: center; gap: var(--wp--preset--spacing--40); padding-block: var(--wp--preset--spacing--30); min-height: 4.5rem; box-sizing: border-box; }
.rev-header__inner > * { flex-shrink: 0; margin: 0; }
.rev-header__logo img { height: 52px; width: auto; max-width: none; display: block; }
.rev-header__logo + .rev-header__title { display: none; }           /* title only when there is no logo */
/* menu: fills the space between the logo and the right-hand group */
.rev-header__nav { flex: 1 0 auto; font-size: var(--wp--preset--font-size--small); }
.rev-header__nav .wp-block-navigation__container { flex-wrap: nowrap; gap: var(--wp--preset--spacing--40); }
.rev-header__nav .wp-block-navigation-item__content { padding: .25em 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.rev-header__nav .current-menu-item > .wp-block-navigation-item__content { border-bottom-color: var(--wp--preset--color--primary); }
.rev-header--centered .rev-header__nav { justify-content: center; }
/* right-hand group */
.rev-header__actions { align-items: center; gap: var(--wp--preset--spacing--30); }
.rev-header__actions > * { margin: 0; }
.rev-header__phone { font-weight: 700; font-size: var(--wp--preset--font-size--small); white-space: nowrap; line-height: 1; }
.rev-header__phone:empty { display: none; }
.rev-header__phone a { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; text-decoration: none; color: inherit; }
.rev-header__phone a::before { content: ""; flex: none; width: 1.05em; height: 1.05em; background: var(--wp--preset--color--primary); -webkit-mask: var(--rev-icon-phone) center / contain no-repeat; mask: var(--rev-icon-phone) center / contain no-repeat; }
body { --rev-icon-phone: 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 1 11.4 11.4 0 0 0 .57 3.6 1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.rev-header__cta .wp-block-button__link { white-space: nowrap; }
/* top-bar variant: address left, phone right in the bar; the row below keeps logo | menu | CTA */
.rev-header--topbar .rev-header__bar { font-size: var(--wp--preset--font-size--small); background: var(--wp--preset--color--secondary); color: var(--wp--preset--color--base); padding-block: .45em; }
.rev-header--topbar .rev-header__bar p { margin: 0; }
.rev-header--topbar .rev-header__bar a { color: inherit; text-decoration: none; font-weight: 700; }
.rev-header--topbar .rev-header__bar + .rev-header__inner { margin-block-start: 0; }
.rev-header--topbar .rev-header__bar-phone { white-space: nowrap; margin-left: auto; }
.rev-header--topbar .rev-header__phone { display: none; }   /* the bar shows the number while the bar is visible */

/* --- compact: icon-only phone button, tighter menu ----------------------------------------- */
.rev-header.is-compact .rev-header__inner { gap: var(--wp--preset--spacing--30); }
.rev-header.is-compact .rev-header__nav .wp-block-navigation__container { gap: var(--wp--preset--spacing--30); }
.rev-header.is-compact .rev-header__phone a, .rev-header.is-collapsed .rev-header__phone a { font-size: 0; gap: 0; width: 44px; height: 44px; justify-content: center; border: 1px solid var(--wp--preset--color--border); border-radius: var(--rev-radius-m, 8px); }
.rev-header.is-compact .rev-header__phone a::before, .rev-header.is-collapsed .rev-header__phone a::before { font-size: 1.15rem; }

/* --- collapsed: the menu is the toggle, at the far right, after the phone ------------------- */
.rev-header.is-collapsed .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
.rev-header.is-collapsed .wp-block-navigation__responsive-container:not(.is-menu-open):not(.hidden-by-default) { display: none !important; }
.rev-header.is-collapsed .rev-header__nav, .rev-header.is-collapsed .rev-header__actions { flex: 0 0 auto; }
.rev-header.is-collapsed .rev-header__actions { margin-left: auto; }
.rev-header.is-collapsed .rev-header__nav { order: 3; }
.rev-header.is-collapsed.rev-header--topbar .rev-header__phone { display: block; }
.rev-header.is-collapsed.rev-header--topbar .rev-header__bar-phone { display: none; }
.rev-header .wp-block-navigation__responsive-container-open, .rev-header .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.rev-header .wp-block-navigation__responsive-container-open svg, .rev-header .wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }

/* --- the open menu is above everything on the page ----------------------------------------- */
.rev-header:has(.wp-block-navigation__responsive-container.is-menu-open) { z-index: 100000; }
.rev-header .wp-block-navigation__responsive-container.is-menu-open { position: fixed; inset: 0; z-index: 100000; display: flex !important; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); padding: var(--wp--preset--spacing--40) var(--wp--style--root--padding-left, 1.25rem); overflow-y: auto; }
.admin-bar .rev-header .wp-block-navigation__responsive-container.is-menu-open { top: var(--wp-admin--admin-bar--height, 32px); }
.rev-header .is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; padding-top: var(--wp--preset--spacing--50); }
.rev-header .is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: flex-start !important; gap: var(--wp--preset--spacing--30); font-size: var(--wp--preset--font-size--large); flex-wrap: nowrap; }
.rev-header .is-menu-open .wp-block-navigation-item__content { padding-block: .35em; white-space: normal; }

/* --- phones ------------------------------------------------------------------------------- */
@media (max-width: 781px) {
  .rev-header__logo img { height: 40px; }
  .rev-header__inner { min-height: 3.75rem; padding-block: var(--wp--preset--spacing--20); }
  .rev-header--topbar .rev-header__bar { display: none; }
}
@media (max-width: 599px) {   /* WordPress has collapsed the menu itself; same order as .is-collapsed */
  .rev-header .rev-header__nav, .rev-header .rev-header__actions { flex: 0 0 auto; }
  .rev-header .rev-header__actions { margin-left: auto; gap: var(--wp--preset--spacing--20); }
  .rev-header .rev-header__nav { order: 3; }
  .rev-header .rev-header__phone { display: block; }
  .rev-header .rev-header__phone a { font-size: 0; gap: 0; width: 44px; height: 44px; justify-content: center; border: 1px solid var(--wp--preset--color--border); border-radius: var(--rev-radius-m, 8px); }
  .rev-header .rev-header__phone a::before { font-size: 1.15rem; }
}
@media (max-width: 479px) {
  .rev-header .rev-header__cta.wp-block-buttons { display: none; }           /* phone + menu only; the CTA is in every section */
}
/* header, main and footer butt against each other: no white strip from the block gap (rev-issues item 26) */
.wp-site-blocks > * { margin-block-start: 0; }
.wp-site-blocks > main > :first-child { margin-block-start: 0; }
.wp-site-blocks > main > :last-child { margin-block-end: 0; }
/* anchors are not hidden under the sticky header */
html { scroll-padding-top: 6rem; }

/* ===== Hero: presence on every variant ===== */
.rev-hero-split, .rev-hero-type { min-height: 72vh; display: grid; align-items: center; }
.rev-hero-type .rev-section-head, .rev-hero-type > .wp-block-group { padding-block: var(--wp--preset--spacing--60); }
.rev-hero-stacked > .wp-block-group:first-child { padding-top: var(--wp--preset--spacing--50); }
.rev-hero-stacked .rev-hero-stacked__media { margin-top: var(--wp--preset--spacing--50); }
.rev-hero-stacked .rev-hero-stacked__media img { aspect-ratio: 2 / 1; max-height: 72vh; }
.rev-hero-stacked .rev-hero__card-inline { max-width: var(--wp--style--global--wide-size); margin-inline: auto; margin-top: var(--wp--preset--spacing--40); }
.rev-hero__card-inline { margin-top: var(--wp--preset--spacing--40); padding: var(--wp--preset--spacing--40); background: var(--wp--preset--color--base); border: 1px solid var(--wp--preset--color--border); border-radius: var(--rev-radius-m); }
.rev-hero-stacked .rev-hero__card-inline .wp-block-list { columns: 2; column-gap: var(--wp--preset--spacing--60); }
.rev-hero-stacked .rev-hero__card-inline .wp-block-list li { break-inside: avoid; }
@media (max-width: 781px) {
  .rev-hero-split, .rev-hero-stacked, .rev-hero-type { min-height: 0; }
  .rev-hero-stacked .rev-hero__card-inline .wp-block-list { columns: 1; }
  .rev-display { font-size: clamp(2.2rem, 11vw, 3rem) !important; }
  .rev-hero-type .rev-display { font-size: clamp(2.4rem, 12vw, 3.4rem) !important; }
  .wp-block-cover.rev-hero { min-height: 0 !important; }
}

/* ===== Gallery grid: plain, conventional ===== */
.rev-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.rev-grid .wp-block-image:first-child { grid-column: auto; grid-row: auto; }
.rev-grid .wp-block-image:first-child img { aspect-ratio: 4 / 3; height: auto; }
.rev-grid .wp-block-image img { aspect-ratio: 4 / 3; }

/* ===== Section rhythm on phones ===== */
@media (max-width: 781px) {
  .rev-section, .wp-block-group.is-style-rev-dark, .wp-block-group.is-style-rev-tint, .wp-block-group.is-style-rev-accent, .wp-block-group.is-style-rev-bordered { --rev-section-pad: clamp(2.5rem, 10vw, 4rem); }
  .rev-proof { gap: var(--wp--preset--spacing--40); }
  .rev-proof__num { font-size: 2.4rem; }
  .rev-marquee__track span { font-size: var(--wp--preset--font-size--medium); }
  .rev-steps--timeline::before { display: none; }
  .rev-chips li { font-size: .78rem; padding: .3em .7em; }
  .rev-collage { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; aspect-ratio: auto; }
  .rev-collage .wp-block-image { position: static; inset: auto; margin: 0; }
}

/* ===== Card grids wrap instead of squeezing (5 services = 3 + 2), badges never overlap titles ===== */
.wp-block-columns.is-style-rev-cards { flex-wrap: wrap !important; }
.wp-block-columns.is-style-rev-cards > .wp-block-column { flex: 1 1 calc(25% - var(--wp--style--block-gap, 1.5rem)); min-width: min(100%, 15rem); }
.rev-numbered .is-style-rev-card:not(:has(.wp-block-image)) { padding-top: calc(var(--wp--preset--spacing--50) + 1.5rem); }
@media (max-width: 781px) { .wp-block-columns.is-style-rev-cards > .wp-block-column { flex-basis: 100%; } }
@media (min-width: 782px) and (max-width: 1023px) { .wp-block-columns.is-style-rev-cards > .wp-block-column { flex-basis: calc(50% - var(--wp--style--block-gap, 1.5rem)); } }
/* header: keep one line at laptop widths */

/* ===== Legal pages (library templates): long-form reading measure ===== */
.rev-legal > * { max-width: 46rem; }
.rev-legal h1 { font-size: var(--wp--preset--font-size--xx-large); margin-block-end: var(--wp--preset--spacing--40); }
.rev-legal h2 { font-size: var(--wp--preset--font-size--large); margin-block-start: var(--wp--preset--spacing--50); }
.rev-legal a { overflow-wrap: anywhere; }
.rev-legal__ai-notice { margin-block-start: var(--wp--preset--spacing--60); padding-block-start: var(--wp--preset--spacing--40); border-top: 1px solid var(--wp--preset--color--border); }

/* ===== Layout system: house defaults (rev-issues items 19-23, 27; docs/DECISIONS.md D-055) =====
   One alignment edge per section: everything sits on the wide grid. A left-aligned section
   head starts at that edge, a centred one is centred on it; text keeps a readable measure. */
.rev-section-head { max-width: var(--wp--style--global--wide-size); }
.rev-section-head > * { max-width: 46rem; }
.rev-section-head:not(.has-text-align-center) > * { margin-left: 0 !important; margin-right: auto !important; }
.rev-section-head.has-text-align-center > * { margin-inline: auto !important; }
.rev-section-head + * { margin-block-start: var(--wp--preset--spacing--50); }
:is(.rev-section, section.wp-block-group) > .wp-block-group:not(.alignfull):not(.alignwide):not(.rev-section-head) { max-width: var(--wp--style--global--wide-size); }
/* the hero uses the same gutter as every section, at every width */
.wp-block-cover.rev-hero { padding-inline: var(--wp--style--root--padding-left, 1.25rem); }
.rev-hero--center .wp-block-cover__inner-container { text-align: center; }
.rev-hero--center .wp-block-cover__inner-container > * { max-width: 46rem; margin-inline: auto; }
.rev-hero--center .wp-block-buttons, .rev-hero--center .rev-hero-trust { justify-content: center; }
.rev-hero--center .rev-hero__card--strip { max-width: 56rem; margin-top: var(--wp--preset--spacing--50); text-align: left; }
.rev-hero--center .rev-hero__card--strip .wp-block-list { columns: 2; column-gap: var(--wp--preset--spacing--50); }
.rev-hero--center .rev-hero__card--strip .wp-block-list li { break-inside: avoid; }
/* equal-column rows: columns per row follow the item count (class rev-cols-N from the CLI); a short last row is centred */
.wp-block-columns[class*="rev-cols-"] { --rev-gap: var(--wp--preset--spacing--40); display: flex; flex-wrap: wrap !important; justify-content: center; gap: var(--rev-gap); }
.wp-block-columns[class*="rev-cols-"] > .wp-block-column { flex: 0 0 calc((100% - (var(--rev-cols) - 1) * var(--rev-gap)) / var(--rev-cols)) !important; min-width: 0; margin: 0; }
.rev-cols-2 { --rev-cols: 2; } .rev-cols-3 { --rev-cols: 3; } .rev-cols-4 { --rev-cols: 4; }
@media (max-width: 1099px) { .rev-cols-4 { --rev-cols: 2; } }
@media (max-width: 899px) { .rev-cols-3 { --rev-cols: 2; } }
@media (max-width: 599px) { .rev-cols-2, .rev-cols-3, .rev-cols-4 { --rev-cols: 1; } }
/* card images bleed to the card edge on all three sides (the layout's auto margins used to win) */
.is-style-rev-card > .wp-block-image, .is-style-rev-card-flat > .wp-block-image { margin-inline: calc(-1 * var(--wp--preset--spacing--40)) !important; max-width: none !important; width: auto; }
/* steps share one baseline: flow layout pushed every step after the first down */
.rev-steps:not(.rev-steps--timeline):not(.rev-steps--cards) { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--40); }
.rev-steps > * { margin-block: 0 !important; }
@media (max-width: 599px) { .rev-hero--center .rev-hero__card--strip .wp-block-list { columns: 1; } }
/* gallery "strip": a plain row of equal photos that wraps, never a sideways scroller */
.rev-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--wp--preset--spacing--30); overflow: visible; padding-bottom: 0; }
.rev-strip .wp-block-image, .rev-grid .wp-block-image { flex: none; min-width: 0; width: 100%; max-width: none; margin: 0 !important; }
.rev-strip .wp-block-image img, .rev-grid .wp-block-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.rev-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
/* four callouts sit 2 x 2 (or four across), never three and an orphan */
.rev-callout-list:has(> :last-child:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 781px) { .rev-callout-list:has(> :last-child:nth-child(4)) { grid-template-columns: 1fr; } }
.rev-chips { margin-block: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40); }
h3 + .wp-block-html > .rev-chips, h3 + .rev-chips { margin-block-start: var(--wp--preset--spacing--20); }
/* small fixes from the family review */
.rev-steps--cards .is-style-rev-step::before { display: grid; place-items: center; }
.rev-phone { white-space: nowrap; }
.rev-cta-card .wp-block-columns, .rev-cta-split .wp-block-columns { align-items: center; }
/* cards sit on the surface token (white) even when the page base is off-white (paper palette) */
.wp-block-group.is-style-rev-card, .rev-hero__card, .rev-hero__card-inline { background-color: var(--wp--preset--color--surface, var(--wp--preset--color--base)); }

/* ===== Pattern library, second set (D-058): hero overlap / framed / banner / local, services
   list / feature, proof strip, testimonials, steps rows, FAQ aside, CTA minimal ============= */
/* hero: overlap */
.rev-hero-overlap { padding-block: 0 var(--rev-section-pad); background: var(--wp--preset--color--base); }
.rev-hero-overlap__media { margin: 0; }
.rev-hero-overlap__media .wp-block-image { margin: 0; }
.rev-hero-overlap__media img { display: block; width: 100%; height: clamp(18rem, 46vw, 34rem); object-fit: cover; }
.rev-hero-overlap__panel { position: relative; margin-top: calc(-1 * clamp(var(--wp--preset--spacing--60), 9vw, var(--wp--preset--spacing--80))) !important; background: var(--wp--preset--color--surface, var(--wp--preset--color--base)); padding: var(--wp--preset--spacing--50); border-radius: var(--rev-radius-l); box-shadow: var(--rev-shadow-card); width: calc(100% - 2 * var(--wp--style--root--padding-left, 1.25rem)); box-sizing: border-box; }
.rev-hero-overlap__panel .rev-display { font-size: clamp(2.2rem, 4.6vw, 3.8rem) !important; }
.rev-hero-overlap__panel .rev-hero__card-inline { margin-top: 0; }
/* hero: framed */
.rev-hero-framed { overflow: hidden; }
.rev-hero-framed .rev-display { font-size: clamp(2.4rem, 5vw, 4.2rem) !important; }
.rev-hero-framed__media { position: relative; padding: 0 0 var(--wp--preset--spacing--50) var(--wp--preset--spacing--40); }
.rev-hero-framed__media::before { content: ""; position: absolute; inset: var(--wp--preset--spacing--40) var(--wp--preset--spacing--40) 0 0; border: 2px solid var(--wp--preset--color--primary); border-radius: var(--rev-radius-l); }
.rev-hero-framed__media .wp-block-image { position: relative; margin: 0; }
.rev-hero-framed__media .wp-block-image img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--rev-radius-l); }
.rev-hero-framed__media .rev-hero__card-inline { position: absolute; left: 0; bottom: 0; margin: 0; max-width: min(20rem, 80%); box-shadow: var(--rev-shadow-card); padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40); }
.rev-hero-framed__media .rev-hero__card-inline li:nth-child(n+3) { display: none; }   /* a badge, not a list */
/* hero: banner (service pages) */
.rev-hero-banner { --rev-section-pad: var(--wp--preset--spacing--60); }
.rev-hero-banner .rev-display { font-size: clamp(2rem, 4vw, 3.25rem) !important; }
.rev-hero-banner .wp-block-image { margin: 0; }
.rev-hero-banner .wp-block-image img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--rev-radius-m); }
/* hero: local (area pages) */
.rev-hero-local { --rev-section-pad: var(--wp--preset--spacing--60); border-bottom: 1px solid var(--wp--preset--color--border); }
.rev-hero-local .rev-display { font-size: clamp(2rem, 4vw, 3.25rem) !important; }
.rev-hero-local__card { background: var(--wp--preset--color--tertiary); border-radius: var(--rev-radius-m); padding: var(--wp--preset--spacing--40); border-top: 4px solid var(--wp--preset--color--primary); }
.rev-hero-local__card > * { margin-block: 0 var(--wp--preset--spacing--20); }
.rev-hero-local__strip { margin-top: var(--wp--preset--spacing--50) !important; }
.rev-hero-local__strip .wp-block-image { margin: 0; }
.rev-hero-local__strip img { display: block; width: 100%; height: clamp(8rem, 16vw, 13rem); object-fit: cover; border-radius: var(--rev-radius-m); }
/* services: list */
.rev-svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--wp--preset--spacing--60); border-top: 2px solid var(--wp--preset--color--contrast); }
.rev-svc-list__item { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--wp--preset--spacing--30); padding-block: var(--wp--preset--spacing--40); border-bottom: 1px solid var(--wp--preset--color--border); margin: 0 !important; align-items: start; }
.rev-svc-list__item > * { margin: 0 !important; }
.rev-svc-list__item .rev-rows__num { font-size: var(--wp--preset--font-size--large); line-height: 1.2; }
.rev-svc-list__item h3 { margin: 0 0 var(--wp--preset--spacing--20) !important; }
.rev-svc-list__item h3 a { text-decoration: none; color: inherit; }
.rev-svc-list__item h3 a::after { content: " →"; color: var(--rev-accent-text); transition: margin .2s; }
.rev-svc-list__item h3 a:hover::after { margin-left: .25em; }
.rev-svc-list__item p { margin: 0; }
/* services: feature */
.rev-svc-feature { gap: var(--wp--preset--spacing--60); }
.rev-svc-feature .is-style-rev-card { height: 100%; }
.rev-svc-feature__list { display: flex; flex-direction: column; }
.rev-svc-feature__item { padding-block: var(--wp--preset--spacing--30); border-bottom: 1px solid var(--wp--preset--color--border); margin: 0 !important; }
.rev-svc-feature__item:first-child { padding-top: 0; }
.rev-svc-feature__item > * { margin-block: 0 var(--wp--preset--spacing--20) !important; }
.rev-svc-feature__item h3 { font-size: var(--wp--preset--font-size--large); }
.rev-svc-feature__item h3 a { text-decoration: none; color: inherit; }
.rev-svc-feature__item h3 a:hover { color: var(--rev-accent-text); }
/* proof: strip */
.rev-proof-strip { border-block: 1px solid var(--wp--preset--color--border); padding-block: var(--wp--preset--spacing--50); }
.rev-stat-strip { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60); justify-content: space-between; }
.rev-stat-strip > div { flex: 1 1 8rem; padding-left: var(--wp--preset--spacing--40); border-left: 2px solid var(--wp--preset--color--primary); }
.rev-stat-strip .rev-proof__num { display: block; font-size: clamp(2rem, 4vw, 3.25rem); color: var(--wp--preset--color--contrast); }
/* testimonials */
.rev-quote { background: var(--wp--preset--color--surface, var(--wp--preset--color--base)); border-radius: var(--rev-radius-m); padding: var(--wp--preset--spacing--40); height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: var(--wp--preset--spacing--40); }
.rev-quote > * { margin: 0 !important; }
.rev-quote__text { margin: 0; font-size: var(--wp--preset--font-size--medium); line-height: 1.55; }
.rev-quote__text::before { content: "“"; display: block; font-family: var(--rev-font-heading, inherit); font-size: 3rem; line-height: .8; color: var(--rev-accent-text); }
.rev-quote__text--big { font-family: var(--rev-font-heading, inherit); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.25; }
.rev-quote__by { margin: 0; }
.rev-quote-stack { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--40); height: 100%; }
.rev-quote-stack > * { margin: 0 !important; flex: 1; }
.rev-quotes-feature { gap: var(--wp--preset--spacing--40); }
/* steps: rows */
.rev-steps--rows { display: block; counter-reset: rev-step; border-top: 2px solid var(--wp--preset--color--contrast); }
.rev-steps--rows .is-style-rev-step { display: grid; grid-template-columns: clamp(3.5rem, 9vw, 7rem) minmax(0, 2fr) minmax(0, 3fr); gap: var(--wp--preset--spacing--40); align-items: baseline; padding: var(--wp--preset--spacing--40) 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.rev-steps--rows .is-style-rev-step::before { position: static; width: auto; height: auto; background: none; color: var(--rev-accent-text); font-family: var(--rev-font-heading, inherit); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; line-height: 1; display: block; border-radius: 0; }
.rev-steps--rows .is-style-rev-step > * { margin: 0 !important; }
/* FAQ: aside */
.rev-faq-aside { gap: var(--wp--preset--spacing--60); align-items: start; }
.rev-faq-aside__card { position: sticky; top: 7rem; }
.rev-faq-aside__card > * { margin-block: 0 var(--wp--preset--spacing--30); }
/* CTA: minimal */
.rev-cta-minimal { border-block: 2px solid var(--wp--preset--color--contrast); padding-block: var(--wp--preset--spacing--60); }
.rev-cta-minimal .rev-display { font-size: clamp(2rem, 4.4vw, 3.6rem) !important; }
@media (max-width: 781px) {
  .rev-svc-list { grid-template-columns: 1fr; }
  .rev-steps--rows .is-style-rev-step { grid-template-columns: 3rem minmax(0, 1fr); }
  .rev-steps--rows .is-style-rev-step > p { grid-column: 2; }
  .rev-hero-overlap__panel { padding: var(--wp--preset--spacing--40); }
  .rev-hero-framed__media { padding-left: 0; margin-top: var(--wp--preset--spacing--40); }
  .rev-hero-framed__media::before { display: none; }
  .rev-faq-aside__card { position: static; }
}
/* footers: contact strip and wordmark variants */
.rev-footer__cta { padding-bottom: var(--wp--preset--spacing--50); margin-bottom: var(--wp--preset--spacing--50); border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent); gap: var(--wp--preset--spacing--40); }
.rev-footer__cta-line { margin: 0; font-family: var(--rev-font-heading, inherit); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.2; max-width: 34rem; }
.rev-footer__cta-actions { gap: var(--wp--preset--spacing--40); }
.rev-footer .rev-footer__phone { display: block; font-size: var(--wp--preset--font-size--large); }
.rev-footer .rev-footer__phone a { width: auto; height: auto; border: 0; font-size: inherit; gap: .5em; }
.rev-footer .rev-footer__button.wp-block-buttons { display: flex !important; }
.rev-footer--cta .rev-footer__cols .rev-footer__tagline { display: none; }
.rev-footer__wordmark { padding-bottom: var(--wp--preset--spacing--50); margin-bottom: var(--wp--preset--spacing--50); border-bottom: 1px solid color-mix(in srgb, currentColor 20%, transparent); gap: var(--wp--preset--spacing--30); }
.rev-footer__title--big { font-size: clamp(2.5rem, 8vw, 6.5rem); line-height: .95; letter-spacing: -0.03em; margin: 0; }
.rev-footer__title--big a { text-decoration: none; color: inherit; }
.rev-footer__wordmark .rev-footer__tagline { margin: 0; max-width: 22rem; }
/* type-only hero: one left edge; long logos never crowd the menu out */
.rev-hero-type__inner > * { margin-inline: 0 !important; }
.rev-hero-type__inner > .is-style-rev-lead { max-width: 46rem; }
.rev-hero-type__inner .rev-hero__card-inline { max-width: 46rem; }
.rev-header__logo img { height: 52px; width: auto; max-width: min(15rem, 42vw); object-fit: contain; object-position: left center; }
.rev-hero-overlap__panel > .wp-block-columns { gap: var(--wp--preset--spacing--50); }
/* figures and labels follow the band they sit on */
.is-style-rev-dark .rev-stat-strip .rev-proof__num, .is-style-rev-accent .rev-stat-strip .rev-proof__num { color: inherit; }
.is-style-rev-dark .rev-stat-strip > div, .is-style-rev-accent .rev-stat-strip > div { border-left-color: currentColor; }
.is-style-rev-dark .rev-proof-strip, .is-style-rev-dark .rev-cta-minimal { border-color: color-mix(in srgb, currentColor 30%, transparent); }
@media (max-width: 781px) { .rev-header__logo img { height: 40px; } }
.rev-cta-card > * { max-width: none !important; }
.rev-header__logo img { max-width: min(18rem, 46vw); }
/* callouts: ruled (no icon tiles) */
.rev-ruled { border-top: 2px solid var(--wp--preset--color--contrast); padding-top: var(--wp--preset--spacing--30); height: 100%; }
.rev-ruled > * { margin-block: 0 var(--wp--preset--spacing--20) !important; }
.rev-ruled h3 { font-size: var(--wp--preset--font-size--large); }
.is-style-rev-dark .rev-ruled { border-top-color: currentColor; }
/* browser defaults follow the palette: selection, caret, form accents, and one visible focus ring everywhere */
::selection { background: color-mix(in srgb, var(--wp--preset--color--primary) 28%, var(--wp--preset--color--base)); color: var(--wp--preset--color--contrast); }
body { accent-color: var(--wp--preset--color--primary); caret-color: var(--wp--preset--color--primary); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 3px; }
.is-style-rev-dark :focus-visible, .is-style-rev-accent :focus-visible, .rev-footer :focus-visible { outline-color: currentColor; }
/* a heading belongs to what follows it: more space above than below */
.rev-section :where(h2, h3):not(:first-child) { margin-block-start: var(--wp--preset--spacing--50); }
.rev-section :where(h2, h3) + :where(p, ul, ol) { margin-block-start: var(--wp--preset--spacing--20); }

/* ==========================================================================
   Hero economy (0.6.0): one supporting device per hero, chosen by the design
   ========================================================================== */
.rev-hero-proof { display: flex; align-items: center; flex-wrap: wrap; gap: .5em; margin-top: var(--wp--preset--spacing--30); font-size: var(--wp--preset--font-size--small); font-weight: 600; }
.rev-hero--center .rev-hero-proof { justify-content: center; }
.rev-stars { color: var(--rev-accent-text); letter-spacing: .12em; font-size: 1.1em; }
.rev-hero .rev-hero-proof { color: var(--wp--preset--color--base); }
.rev-hero__form { background: var(--wp--preset--color--surface, var(--wp--preset--color--base)); color: var(--wp--preset--color--contrast); border-radius: var(--rev-radius-m); padding: var(--wp--preset--spacing--40); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.rev-hero__form > h2 { margin: 0 0 var(--wp--preset--spacing--30); color: inherit; }
.rev-hero__form .gform_wrapper { margin: 0; }
.rev-hero--center .rev-hero__form { max-width: 34rem; margin: var(--wp--preset--spacing--50) auto 0; text-align: left; }
:where(.rev-hero-split, .rev-hero-type, .rev-hero-framed, .rev-hero-overlap, .rev-hero-stacked) .rev-hero__form { box-shadow: var(--rev-shadow-card); border: 1px solid var(--wp--preset--color--border); margin-top: var(--wp--preset--spacing--40); }
/* a centred photo hero with nothing but the line and the action reads best a little taller and tighter */
.rev-hero--center .rev-display { max-width: 18ch; margin-inline: auto; }
.rev-hero--center .is-style-rev-lead { max-width: 46ch; margin-inline: auto; }

/* ==========================================================================
   Photo bands (0.6.0): a section over a photograph of the work
   ========================================================================== */
.rev-band-photo { color: var(--wp--preset--color--base); }
.rev-band-photo .wp-block-cover__inner-container { width: 100%; }
.rev-band-photo__inner > * { max-width: 44rem; }
.rev-band-photo :where(h2, h3, p, a:not(.wp-block-button__link)) { color: inherit; }
.rev-band-photo .is-style-rev-lead { opacity: .92; }
.rev-band-photo .rev-stat-strip { max-width: none; margin-top: var(--wp--preset--spacing--50); }
.rev-band-photo .rev-stat-strip .rev-proof__num { color: inherit; }
.rev-band-photo .rev-stat-strip > div { border-left-color: var(--wp--preset--color--primary); }
.rev-band-photo .rev-proof__label { opacity: .85; }
.rev-band-photo--quote .rev-pullquote { max-width: 30ch; }
.rev-band-photo .wp-block-cover__image-background { object-position: center; }

/* ==========================================================================
   Textures (0.6.0): token-based surface patterns for design/custom.css.
   Use: background-image: var(--rev-tex-dots); background-size: var(--rev-tex-dots-size);
   --rev-tex-ink is the line colour (defaults to a faint mix of the text colour).
   ========================================================================== */
body {
  --rev-tex-ink: color-mix(in srgb, currentColor 10%, transparent);
  --rev-tex-dots: radial-gradient(circle at 1.5px 1.5px, var(--rev-tex-ink) 1.5px, transparent 0);
  --rev-tex-dots-size: 22px 22px;
  --rev-tex-grid: linear-gradient(var(--rev-tex-ink) 1px, transparent 1px), linear-gradient(90deg, var(--rev-tex-ink) 1px, transparent 1px);
  --rev-tex-grid-size: 40px 40px;
  --rev-tex-hatch: repeating-linear-gradient(135deg, var(--rev-tex-ink) 0 1px, transparent 1px 12px);
  --rev-tex-stripes: repeating-linear-gradient(90deg, var(--rev-tex-ink) 0 1px, transparent 1px 64px);
  --rev-tex-rings: repeating-radial-gradient(ellipse 120% 90% at 85% 115%, transparent 0 34px, var(--rev-tex-ink) 34px 35px);
  --rev-tex-halftone: radial-gradient(circle at center, var(--rev-tex-ink) 0 28%, transparent 30%);
  --rev-tex-halftone-size: 14px 14px;
  --rev-tex-shingle: radial-gradient(circle at 50% 0, transparent 0 17px, var(--rev-tex-ink) 17px 18px, transparent 18px), radial-gradient(circle at 0 18px, transparent 0 17px, var(--rev-tex-ink) 17px 18px, transparent 18px), radial-gradient(circle at 100% 18px, transparent 0 17px, var(--rev-tex-ink) 17px 18px, transparent 18px);
  --rev-tex-shingle-size: 36px 36px;
  --rev-tex-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
/* a form in the hero is a short ask: tighter rows, a small message box, a full-width button */
.rev-hero__form .gform_fields { row-gap: var(--wp--preset--spacing--20) !important; }
.rev-hero__form textarea { height: 4.5rem !important; min-height: 0 !important; }
.rev-hero__form .gform_footer, .rev-hero__form .gform-footer { margin-top: var(--wp--preset--spacing--30) !important; padding: 0 !important; }
.rev-hero__form .gform_footer input[type="submit"], .rev-hero__form .gform-footer .gform_button { width: 100%; }
.rev-hero__form .gfield_required { display: none; }
.rev-band-photo { padding-inline: var(--wp--style--root--padding-left, 1.25rem) !important; }
.rev-band-photo__inner { max-width: var(--wp--style--global--wide-size); margin-inline: auto !important; width: 100%; }
.rev-faq-aside__card { height: auto !important; }

/* ==========================================================================
   Image-led and list variants (0.6.0): mosaic services and gallery, bleed split,
   tier rows, callout band, areas over a photograph
   ========================================================================== */
/* services mosaic: photo tiles, the first one large */
.rev-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(15rem, auto); gap: var(--wp--preset--spacing--30); }
.rev-mosaic > .rev-tile { grid-column: span 2; margin: 0 !important; }
.rev-mosaic > .rev-tile:first-child { grid-column: span 4; grid-row: span 2; }
.rev-mosaic--4 > .rev-tile:nth-child(4), .rev-mosaic--2 > .rev-tile { grid-column: span 3; }
.rev-mosaic--4 > .rev-tile:nth-child(n+2):nth-child(-n+3) { grid-column: span 2; }
.rev-mosaic--4 > .rev-tile:nth-child(4) { grid-column: span 6; }
.rev-mosaic--5 > .rev-tile:nth-child(n+4) { grid-column: span 3; }
.rev-mosaic--3 > .rev-tile:first-child { grid-row: span 2; }
.rev-tile { position: relative; overflow: hidden; border-radius: var(--rev-radius-m); min-height: 15rem; display: flex; align-items: flex-end; isolation: isolate; color: var(--wp--preset--color--base); background: var(--wp--preset--color--secondary); }
.rev-tile > .wp-block-image { position: absolute; inset: 0; margin: 0 !important; z-index: -2; }
.rev-tile > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .5s ease; }
.rev-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--wp--preset--color--secondary) 88%, transparent) 100%); }
.rev-tile:hover > .wp-block-image img { transform: scale(1.04); }
.rev-tile__text { padding: var(--wp--preset--spacing--40); max-width: 34rem; }
.rev-tile__text > * { margin-block: 0 var(--wp--preset--spacing--20); }
.rev-tile__text :where(h3, p, a) { color: inherit; }
.rev-tile__text h3 a { text-decoration: none; }
.rev-tile__text h3 a::after { content: ""; position: absolute; inset: 0; }
.rev-tile:not(:first-child) .rev-tile__text p { font-size: var(--wp--preset--font-size--small); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .rev-tile > .wp-block-image img { transition: none; } }
@media (max-width: 781px) { .rev-mosaic { grid-template-columns: 1fr; } .rev-mosaic > .rev-tile, .rev-mosaic > .rev-tile:first-child { grid-column: auto !important; grid-row: auto; } }

/* gallery mosaic: one large photograph, the rest in a 2x2 beside it */
.rev-gallery-mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 14rem; gap: var(--wp--preset--spacing--30); }
.rev-gallery-mosaic > .wp-block-image { margin: 0 !important; overflow: hidden; border-radius: var(--rev-radius-m); }
.rev-gallery-mosaic > .wp-block-image:first-child { grid-row: span 2; }
.rev-gallery-mosaic > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.rev-gallery-mosaic:has(> :nth-child(4):last-child) > :nth-child(4) { grid-column: span 2; }
.rev-gallery-mosaic:has(> :nth-child(3):last-child) > :nth-child(n+2) { grid-column: span 2; }
@media (max-width: 781px) { .rev-gallery-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 9rem; } .rev-gallery-mosaic > .wp-block-image:first-child { grid-column: span 2; grid-row: span 2; } .rev-gallery-mosaic > .wp-block-image { grid-column: auto !important; } }

/* split bleed: photograph to the page edge, text in a coloured panel */
.rev-section--bleed { padding: 0 !important; }
.rev-section--bleed > .rev-bleed { gap: 0 !important; margin: 0 !important; max-width: none !important; align-items: stretch !important; }
.rev-bleed > .wp-block-column { margin: 0 !important; display: flex; }
.rev-bleed__media { flex: 1; min-height: 26rem; position: relative; }
.rev-bleed__media > .wp-block-image { position: absolute; inset: 0; margin: 0 !important; }
.rev-bleed__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; box-shadow: none !important; }
.rev-bleed__panel { flex: 1; align-self: center; padding: var(--wp--preset--spacing--70) clamp(1.25rem, 6vw, 5.5rem); max-width: 44rem; }
.rev-bleed__panel > * { margin-block: 0 var(--wp--preset--spacing--30); }
@media (max-width: 781px) { .rev-bleed__media { min-height: 16rem; } .rev-bleed__panel { padding-block: var(--wp--preset--spacing--60); } }

/* tiers as rows */
.rev-tier-rows { border-top: 2px solid var(--wp--preset--color--contrast); }
.rev-tier-row { padding: var(--wp--preset--spacing--40) 0; border-bottom: 1px solid var(--wp--preset--color--border); margin: 0 !important; }
.rev-tier-row .wp-block-columns { margin: 0; align-items: baseline; }
.rev-tier-row h3 { margin: 0; }
.rev-tier-row--featured { background: var(--wp--preset--color--tertiary); padding-inline: var(--wp--preset--spacing--40); border-left: 4px solid var(--wp--preset--color--primary); }
.is-style-rev-dark .rev-tier-rows { border-top-color: currentColor; }
.is-style-rev-dark .rev-tier-row--featured, .is-style-rev-tint .rev-tier-row--featured { background: color-mix(in srgb, var(--wp--preset--color--primary) 14%, transparent); }

/* callouts as a colour band */
.rev-callout-band { gap: 0 !important; }
.rev-callout-band > .wp-block-column { padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40); border-left: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.rev-callout-band > .wp-block-column:first-child { border-left: 0; padding-left: 0; }
.rev-callout-band__item > * { margin-block: 0 var(--wp--preset--spacing--20); }
.rev-callout-band__item .rev-icon { width: 3rem; height: 3rem; margin-bottom: var(--wp--preset--spacing--30); background: none; color: var(--rev-accent-text); padding: 0; }
.rev-callout-band__item .rev-icon svg { width: 100%; height: 100%; }
.rev-callout-band__item :where(h3, p) { color: inherit; }
.rev-callout-band__item p { font-size: var(--wp--preset--font-size--small); opacity: .85; }
@media (max-width: 781px) { .rev-callout-band > .wp-block-column { border-left: 0; padding-left: 0; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); } .rev-callout-band > .wp-block-column:first-child { border-top: 0; } }

/* areas over a photograph */
.rev-band-photo--areas .rev-band-photo__inner > * { max-width: none; }
.rev-band-photo--areas .rev-band-photo__inner > :where(h2, p) { max-width: 44rem; }
.rev-areas-band { margin-top: var(--wp--preset--spacing--40); }
.rev-areas-band h3 { color: inherit; font-size: var(--wp--preset--font-size--medium); }
.rev-band-photo .rev-chips li { background: color-mix(in srgb, var(--wp--preset--color--base) 14%, transparent); border-color: color-mix(in srgb, var(--wp--preset--color--base) 35%, transparent); color: inherit; }
.rev-band-photo .rev-chips li a { color: inherit; }
@media (min-width: 782px) { .rev-callout-band { flex-wrap: nowrap !important; } .rev-callout-band > .wp-block-column { flex: 1 1 0 !important; min-width: 0; } }
.rev-tile::after { background: linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--secondary) 10%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--secondary) 55%, transparent) 45%, color-mix(in srgb, var(--wp--preset--color--secondary) 92%, transparent) 100%); }
@media (max-width: 781px) { .rev-tile .rev-tile__text p { font-size: var(--wp--preset--font-size--small); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .rev-tile { min-height: 13rem; } }

/* ==========================================================================
   Night palette support (0.7.0): inside dark bands, photos and the footer, `base` is the on-dark colour,
   so every "text on dark" rule keeps working when the page itself is dark.
   ========================================================================== */
:where(.is-style-rev-dark, .is-style-rev-accent, .wp-block-cover, .rev-footer, .rev-tile) { --wp--preset--color--base: var(--wp--custom--on-dark, #fff); }
.rev-header .wp-block-site-logo img, .rev-header .custom-logo { filter: var(--wp--custom--logo-filter, none); }

/* ==========================================================================
   More arrangements (0.7.0): galleries, hero stats, giant figures, stair steps, quote wall
   ========================================================================== */
.rev-gallery { display: grid; gap: var(--wp--preset--spacing--30); }
.rev-gallery > .wp-block-image { margin: 0 !important; }
.rev-gallery > .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--rev-radius-m); display: block; }
.rev-gallery figcaption { text-align: left; font-size: var(--wp--preset--font-size--small); margin-top: var(--wp--preset--spacing--20); }
/* filmstrip: tall frames running off both edges of the page */
.rev-section--flush { padding-inline: 0 !important; }
.rev-section--flush > .rev-section-head { padding-inline: var(--wp--style--root--padding-left, 1.25rem); max-width: var(--wp--style--global--wide-size); margin-inline: auto !important; }
.rev-gallery--filmstrip { display: flex; gap: var(--wp--preset--spacing--20); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; max-width: none !important; padding-inline: var(--wp--style--root--padding-left, 1.25rem); }
.rev-gallery--filmstrip::-webkit-scrollbar { display: none; }
.rev-gallery--filmstrip > .wp-block-image { flex: 0 0 clamp(15rem, 28vw, 24rem); height: clamp(20rem, 36vw, 30rem); scroll-snap-align: center; }
.rev-gallery--filmstrip > .wp-block-image:nth-child(even) { margin-top: var(--wp--preset--spacing--50) !important; }
.rev-gallery--filmstrip > .wp-block-image img { border-radius: 0; }
/* duo: two large photographs with captions */
.rev-gallery--duo { grid-template-columns: 1.25fr 1fr; align-items: end; gap: var(--wp--preset--spacing--40); }
.rev-gallery--duo > .wp-block-image img { aspect-ratio: 4 / 3; height: auto; }
.rev-gallery--duo > .wp-block-image:last-child img { aspect-ratio: 1 / 1; }
/* stagger: three columns, the middle one dropped */
.rev-gallery--stagger { grid-template-columns: repeat(3, 1fr); }
.rev-gallery--stagger > .wp-block-image img { aspect-ratio: 3 / 4; height: auto; }
.rev-gallery--stagger > .wp-block-image:nth-child(3n+2) { transform: translateY(var(--wp--preset--spacing--60)); }
.rev-gallery--stagger { padding-bottom: var(--wp--preset--spacing--60); }
/* feature: one panorama above a row of three */
.rev-gallery--feature { grid-template-columns: repeat(3, 1fr); }
.rev-gallery--feature > .wp-block-image:first-child { grid-column: 1 / -1; }
.rev-gallery--feature > .wp-block-image:first-child img { aspect-ratio: 21 / 9; height: auto; }
.rev-gallery--feature > .wp-block-image:not(:first-child) img { aspect-ratio: 4 / 3; height: auto; }
/* polaroid: framed prints, slightly turned */
.rev-gallery--polaroid { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--wp--preset--spacing--40); padding-block: var(--wp--preset--spacing--30); }
.rev-gallery--polaroid > .wp-block-image { background: var(--wp--preset--color--surface, #fff); padding: .75rem .75rem 1rem; box-shadow: var(--rev-shadow-card); transform: rotate(-1.5deg); }
.rev-gallery--polaroid > .wp-block-image:nth-child(even) { transform: rotate(1.25deg) translateY(.75rem); }
.rev-gallery--polaroid > .wp-block-image img { aspect-ratio: 1 / 1; height: auto; border-radius: 0; }
.rev-gallery--polaroid figcaption { color: var(--wp--preset--color--contrast); }
@media (max-width: 781px) {
  .rev-gallery--duo, .rev-gallery--feature { grid-template-columns: 1fr; }
  .rev-gallery--stagger { grid-template-columns: 1fr 1fr; padding-bottom: 0; }
  .rev-gallery--stagger > .wp-block-image:nth-child(3n+2) { transform: none; }
  .rev-gallery--filmstrip > .wp-block-image { flex-basis: 70vw; height: 22rem; }
}

/* hero stats: two or three figures on a glass panel */
.rev-hero-stats { display: inline-flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50); margin-top: var(--wp--preset--spacing--50); padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40); border-radius: var(--rev-radius-m); background: color-mix(in srgb, var(--wp--preset--color--secondary) 45%, transparent); backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, #fff 18%, transparent); color: #fff; }
.rev-hero-stats > div { display: flex; flex-direction: column; }
.rev-hero-stats .rev-proof__num { font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.05; color: inherit; }
.rev-hero-stats .rev-proof__label { font-size: var(--wp--preset--font-size--small); opacity: .85; max-width: 12rem; }
:where(.rev-hero-split, .rev-hero-type, .rev-hero-framed, .rev-hero-stacked, .rev-hero-overlap) .rev-hero-stats { background: var(--wp--preset--color--tertiary); color: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--border); backdrop-filter: none; }

/* giant figures */
.rev-stat-giant { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--wp--preset--spacing--50); margin-top: var(--wp--preset--spacing--50); border-top: 1px solid var(--wp--preset--color--border); padding-top: var(--wp--preset--spacing--50); }
.rev-stat-giant > div { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--20); }
.rev-stat-giant .rev-proof__num { font-size: clamp(3.5rem, 9vw, 8rem); line-height: .9; letter-spacing: -.03em; color: var(--rev-accent-text); font-family: var(--rev-font-heading); }
.rev-stat-giant .rev-proof__label { max-width: 16rem; }

/* stair steps: each card a step lower than the last */
.rev-steps--stair { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--wp--preset--spacing--30); align-items: start; }
.rev-steps--stair > .is-style-rev-step { margin: 0 !important; padding: var(--wp--preset--spacing--40); background: var(--wp--preset--color--surface, #fff); border: 1px solid var(--wp--preset--color--border); border-radius: var(--rev-radius-m); }
@media (min-width: 782px) { .rev-steps--stair > .is-style-rev-step:nth-child(2) { margin-top: 2rem !important; } .rev-steps--stair > .is-style-rev-step:nth-child(3) { margin-top: 4rem !important; } .rev-steps--stair > .is-style-rev-step:nth-child(4) { margin-top: 6rem !important; } }
/* numbers: a ruled list led by large numerals */
.rev-steps--numbers { counter-reset: revstep; border-top: 2px solid var(--wp--preset--color--contrast); }
.rev-steps--numbers > .is-style-rev-step { counter-increment: revstep; display: grid; grid-template-columns: minmax(4rem, 9rem) minmax(10rem, 1fr) 2fr; gap: var(--wp--preset--spacing--40); align-items: baseline; margin: 0 !important; padding: var(--wp--preset--spacing--40) 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.rev-steps--numbers > .is-style-rev-step::before { content: counter(revstep, decimal-leading-zero); position: static; width: auto; height: auto; background: none; border-radius: 0; font-family: var(--rev-font-heading); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; color: var(--rev-accent-text); display: block; }
.rev-steps--numbers > .is-style-rev-step > * { margin: 0; }
@media (max-width: 781px) { .rev-steps--numbers > .is-style-rev-step { grid-template-columns: 3.5rem 1fr; } .rev-steps--numbers > .is-style-rev-step > p { grid-column: 2; } }

/* quote wall */
.rev-quote-wall { columns: 3 18rem; column-gap: var(--wp--preset--spacing--40); }
.rev-quote-wall > .rev-quote { break-inside: avoid; margin: 0 0 var(--wp--preset--spacing--40) !important; }
.rev-steps--stair > .is-style-rev-step::before { position: static; display: block; margin-bottom: var(--wp--preset--spacing--30); }
.rev-steps--stair > .is-style-rev-step > * { margin-block: 0 var(--wp--preset--spacing--20); }
/* night: the footer and the CTA card keep a dark ground when `contrast` is the light text colour */
.rev-footer.has-contrast-background-color { background-color: var(--wp--custom--footer-bg, var(--wp--preset--color--contrast)) !important; }
:where(.rev-cta-card) { --wp--preset--color--base: var(--wp--custom--on-dark, #fff); }
/* the left hero starts on the same wide-grid edge as every section below it */
.wp-block-cover.is-style-rev-hero-left.has-custom-content-position .wp-block-cover__inner-container { width: 100%; margin-inline: auto; }
@media (max-width: 599px) { .rev-footer__cta-actions { flex-wrap: wrap !important; } .rev-footer__cta { flex-wrap: wrap; } }
.rev-gallery--filmstrip { box-sizing: border-box; width: 100%; margin-inline: 0 !important; }
/* found by the design reviewer (D-063) */
.wp-block-cover.is-style-rev-hero-left.has-custom-content-position .wp-block-cover__inner-container { width: 100% !important; margin-inline: auto !important; }
.rev-section--flush > .rev-section-head { box-sizing: content-box; }
.rev-steps--numbers > .is-style-rev-step > * { margin: 0 !important; max-width: none !important; }
.wp-block-post-content > *, .entry-content > * { margin-block-start: 0; }
.rev-band-photo.has-custom-content-position .wp-block-cover__inner-container { width: 100% !important; margin-inline: auto !important; }
.rev-steps.rev-steps--stair { display: grid; }
.rev-steps.rev-steps--numbers { display: block; }
.rev-marquee-wrap { padding-inline: 0 !important; }
.rev-tier-rows__note { max-width: 40rem; margin-top: var(--wp--preset--spacing--40) !important; }
.rev-tier-rows > .wp-block-buttons { margin-top: var(--wp--preset--spacing--30); }
.rev-tier-rows { border-top: 0; }
.rev-tier-rows > .rev-tier-row:first-child { border-top: 2px solid var(--wp--preset--color--contrast); }
/* stair and numbers out-rank the generic steps column (three classes there) */
.rev-steps.rev-steps--stair.rev-steps--stair.rev-steps--stair { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--wp--preset--spacing--30); align-items: start; }
.rev-steps.rev-steps--numbers.rev-steps--numbers.rev-steps--numbers { display: block; }
@media (min-width: 782px) {
  .rev-steps--stair { padding-bottom: 6rem; }
  .rev-steps--stair > .is-style-rev-step:nth-child(2) { transform: translateY(2rem); }
  .rev-steps--stair > .is-style-rev-step:nth-child(3) { transform: translateY(4rem); }
  .rev-steps--stair > .is-style-rev-step:nth-child(4) { transform: translateY(6rem); }
}
/* left hero: the copy sits on the left edge of the wide grid, not centred in it */
.wp-block-cover.is-style-rev-hero-left .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: auto !important; }

/* breadcrumbs (Rank Math), printed under the header on every page except the front page */
.rev-breadcrumbs { max-width: var(--wp--style--global--wide-size); margin-inline: auto; padding: var(--wp--preset--spacing--20) var(--wp--style--root--padding-left, 1.25rem); font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--neutral); box-sizing: content-box; }
.rev-breadcrumbs nav, .rev-breadcrumbs p { margin: 0; }
.rev-breadcrumbs a { color: inherit; text-decoration: none; }
.rev-breadcrumbs a:hover { color: var(--rev-accent-text); text-decoration: underline; }
.rev-breadcrumbs .separator { margin-inline: .5em; opacity: .6; }
.rev-breadcrumbs .last { color: var(--wp--preset--color--contrast); }
/* open mobile menu: every link is a comfortable tap target (found by rev visit) */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { min-height: 44px; display: flex; align-items: center; }

/* ==========================================================================
   Brand colour as text (0.8.0). Labels, links, figures and ticks in the brand colour use
   --rev-accent-text: the exact brand colour where it is readable, otherwise a shade of it chosen by
   `rev design` (4.5:1 on the page, and a lighter one inside dark bands, photos and the footer).
   Buttons and fills keep --wp--preset--color--primary.
   ========================================================================== */
:root { --rev-accent-text: var(--wp--custom--accent-text, var(--wp--preset--color--primary)); }
:where(.is-style-rev-dark, .wp-block-cover, .rev-footer, .rev-tile, .rev-band-photo, .rev-cta-card) { --rev-accent-text: var(--wp--custom--accent-on-dark, var(--wp--preset--color--primary)); }
/* the form card over a hero photograph is a page-coloured ground again */
:where(.wp-block-cover) :where(.rev-hero__form) { --rev-accent-text: var(--wp--custom--accent-text, var(--wp--preset--color--primary)); }

