/* 30-components: DESIGN 5 components, settled state (pre-states: 80-motion). Notes: docs/CSS-NOTES.md */

/* chapter mark + eyebrow + text roles */
.ov-section .ov-chapter-mark { gap: var(--space-3); }
.ov-chapter-mark__hex { flex: none; width: 20px; height: 20px; color: var(--ov-hex); }
.ov-chapter-mark__hex polygon { fill: currentColor; fill-opacity: 1; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.ov-chapter-mark__n { font: 500 var(--fs-small) / 1 var(--ov-font-body); font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--ov-fg-2); }
.ov-eyebrow, .ov-row__label, .ov-footer__label { font: 500 var(--fs-label) / 1.3 var(--ov-font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ov-fg-2); max-width: none; }
.ov-eyebrow--sage { color: var(--ov-sage-deep); }
.ov-lede { font-size: var(--fs-lede); line-height: 1.45; max-width: var(--measure-lede); }
.ov-note { font-size: var(--fs-small); font-style: italic; color: var(--ov-fg-2); }
.ov-small { font-size: var(--fs-small); color: var(--ov-fg-2); }
.ov-meta { font-size: var(--fs-small); color: var(--ov-fg-2); font-variant-numeric: tabular-nums; }
.ov-textlink a { display: inline-block; padding-block: 9px; font-weight: 500; color: var(--ov-link); text-decoration: none; background: linear-gradient(var(--ov-accent), var(--ov-accent)) 0 calc(100% - 8px) / 100% 1px no-repeat; }
.ov-textlink a::after { content: "\00a0→" / ""; display: inline-block; transition: transform var(--t-base) var(--ease-out); }

.ov-inner > .ov-chapter-mark:has(+ .is-style-ov-rule, + .is-style-ov-lead) { justify-content: center; }
.ov-textlink a:hover { color: var(--ov-accent); }
.ov-textlink a:hover::after { transform: translateX(4px); }

/* statement */
.ov-statement { margin-inline: auto; max-width: 11.5em; font: 300 var(--fs-h2) / 1.15 var(--ov-font-display); letter-spacing: -0.01em; text-align: center; text-wrap: balance; color: var(--ov-heading); }

/* stepped lines ("Gentle. / Thorough. / Really listens.") */
.ov-stepped > p { max-width: none; font: italic 300 var(--fs-h2) / 1.15 var(--ov-font-display); letter-spacing: -0.01em; color: var(--ov-heading); }
.ov-stepped > p + p { margin-block-start: .1em; }
.ov-stepped > p:nth-child(2) { padding-left: 2ch; }
.ov-stepped > p:nth-child(3) { padding-left: 4ch; }

/* service rows */
.ov-row { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "plate n" "plate body"; gap: var(--space-2) var(--space-4); padding-block: var(--space-5); border-top: var(--hairline); }
.ov-rows > .ov-row:last-child { border-bottom: var(--hairline); }
.ov-row__n { grid-area: n; font: italic 400 var(--fs-h4) / 1 var(--ov-font-display); color: var(--ov-numeral); }
.ov-row__body { grid-area: body; }
.ov-row > .is-style-ov-plate, .ov-row > .ov-whisper { grid-area: plate; width: 96px; margin: 0; }
.ov-row > .ov-whisper { padding: var(--space-3); }
.ov-row > .ov-whisper .ov-whisper__text { display: none; }
.ov-row__body > * + * { margin-block-start: var(--space-3); }
.ov-row__title { font-size: var(--fs-h3); }
.ov-row__title a { position: static; color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 450ms var(--ease-out); }
.ov-row__title a::before { content: ""; position: absolute; inset: 0; }
.ov-row__title a::after { content: "\00a0→" / ""; display: inline-block; margin-left: .3em; font-family: var(--ov-font-body); font-size: .7em; vertical-align: .15em; transition: transform var(--t-base) var(--ease-out); }
.ov-row:hover .ov-row__title a, .ov-row:focus-within .ov-row__title a { background-size: 100% 1px; }
.ov-row:hover .ov-row__title a::after, .ov-row:focus-within .ov-row__title a::after { transform: translateX(6px); }
.ov-row__title a:focus-visible { outline: 2px solid var(--ov-focus); outline-offset: 4px; border-radius: 2px; } /* the standard ring on the title; the plate keyline + underline mark the row */
.ov-row:hover .is-style-ov-plate img, .ov-row:focus-within .is-style-ov-plate img { transform: scale(1.03); }
.ov-row .is-style-ov-plate img { transition: transform var(--t-slow) var(--ease-out); }
.ov-row .is-style-ov-plate { overflow: hidden; border-radius: var(--r-md); outline: 1px solid transparent; outline-offset: 4px; transition: outline-color var(--t-base) var(--ease-out); }
.ov-row:hover .is-style-ov-plate, .ov-row:focus-within .is-style-ov-plate { outline-color: var(--ov-clay); }
@media (min-width: 782px) {
  .ov-row { grid-template-columns: 64px minmax(0, 1fr) 180px; grid-template-areas: "n body plate"; gap: var(--space-5); padding-block: var(--space-6); }
  .ov-row > .is-style-ov-plate, .ov-row > .ov-whisper { width: 180px; justify-self: end; }
  .ov-row > .ov-whisper .ov-whisper__text { display: block; font-size: var(--fs-h4); }
  .ov-rows--compact .ov-row { grid-template-columns: 64px minmax(0, 1fr) 96px; padding-block: var(--space-5); }
  .ov-rows--compact .ov-row > .is-style-ov-plate, .ov-rows--compact .ov-row > .ov-whisper { width: 96px; }
  .ov-rows--compact .ov-row > .ov-whisper .ov-whisper__text { display: none; }
}
.ov-rows--compact .ov-row__title { font-size: var(--fs-h4); }

/* tags + hex lists */
.ov-tags, .ov-hexlist { list-style: none; padding: 0; }
.ov-tags { display: flex; flex-wrap: wrap; gap: .25em 1.1em; max-width: none; font-size: var(--fs-small); color: var(--ov-fg-2); }
.ov-tags li { margin: 0; }
.ov-tags li::before, .ov-hexlist li::before { content: ""; display: inline-block; width: .55em; aspect-ratio: 1.1547; clip-path: var(--hex); background: var(--ov-clay); margin-right: .55em; vertical-align: .05em; }
.ov-hexlist li { position: relative; padding-left: 1.4em; }
.ov-hexlist li::before { position: absolute; left: 0; top: .62em; margin: 0; }
@media (min-width: 768px) { .ov-hexlist--2 { columns: 2; column-gap: var(--space-6); max-width: none; } .ov-hexlist--2 li { break-inside: avoid; } }

/* whisper tile (sage-deep, CSS hex lattice) */
.ov-whisper { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 5; padding: var(--space-5); border-radius: var(--r-md); overflow: hidden; background-color: var(--ov-sage-deep); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='27.7' viewBox='0 0 48 27.7' fill='none' stroke='%23EDE7DB' stroke-opacity='.14'%3E%3Cpolygon points='32,13.85 24,27.7 8,27.7 0,13.85 8,0 24,0'/%3E%3Cpolyline points='24,27.7 32,13.85 48,13.85 56,27.7'/%3E%3Cpolyline points='24,0 32,13.85 48,13.85 56,0'/%3E%3C/svg%3E"); background-size: 48px 27.7px; color: var(--ov-cream); }
.ov-whisper--square { aspect-ratio: 1; }
.ov-whisper--wide { aspect-ratio: 21 / 9; align-items: center; justify-content: center; text-align: center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='27.7' viewBox='0 0 48 27.7' fill='none' stroke='%23EDE7DB' stroke-opacity='.18'%3E%3Cpolygon points='32,13.85 24,27.7 8,27.7 0,13.85 8,0 24,0'/%3E%3Cpolyline points='24,27.7 32,13.85 48,13.85 56,27.7'/%3E%3Cpolyline points='24,0 32,13.85 48,13.85 56,0'/%3E%3C/svg%3E"); }
.ov-whisper__text { margin: 0; max-width: 10em; font: italic 300 var(--fs-h3) / 1.25 var(--ov-font-display); color: var(--ov-cream); text-wrap: balance; }
.ov-whisper--wide .ov-whisper__text { max-width: 17em; font-size: var(--fs-h2); }
@media (max-width: 767px) { .ov-whisper--wide { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) { .ov-whisper--wide, .ov-slot--poster-only.ov-slot--16x9 { aspect-ratio: 3 / 1; } }

/* team cards + monogram */
.ov-team-card > * + * { margin-block-start: var(--space-2); }
.ov-team-card__name { margin-block-start: var(--space-3); font-size: var(--fs-h4); }
.ov-team-card__role { color: var(--ov-fg-2); font-size: var(--fs-small); }
.ov-team-card__fact { font-size: var(--fs-small); }
.ov-team-card .ov-monogram { position: static; inset: auto; display: grid; place-items: center; width: 120px; aspect-ratio: 1.1547; margin: 0; clip-path: var(--hex); background: var(--ov-navy); color: var(--ov-cream); font: 300 2.75rem / 1 var(--ov-font-display); }
.ov-team-grid--lg .ov-team-card .ov-monogram { width: 160px; font-size: 3.5rem; }
@media (max-width: 767px) { .ov-team-grid .ov-team-card .ov-monogram { width: 88px; font-size: 2rem; } .ov-team-card__name { font-size: var(--fs-body); font-family: var(--ov-font-body); font-weight: 600; } }

/* quotes grid + note */
.ov-quotes + .ov-note { margin-block-start: var(--space-6); }

/* accordion group */
.ov-accordion { max-width: none; }

/* cards: generic + visit card */
.ov-card { padding: var(--space-6); border: var(--hairline); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.ov-card > * + * { margin-block-start: var(--space-4); }
.ov-card.ov-visit { padding: 0; overflow: hidden; }
.ov-card.ov-visit > * { margin: var(--space-4) var(--space-6) 0; }
.ov-card.ov-visit > .ov-visit__media { position: relative; margin: 0; }
.ov-card.ov-visit > :last-child { margin-block-end: var(--space-6); }
.ov-visit__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ov-pin { position: absolute; left: var(--space-4); bottom: var(--space-4); margin: 0; padding: 6px 12px; border-radius: var(--r-sm); background: var(--ov-paper); color: var(--ov-ink); font: 500 var(--fs-small) / 1.2 var(--ov-font-body); box-shadow: 0 1px 0 var(--ov-line); }
.ov-visit__address { max-width: none; }
.ov-visit__phone { font: 300 var(--fs-h3) / 1.2 var(--ov-font-display); letter-spacing: -0.005em; }
.ov-visit__phone a { display: inline-block; padding-block: 8px; color: var(--ov-heading); text-decoration: none; }
.ov-visit__phone a:hover { color: var(--ov-accent); }
.ov-visit__way { font-size: var(--fs-small); color: var(--ov-fg-2); }
.ov-visit .wp-block-buttons .wp-block-button { width: 100%; }
.ov-visit .wp-block-button__link { width: 100%; }

/* steps (ordered list with Fraunces numerals) */
.ov-steps { list-style: none; padding: 0; counter-reset: ov-step; max-width: var(--measure); }
.ov-steps > li { counter-increment: ov-step; position: relative; margin: 0; padding: var(--space-5) 0 var(--space-5) 3.75rem; border-top: var(--hairline); max-width: none; }
.ov-steps > li:last-child { border-bottom: var(--hairline); }
.ov-steps > li::before { content: counter(ov-step, decimal-leading-zero); position: absolute; left: 0; top: var(--space-5); font: italic 400 var(--fs-h4) / 1.2 var(--ov-font-display); color: var(--ov-numeral); }
.ov-steps > li > strong { display: block; margin-block-end: .25em; font: 400 var(--fs-h4) / 1.3 var(--ov-font-display); color: var(--ov-heading); }

/* contact sheet (duotone plates) */
.ov-sheet figure { max-width: 320px; }
.ov-sheet img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-md); }
.ov-sheet figcaption { font-style: italic; }

/* arch frame rendered by [ov_slot] (figure.ov-arch.ov-slot) */
.ov-arch { max-width: 428px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--arch); --ov-slot-pos: 50% 25%; }
.ov-arch > img, .ov-arch > video { width: 100%; height: 100%; object-fit: cover; object-position: var(--ov-slot-pos); }

/* arc ornament (nine hexagons from the logo) */
.ov-arc { display: block; width: 100%; height: auto; color: var(--ov-clay); }
.ov-arc--hairline { max-width: 320px; }
.ov-arc--hairline polygon { fill: none; stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ov-arc--sage { max-width: 240px; color: var(--ov-sage); }
.ov-arc--sage polygon { fill: none; stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.ov-arc--lit { max-width: 720px; margin-inline: auto; color: var(--ov-moon); filter: drop-shadow(0 0 16px rgb(237 231 219 / .35)); }
.ov-arc--lit polygon { fill: currentColor; opacity: 1; }

/* CTA bands */
.ov-cta .ov-inner { text-align: center; }
.ov-cta .ov-inner > * { margin-inline: auto; }
.ov-cta .ov-lede { max-width: 44ch; }
.ov-cta__phone { max-width: none; font: 300 var(--fs-phone-xl) / 1 var(--ov-font-display); letter-spacing: -0.01em; }
.ov-cta__phone a { color: var(--ov-moon); text-decoration: none; }
.ov-cta__phone a:hover { color: var(--ov-paper-light); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .1em; text-decoration-color: var(--ov-clay); }
.ov-cta .wp-block-buttons { justify-content: center; }
.ov-cta .ov-arc--lit { margin-block-start: var(--space-8); }
.ov-cta--porch .ov-inner { text-align: left; }
.ov-cta--porch .ov-inner > * { margin-inline: 0; }
.ov-cta--porch .wp-block-buttons { justify-content: flex-start; }
.ov-cta--porch .is-style-ov-arch { max-width: 428px; }
.ov-cta--porch .ov-textlink a { color: var(--ov-moon); background-image: linear-gradient(var(--ov-moon), var(--ov-moon)); }

/* breadcrumbs */
.ov-crumbs { font-size: var(--fs-small); color: var(--ov-fg-2); }
.ov-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .6em; margin: 0; padding: 0; list-style: none; max-width: none; }
.ov-crumbs li { margin: 0; }
.ov-crumbs li + li::before { content: "›"; margin-right: .6em; }
.ov-crumbs a { display: inline-block; padding-block: 11px; color: var(--ov-fg-2); text-decoration: none; }
.ov-crumbs a:hover { color: var(--ov-accent); text-decoration: underline; }
.ov-crumbs [aria-current] { color: var(--ov-fg); }

/* 404 */
.ov-404 .ov-inner > ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.ov-404 .ov-inner > ul li { margin: 0; }
.ov-404 .ov-inner > ul a { display: inline-block; padding-block: 10px; font-weight: 500; }

/* unnamed role card (insurance specialist): line icon instead of a letter */
.ov-team-card svg.ov-monogram--icon { display: block; height: auto; fill: none; stroke: var(--ov-cream); }

/* DM Google Reviews plugin, in house style: warm gold stars (#A8730F: 3.58:1 on paper, 3.18:1 on linen), ruled grid, centred lead */
:root { --dmgr-star: #A8730F; }
.ov-dark { --dmgr-star: #E2B04A; }
.dmgr-review:has(.is-style-ov-lead) { text-align: center; }
.dmgr-review:has(.is-style-ov-lead) > .dmgr-stars { justify-content: center; font-size: 1.35rem; margin-bottom: var(--space-3); }
.dmgr-reviews.ov-reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-7); margin-block-start: var(--space-6); }
.dmgr-reviews.ov-reviews-grid--wide { grid-template-columns: minmax(0, 1fr); max-width: 72ch; }
.ov-reviews-grid .dmgr-review { border-top: 1px solid var(--ov-line); padding-top: var(--space-4); }
.ov-reviews-grid .dmgr-review > .dmgr-stars { margin-bottom: var(--space-2); }
.ov-reviews-grid .wp-block-quote.is-style-ov-ruled { border: 0; padding: 0; margin: 0; }
@media (max-width: 767px) { .dmgr-reviews.ov-reviews-grid { grid-template-columns: minmax(0, 1fr); } }
.dmgr-review cite .dmgr-link, .dmgr-rating .dmgr-link { color: var(--ov-navy); text-decoration: underline; text-decoration-color: var(--ov-clay-deep); text-underline-offset: .2em; }
.ov-dark .dmgr-review cite .dmgr-link { color: var(--ov-moon); }
.dmgr-rating { justify-content: flex-start; font-size: var(--fs-small); color: var(--ov-ink-2); margin-block-start: var(--space-4); }
.dmgr-rating__num { color: var(--ov-ink); font-weight: 500; }
.ov-stories-lead .dmgr-rating, .ov-home-stories .dmgr-review + .dmgr-rating { justify-content: center; }
