/* Davina Remedial: component styles.
   Tokens come from theme.json (--wp--preset--color--*). Structural rules are prefixed with `body`
   so they beat WordPress's layout rules (`:root :where(.is-layout-flow) > * + *`) wherever they print. */

:root {
	--dr-charcoal: var(--wp--preset--color--charcoal, #231F20);
	--dr-graphite: var(--wp--preset--color--graphite, #332E2F);
	--dr-concrete: var(--wp--preset--color--concrete, #E9E7E3);
	--dr-paper: var(--wp--preset--color--paper, #FAFAF9);
	--dr-line: var(--wp--preset--color--line, #D6D2CC);
	--dr-line-dk: #4A4445;
	--dr-ink: var(--wp--preset--color--charcoal, #231F20);
	--dr-muted: var(--wp--preset--color--muted, #5F5A57);
	--dr-chalk: var(--wp--preset--color--chalk, #F3F1EE);
	--dr-mist: var(--wp--preset--color--mist, #B9B3AE);
	--dr-green: var(--wp--preset--color--green, #5AB55E);
	--dr-green-dp: var(--wp--preset--color--green-deep, #2E7A3A);
	--dr-error: #B3261E;
	--dr-display: var(--wp--preset--font-family--display, Montserrat, system-ui, sans-serif);
	--dr-sans: var(--wp--preset--font-family--sans, Montserrat, system-ui, sans-serif);
	--dr-section: clamp(64px, 9vw, 128px);
	--dr-ease: cubic-bezier(.25, 1, .5, 1);
	--dr-head-h: 112px;
	--dr-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M3 9.5l4 4 8-9' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
	--dr-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8h9M8.5 4l4 4-4 4' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E");
	--dr-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M10 3v14M3 10h14' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E");
}

/* ---------- Base ---------------------------------------------------------------------------- */

body { background: var(--dr-paper); color: var(--dr-ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body .wp-site-blocks > * { margin-block-start: 0; }
body .wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.dr-main { margin-block: 0; }
body .dr-content > .dr-sec, body .dr-main > .dr-sec, body .dr-content > .wp-block-group.alignfull { margin-block: 0; }
img { height: auto; }
h1, h2 { text-wrap: balance; }
h1 { font-weight: 700; letter-spacing: -0.035em; }
h2 { font-weight: 700; letter-spacing: -0.03em; }
h3 { font-weight: 600; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--dr-green-dp); outline-offset: 3px; }
.is-style-dr-dark :focus-visible, .dr-head :focus-visible, .dr-foot :focus-visible { outline-color: var(--dr-green); }
a { text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 160ms var(--dr-ease), text-decoration-thickness 160ms var(--dr-ease); }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--dr-green); color: var(--dr-charcoal); }

/* Sections */
body .dr-sec { padding-top: var(--dr-section); padding-bottom: var(--dr-section); }
.dr-concrete { background: var(--dr-concrete); }
body .dr-wrap > * + * { margin-block-start: 0; }
body .dr-wrap > .dr-sec-head + * { margin-block-start: clamp(32px, 4vw, 56px); }

/* Charcoal band: every text node sets its own colour (theme rules beat inheritance). */
.is-style-dr-dark { background: var(--dr-charcoal); color: var(--dr-chalk); }
.is-style-dr-dark h1, .is-style-dr-dark h2, .is-style-dr-dark h3, .is-style-dr-dark strong, .is-style-dr-dark b { color: var(--dr-chalk) !important; }
.is-style-dr-dark p, .is-style-dr-dark li, .is-style-dr-dark figcaption, .is-style-dr-dark .wp-element-caption { color: var(--dr-mist); }
.is-style-dr-dark a:not(.wp-element-button) { color: var(--dr-green); }

/* ---------- Buttons ------------------------------------------------------------------------- */

.wp-element-button, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; white-space: nowrap; text-decoration: none !important; transition: background-color 160ms var(--dr-ease), border-color 160ms var(--dr-ease), color 160ms var(--dr-ease), transform 120ms var(--dr-ease); touch-action: manipulation; }
.wp-element-button:active, .wp-block-button__link:active { transform: scale(.97); }
body .wp-block-buttons { gap: 12px; }
body .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--dr-ink); border: 1px solid var(--dr-ink); padding: calc(.95rem - 1px) calc(1.4rem - 1px); }
body .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--dr-ink); color: var(--dr-chalk); }
.is-style-dr-dark .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: var(--dr-green); color: var(--dr-charcoal) !important; }
.is-style-dr-dark .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: #6CC470; }
body .is-style-dr-dark .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--dr-chalk) !important; border-color: #6E6768; }
body .is-style-dr-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--dr-chalk); color: var(--dr-charcoal) !important; border-color: var(--dr-chalk); }
.dr-more a { font-weight: 600; color: var(--dr-green-dp); }
.is-style-dr-dark .dr-more a { color: var(--dr-green); }

/* ---------- Header -------------------------------------------------------------------------- */

.dr-site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; }
.dr-head { background: var(--dr-charcoal); border-bottom: 1px solid var(--dr-line-dk); }
body .dr-head > * + * { margin-block-start: 0; }
body .dr-util { display: flex; justify-content: flex-end; gap: 24px; margin: 0; padding: 7px max(clamp(16px, 4vw, 40px), calc((100% - 1200px) / 2)); background: #1A1718; font-size: .8125rem; line-height: 1.4; color: var(--dr-mist); }
.dr-util span { color: var(--dr-mist); }
.dr-util a { color: var(--dr-chalk); font-weight: 600; text-decoration: none; margin-left: 6px; }
.dr-util a:hover { text-decoration: underline; }
.dr-util .dr-skip { position: absolute; left: -9999px; margin: 0; }
.dr-util .dr-skip:focus { position: fixed; left: 16px; top: 16px; z-index: 100; background: var(--dr-green); color: var(--dr-charcoal); padding: 10px 16px; }
body .dr-head__row { max-width: calc(1200px + 2 * clamp(16px, 4vw, 40px)); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); min-height: 76px; gap: 32px; }
body .dr-head__row > * { margin: 0; }
.dr-logo { flex: none; }
.dr-logo img { width: 164px !important; height: auto; display: block; }
.dr-nav { margin-left: auto !important; }
.dr-nav .wp-block-navigation__container { gap: 22px; }
.dr-nav .wp-block-navigation-item__content { color: var(--dr-mist) !important; text-decoration: none; padding: 10px 0 !important; border-bottom: 1px solid transparent; font-weight: 500; }
.dr-nav .wp-block-navigation-item__content:hover { color: var(--dr-chalk) !important; }
.dr-nav .wp-block-navigation-item__content[aria-current="page"], .dr-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--dr-chalk) !important; border-bottom-color: var(--dr-green); }
.dr-nav .dr-nav-extra { display: none; }
.dr-head__cta { flex: none; }
.dr-head__cta .wp-block-button__link { background: var(--dr-green); color: var(--dr-charcoal) !important; }
.dr-head__cta .wp-block-button__link:hover { background: #6CC470; }
.dr-nav .wp-block-navigation__responsive-container-open, .dr-nav .wp-block-navigation__responsive-container-close { color: var(--dr-chalk); }
.dr-nav .wp-block-navigation__responsive-container-open { min-height: 44px; min-width: 44px; justify-content: center; border: 1px solid #6E6768; border-radius: 2px; }

/* Collapse the menu below 1180px (core collapses only below 600px). */
@media (min-width: 600px) and (max-width: 1180px) {
	.dr-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.dr-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 1180px) {
	.dr-nav { order: 3; margin-left: 0 !important; }
	.dr-head__cta { margin-left: auto !important; }
}
.dr-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px clamp(16px, 5vw, 40px); }
.dr-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px; }
.dr-nav .is-menu-open .wp-block-navigation__container { gap: 4px !important; align-items: stretch !important; width: 100%; }
.dr-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid var(--dr-line-dk); }
.dr-nav .is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; color: var(--dr-chalk) !important; padding: 14px 0 !important; border: 0; width: 100%; }
.dr-nav .is-menu-open .dr-nav-extra { display: flex; }
.dr-nav .is-menu-open .dr-nav-extra--cta { border: 0; margin-top: 16px; }
.dr-nav .is-menu-open .dr-nav-extra--cta .wp-block-navigation-item__content { box-sizing: border-box; background: var(--dr-green); color: var(--dr-charcoal) !important; justify-content: center; text-align: center; padding: 14px 20px !important; font-weight: 600; font-size: 1rem; }
@media (max-width: 640px) {
	body .dr-util { display: none; }
	body .dr-head__cta { display: none; }
	.dr-logo img { width: 132px !important; }
	body .dr-head__row { min-height: 64px; }
	.dr-nav { margin-left: auto !important; }
}

/* ---------- Banner -------------------------------------------------------------------------- */

body .dr-hero { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(56px, 8vw, 120px); position: relative; }
.dr-hero h1 { margin: 0; }
.dr-hero:not(.dr-hero--home) h1 { font-size: clamp(2.5rem, 5.2vw, 4.75rem); line-height: 1.02; }
body .dr-hero__copy > * + * { margin-block-start: 24px; }
body .dr-hero__copy > .wp-block-buttons { margin-block-start: 36px; }
body .dr-hero__copy > .dr-crumb + h1 { margin-block-start: 16px; }
.dr-crumb { font-size: .875rem; font-weight: 600; margin: 0; }
.is-style-dr-dark .dr-crumb, .is-style-dr-dark .dr-crumb a { color: var(--dr-mist) !important; }
.dr-crumb a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.dr-crumb a::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--dr-arrow) center / contain no-repeat; mask: var(--dr-arrow) center / contain no-repeat; transform: scaleX(-1); }
.dr-crumb a:hover { color: var(--dr-chalk) !important; }
.dr-lede { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.65; max-width: 36em; }
.is-style-dr-dark .dr-lede { color: var(--dr-mist); }

/* Inner banners, in the style of the home banner: the photos fill the right of the banner behind
   the words. Where they meet the text they are softly blurred (a backdrop blur that fades out across
   the photo) and fade into charcoal. Two portrait photos are blended into each other side by side. */
body .dr-hero--photo { overflow: hidden; isolation: isolate; display: grid; align-content: center; min-height: clamp(440px, 58vh, 600px); padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(64px, 7vw, 104px); }
body .dr-hero--photo > .dr-wrap { width: 100%; }
body .dr-hero__grid > * { margin-block-start: 0; }
.dr-hero--photo .dr-hero__copy { position: relative; max-width: 660px; }
.dr-hero.dr-hero--photo h1 { font-size: clamp(2.25rem, 4.3vw, 4rem); line-height: 1.04; }
.dr-hero--service .dr-lede { font-size: clamp(1rem, 1.2vw, 1.125rem); }
body .dr-hero--service .dr-hero__copy > .dr-index__label { margin-block-start: 36px; }
body .dr-hero--photo .dr-hero__aside { position: absolute; top: 0; bottom: 0; right: 0; width: min(64%, 1080px); z-index: -1; margin: 0; overflow: hidden; background: var(--dr-graphite); }
.dr-hero__aside::before, .dr-hero__aside::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.dr-hero__aside::before { z-index: 2; -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
	-webkit-mask-image: linear-gradient(90deg, #000 0%, #000 18%, transparent 52%); mask-image: linear-gradient(90deg, #000 0%, #000 18%, transparent 52%); }
.dr-hero__aside::after { z-index: 3; background:
	linear-gradient(90deg, var(--dr-charcoal) 0%, rgba(35, 31, 32, .82) 16%, rgba(35, 31, 32, .4) 40%, rgba(35, 31, 32, .1) 68%, rgba(35, 31, 32, 0) 100%),
	linear-gradient(0deg, rgba(35, 31, 32, .5) 0%, rgba(35, 31, 32, 0) 30%); }
body .dr-hero__aside > .dr-hero__photo { position: absolute; inset: 0; margin: 0; z-index: 1; }
body .dr-hero__aside .dr-hero__photo img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; animation: dr-settle 1600ms var(--dr-ease) both; }
body .dr-hero__aside.is-duo > .dr-hero__photo:first-child { right: 46%; }
body .dr-hero__aside.is-duo > .dr-hero__photo:last-child { left: 40%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%); mask-image: linear-gradient(90deg, transparent 0%, #000 16%); }
.dr-hero--photo .dr-lede { color: #D9D4CF !important; }

/* "On this page" links, under the service banner buttons */
.dr-index__label { font-size: .8125rem; font-weight: 600; margin: 0; }
body .dr-hero__copy > .dr-index__label { margin-block-start: 48px; }
body .dr-hero__copy > .dr-index__label + .dr-index { margin-block-start: 12px; }
.is-style-dr-dark .dr-index__label { color: var(--dr-mist); }
body .dr-index { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
body .dr-index li { margin: 0; }
.dr-index a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--dr-line-dk); border-radius: 2px; color: var(--dr-chalk) !important; text-decoration: none; font-weight: 500; font-size: .875rem; transition: border-color 160ms var(--dr-ease), background-color 160ms var(--dr-ease); }
.dr-index a::after { content: ""; flex: none; width: 14px; height: 14px; background: var(--dr-green); -webkit-mask: var(--dr-arrow) center / contain no-repeat; mask: var(--dr-arrow) center / contain no-repeat; transform: rotate(90deg); }
.dr-index a:hover { border-color: var(--dr-mist); background: rgba(255, 255, 255, .04); }

@media (max-width: 860px) {
	/* Phones and tablets: the photos fill the top of the banner, the words sit below on charcoal. */
	body .dr-hero--photo { display: block; min-height: 0; padding-top: clamp(200px, 50vw, 340px); }
	body .dr-hero--photo .dr-hero__aside { bottom: auto; width: 100%; height: calc(clamp(200px, 50vw, 340px) + 64px); }
	.dr-hero__aside::before { -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 12%, transparent 42%); mask-image: linear-gradient(0deg, #000 0%, #000 12%, transparent 42%); }
	.dr-hero__aside::after { background: linear-gradient(180deg, rgba(35, 31, 32, .15) 0%, rgba(35, 31, 32, 0) 38%, rgba(35, 31, 32, .75) 78%, var(--dr-charcoal) 100%); }
	body .dr-hero__copy > .dr-index__label { margin-block-start: 36px; }
}

/* ---------- Home banner: full-bleed site photo, headline, and a rail of framed prints --------- */

body .dr-hero--home { overflow: hidden; isolation: isolate; padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(32px, 4vw, 56px); }
body .dr-hero--home > .dr-wrap { position: static; width: 100%; }
/* The photo sits in the "stage" with the words and runs from the top of the banner to a little way
   into the print rail, framed low so the Davina Remedial hoarding banner shows just above the prints.
   Sized by CSS alone (nothing shifts after load) and clipped, so the zoom-in on load never shows an edge. */
body .dr-hero__stage { position: relative; }
.dr-hero--home .dr-hero__media { position: absolute; z-index: -1; overflow: hidden; background: var(--dr-charcoal);
	top: calc(-1 * clamp(72px, 9vw, 128px) - 48px); bottom: calc(-1 * (clamp(40px, 5vw, 64px) + 72px)); left: calc(50% - 50vw); right: calc(50% - 50vw); }
.dr-hero__bg { position: absolute; top: 0; right: 0; height: 100%; width: min(58%, 940px); object-fit: cover; object-position: 50% 86%; transform-origin: 70% 60%; animation: dr-settle 1800ms var(--dr-ease) both; }
/* Dark behind the headline (top left), clear over the banner (bottom right). */
.dr-hero__media::after { content: ""; position: absolute; inset: 0; background:
	radial-gradient(ellipse 52% 62% at 24% 42%, rgba(35, 31, 32, .92) 0%, rgba(35, 31, 32, .7) 55%, rgba(35, 31, 32, 0) 100%),
	linear-gradient(90deg, var(--dr-charcoal) 0%, var(--dr-charcoal) 42%, rgba(35, 31, 32, .55) 50%, rgba(35, 31, 32, .12) 64%, rgba(35, 31, 32, 0) 80%),
	linear-gradient(0deg, var(--dr-charcoal) 0%, rgba(35, 31, 32, .6) 9%, rgba(35, 31, 32, 0) 24%); }
.dr-hero--home h1 { font-size: clamp(1.875rem, 6.1vw, 4.75rem); line-height: .98; letter-spacing: -0.045em; }
@media (max-width: 600px) { .dr-hero--home h1 { font-size: min(8.7vw, 2.5rem); } }
.dr-nowrap { white-space: nowrap; }
.dr-hero--home .dr-hero__copy { max-width: 860px; animation: dr-rise 900ms var(--dr-ease) 120ms both; }
.dr-hero--home .dr-lede { color: #D9D4CF !important; max-width: 30em; }

body .dr-rail { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); align-items: end; }
body .dr-rail > li { margin: 0; }
.dr-print figure { margin: 0; }
.dr-print__img { background: #F3F1EE; padding: clamp(5px, .5vw, 8px); box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 18px 40px -18px rgba(0, 0, 0, .7); }
.dr-print__img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.dr-print:nth-child(even) .dr-print__img img { aspect-ratio: 1 / 1; }
.dr-print figcaption { margin-top: 10px; font-size: .8125rem; line-height: 1.3; font-weight: 500; color: var(--dr-mist) !important; }
.dr-print figcaption span { color: var(--dr-green) !important; font-weight: 600; font-variant-numeric: tabular-nums; margin-right: 6px; }
.dr-print { animation: dr-rise 800ms var(--dr-ease) both; animation-delay: calc(360ms + var(--i, 0) * 80ms); }

/* Print hover: the print lifts off the wall, its shadow deepens, and a green rule draws under the
   caption. Transform and opacity only; the entry animation runs on the <li>, the lift on the <figure>. */
.dr-print figure { transition: transform 520ms var(--dr-ease); }
.dr-print__img { position: relative; }
.dr-print__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 60px -20px rgba(0, 0, 0, .9); transition: opacity 520ms var(--dr-ease); }
.dr-print figcaption { position: relative; padding-bottom: 8px; }
.dr-print figcaption::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--dr-green); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--dr-ease); }
@media (hover: hover) and (pointer: fine) {
	.dr-print:hover figure { transform: translateY(-8px); }
	.dr-print:hover .dr-print__img::after { opacity: 1; }
	.dr-print:hover figcaption::after { transform: scaleX(1); }
	.dr-print:hover figcaption { color: var(--dr-chalk) !important; }
}

@keyframes dr-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dr-settle { from { transform: scale(1.06); } to { transform: none; } }

@media (max-width: 900px) {
	body .dr-hero--home { min-height: 0; padding-top: clamp(260px, 62vw, 420px); }
	/* Phones: the photo fills the space above the headline, framed on the hoarding banner. */
	.dr-hero--home .dr-hero__media { top: calc(-1 * clamp(260px, 62vw, 420px) - 48px); bottom: auto; height: calc(clamp(260px, 62vw, 420px) + 120px); }
	.dr-hero__bg { width: 100%; height: 100%; object-position: 50% 100%; }
	.dr-hero__media::after { background: linear-gradient(180deg, rgba(35, 31, 32, .1) 0%, rgba(35, 31, 32, 0) 50%, rgba(35, 31, 32, .7) 82%, var(--dr-charcoal) 100%); }
	body .dr-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; align-items: flex-end;
		margin-left: calc(-1 * clamp(16px, 4vw, 40px)); margin-right: calc(-1 * clamp(16px, 4vw, 40px)); padding: 0 clamp(16px, 4vw, 40px) 4px; scroll-padding-inline: clamp(16px, 4vw, 40px); }
	body .dr-rail::-webkit-scrollbar { display: none; }
	body .dr-rail > li { flex: 0 0 min(46%, 220px); scroll-snap-align: start; }
}

/* ---------- Photos in sections --------------------------------------------------------------- */

/* Under a section heading. The photo fills the rest of the heading column, so both columns end
   level, and the column stops being sticky. */
body .dr-split:has(.dr-side-photo) { align-items: stretch; }
.dr-split__a:has(.dr-side-photo) { position: static; display: flex; flex-direction: column; }
body .dr-split__a > .dr-side-photo { flex: 1 1 auto; position: relative; min-height: 280px; margin: clamp(28px, 3vw, 40px) 0 0; }
.dr-side-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: var(--dr-graphite); }
@media (max-width: 860px) {
	body .dr-split__a > .dr-side-photo { flex: none; min-height: 0; }
	.dr-side-photo img { position: static; height: auto; aspect-ratio: 16 / 10; }
}

/* Photo alone on the left, copy on the right; the photo is as tall as the copy (home, "A builder's standard"). */
body .dr-pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: stretch; }
body .dr-pair > * { margin-block-start: 0; }
body .dr-pair.is-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
body .dr-pair.is-flip > .dr-pair__fig { order: 2; }
.dr-pair__body { align-self: center; }
.dr-pair__fig { position: relative; min-height: 380px; }
body .dr-pair__fig > figure { position: absolute; inset: 0; margin: 0; }
.dr-pair__fig img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; background: var(--dr-graphite); }
body .dr-pair__body > .dr-sec-head + * { margin-block-start: clamp(32px, 3.5vw, 48px); }
@media (max-width: 860px) {
	body .dr-pair, body .dr-pair.is-flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	body .dr-pair.is-flip > .dr-pair__fig { order: 0; }
	.dr-pair__fig { min-height: 0; }
	body .dr-pair__fig > figure { position: static; }
	.dr-pair__fig img { height: auto; aspect-ratio: 4 / 3; }
}

/* Carousel ("On site"): a row of photos at one height, running off the right edge of the page.
   Native scrolling with snap points (swipe and trackpad), plus mouse drag and arrow buttons from site.js. */
.dr-reel-sec { --dr-gut: max(clamp(16px, 4vw, 40px), calc((100vw - var(--dr-sbw, 0px) - 1200px) / 2)); --dr-reel-h: clamp(300px, 36vw, 520px); }
body .dr-reel-sec > .dr-reel { margin-block-start: clamp(32px, 4vw, 56px); }
body .dr-reel { display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--dr-gut);
	padding: 0 var(--dr-gut); scrollbar-width: none; -webkit-overflow-scrolling: touch; max-width: none !important; width: auto; }
body .dr-reel::-webkit-scrollbar { display: none; }
body .dr-reel > figure { flex: none; margin: 0; scroll-snap-align: start; height: var(--dr-reel-h); background: var(--dr-graphite); }
.dr-reel img { display: block; height: 100%; width: auto; max-width: none; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.dr-reel.is-draggable { cursor: grab; }
.dr-reel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.dr-reel.is-dragging img { pointer-events: none; }
.dr-reel:focus-visible { outline-offset: 4px; }
body .dr-reel-sec > .dr-reel__ui { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); max-width: none !important; margin-top: clamp(24px, 3vw, 36px); padding: 0 var(--dr-gut); }
.dr-reel__track { flex: 1; height: 2px; background: #CFCAC3; position: relative; overflow: hidden; }
.dr-reel__thumb { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--dr-ink); transform-origin: left; will-change: transform; }
.dr-reel__count { font: 600 .875rem/1 var(--dr-sans); font-variant-numeric: tabular-nums; color: var(--dr-muted); min-width: 4.5em; text-align: right; }
.dr-reel__btns { display: flex; gap: 8px; }
.dr-reel__btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--dr-ink); border-radius: 2px; background: transparent; color: var(--dr-ink); cursor: pointer; padding: 0;
	transition: background-color 160ms var(--dr-ease), color 160ms var(--dr-ease), opacity 160ms var(--dr-ease), transform 120ms var(--dr-ease); touch-action: manipulation; }
.dr-reel__btn svg { width: 18px; height: 18px; }
.dr-reel__btn:hover:not(:disabled) { background: var(--dr-ink); color: var(--dr-chalk); }
.dr-reel__btn:active:not(:disabled) { transform: scale(.94); }
.dr-reel__btn:disabled { opacity: .3; cursor: default; }
.dr-reel__btn--prev svg { transform: scaleX(-1); }
@media (max-width: 600px) { .dr-reel-sec { --dr-reel-h: min(300px, 64vw); } .dr-reel__count { display: none; } }

/* Featured project: the main photo, then two more from the same job under it. */
body .dr-project__fig > * + * { margin-block-start: clamp(10px, 1.2vw, 16px); }
body .dr-project__more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); }
body .dr-project__more > figure { margin: 0; }
.dr-project__more img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Three photos edge to edge between sections. */
body .dr-strip-sec { padding: 0; background: var(--dr-paper); }
body .dr-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
body .dr-strip > figure { margin: 0; }
.dr-strip img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
@media (max-width: 600px) { .dr-strip img { aspect-ratio: 3 / 4; } }

/* Process page: the steps beside two stacked photos. */
body .dr-process__fig--stack { display: grid; gap: clamp(12px, 1.4vw, 20px); }
body .dr-process__fig--stack > figure { margin: 0; }

/* A photo inside an article */
body .dr-prose > .dr-prose__img { margin-block: 36px; }
.dr-prose__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
body .dr-prose > .dr-related { margin-block-start: 16px; }


/* Process figure */
.dr-process__fig figure { margin: 0; }
.dr-process__fig img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Photos in a row of three (About; the home page's "On site" gallery wraps to a 3 x 3 grid) */
body .dr-band-sec { padding-top: 0; }
body .dr-wrap > .dr-sec-head + .dr-band { margin-block-start: clamp(32px, 4vw, 56px); }
body .dr-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
body .dr-band > * { margin: 0; }
.dr-band img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 600px) {
	body .dr-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body .dr-band > :first-child { grid-column: 1 / -1; }
	body .dr-band > :first-child img { aspect-ratio: 4 / 3; }
}

/* About: both story paragraphs at the same size */
.dr-story { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.7; max-width: 38em; }

/* Project gallery (core Gallery with lightbox) */
body .dr-gallery.wp-block-gallery { gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(32px, 4vw, 48px); }
body .dr-gallery.wp-block-gallery .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.dr-gallery .wp-block-image { cursor: zoom-in; }

/* ---------- Trust bar ----------------------------------------------------------------------- */

body .dr-trust-band { padding-top: 0; padding-bottom: 0; background: var(--dr-paper); border-bottom: 1px solid var(--dr-line); }
body .dr-trust-band--foot { border-top: 1px solid var(--dr-line); border-bottom: 0; }
body .dr-trust { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
body .dr-trust li { margin: 0; padding: 24px 24px 24px 30px; position: relative; font-size: .875rem; line-height: 1.45; color: var(--dr-muted); font-weight: 500; }
body .dr-trust li:first-child { padding-left: 30px; }
.dr-trust li + li { border-left: 1px solid var(--dr-line); }
body .dr-trust li + li { padding-left: 54px; }
.dr-trust li::before { content: ""; position: absolute; left: 0; top: 27px; width: 18px; height: 18px; background: var(--dr-green-dp); -webkit-mask: var(--dr-tick) center / contain no-repeat; mask: var(--dr-tick) center / contain no-repeat; }
.dr-trust li + li::before { left: 24px; }
.dr-trust strong { display: block; color: var(--dr-ink); font-weight: 600; }
@media (max-width: 860px) {
	body .dr-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body .dr-trust li:nth-child(3) { border-left: 0; padding-left: 30px; }
	.dr-trust li:nth-child(3)::before { left: 0; }
	.dr-trust li:nth-child(n+3) { border-top: 1px solid var(--dr-line); }
}
@media (max-width: 420px) {
	body .dr-trust li, body .dr-trust li + li { padding: 18px 8px 18px 28px; }
	.dr-trust li::before, .dr-trust li + li::before { left: 4px; top: 21px; }
	body .dr-trust li:nth-child(even) { padding-left: 34px; }
	.dr-trust li:nth-child(even)::before { left: 10px; }
}

/* ---------- Split sections ------------------------------------------------------------------ */

body .dr-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
/* Every second split on a page is mirrored: heading (and photo) on the right. */
body .dr-split.is-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
body .dr-split.is-flip > .dr-split__a { order: 2; }
body .dr-split > * { margin-block-start: 0; }
.dr-split__a { position: sticky; top: calc(var(--dr-head-h) + var(--wp-admin--admin-bar--height, 0px) + 24px); }
body .dr-split__b > * + * { margin-block-start: 24px; }
.dr-sec-head h2 { margin: 0; }
body .dr-sec-head > * + * { margin-block-start: 16px; }
.dr-sec-head p { color: var(--dr-muted); max-width: 46ch; }
.is-style-dr-dark .dr-sec-head p { color: var(--dr-mist); }
.dr-kicker { font-size: .9375rem; font-weight: 600; color: var(--dr-green-dp) !important; margin: 0; }
.is-style-dr-dark .dr-kicker { color: var(--dr-green) !important; }
.dr-note { color: var(--dr-muted); font-size: .9375rem; }
@media (max-width: 860px) {
	body .dr-split, body .dr-split.is-flip { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	body .dr-split.is-flip > .dr-split__a { order: 0; }
	.dr-split__a { position: static; }
}

/* ---------- Lists --------------------------------------------------------------------------- */

body .is-style-dr-rules, body .is-style-dr-ticks, body .is-style-dr-steps, body .dr-schedule, body .dr-facts,
body .dr-areas, body .dr-related, body .dr-foot__links { list-style: none; padding: 0; margin-left: 0; margin-right: 0; }
body .is-style-dr-rules li, body .is-style-dr-ticks li, body .is-style-dr-steps li, body .dr-facts li { margin: 0; }

/* Ruled list */
.is-style-dr-rules { border-top: 1px solid var(--dr-ink); }
.is-style-dr-rules li { padding: 16px 0; border-bottom: 1px solid var(--dr-line); font-weight: 500; }
.is-style-dr-rules li a { color: var(--dr-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.is-style-dr-rules li a::after { content: ""; width: 16px; height: 16px; flex: none; background: var(--dr-green-dp); -webkit-mask: var(--dr-arrow) center / contain no-repeat; mask: var(--dr-arrow) center / contain no-repeat; transition: transform 200ms var(--dr-ease); }
.is-style-dr-rules li a:hover { color: var(--dr-green-dp); }
.is-style-dr-rules li a:hover::after { transform: translateX(3px); }
.is-style-dr-dark .is-style-dr-rules { border-top-color: var(--dr-line-dk); }
.is-style-dr-dark .is-style-dr-rules li { border-bottom-color: var(--dr-line-dk); color: var(--dr-chalk); }
.dr-concrete .is-style-dr-rules li { border-bottom-color: #CFCAC3; }

/* Ticks */
.is-style-dr-ticks { border-top: 1px solid var(--dr-line); }
.is-style-dr-ticks li { position: relative; padding: 18px 0 18px 40px; border-bottom: 1px solid var(--dr-line); color: var(--dr-muted); }
.is-style-dr-ticks li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 18px; height: 18px; background: var(--dr-green-dp); -webkit-mask: var(--dr-tick) center / contain no-repeat; mask: var(--dr-tick) center / contain no-repeat; }
.is-style-dr-ticks strong { color: var(--dr-ink); font-weight: 600; }
.is-style-dr-ticks li:not(:has(strong)) { color: var(--dr-ink); font-weight: 500; }
.is-style-dr-dark .is-style-dr-ticks { border-top-color: var(--dr-line-dk); }
.is-style-dr-dark .is-style-dr-ticks li { border-bottom-color: var(--dr-line-dk); color: var(--dr-mist); }
.is-style-dr-dark .is-style-dr-ticks li:not(:has(strong)) { color: var(--dr-chalk); }
.is-style-dr-dark .is-style-dr-ticks li::before { background: var(--dr-green); }
.dr-concrete .is-style-dr-ticks li { border-bottom-color: #CFCAC3; }

/* Steps: a real sequence, numbered, on a level line that fills as you read */
.is-style-dr-steps { counter-reset: dr-step; position: relative; }
.is-style-dr-steps::before, .is-style-dr-steps::after { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--dr-line); }
.is-style-dr-steps::after { background: var(--dr-green-dp); transform-origin: top; transform: scaleY(var(--p, 1)); }
.js .is-style-dr-steps::after { transform: scaleY(var(--p, 0)); }
.is-style-dr-steps li { counter-increment: dr-step; position: relative; padding: 0 0 32px 64px; min-height: 40px; color: var(--dr-muted); }
.is-style-dr-steps li:last-child { padding-bottom: 0; }
.is-style-dr-steps li::before { content: counter(dr-step); position: absolute; left: 0; top: 0; z-index: 1; width: 40px; height: 40px; border-radius: 50%; box-sizing: border-box; display: grid; place-items: center; background: var(--dr-paper); border: 2px solid var(--dr-green-dp); color: var(--dr-green-dp); font: 600 .9375rem/1 var(--dr-sans); font-variant-numeric: tabular-nums; }
.dr-concrete .is-style-dr-steps li::before { background: var(--dr-concrete); }
.is-style-dr-steps strong { display: block; color: var(--dr-ink); font-weight: 600; font-size: 1.125rem; line-height: 1.4; padding-top: 7px; }
.is-style-dr-dark .is-style-dr-steps li { color: var(--dr-mist); }
.is-style-dr-dark .is-style-dr-steps li::before { background: var(--dr-charcoal); border-color: var(--dr-green); color: var(--dr-green); }
.is-style-dr-dark .is-style-dr-steps::before { background: var(--dr-line-dk); }
.is-style-dr-dark .is-style-dr-steps::after { background: var(--dr-green); }

/* Problem schedule: symptom, then the service that fixes it */
.dr-schedule { border-top: 1px solid var(--dr-ink); }
body .dr-schedule li { margin: 0; }
.dr-schedule a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 20px 8px 20px 0; border-bottom: 1px solid var(--dr-line); text-decoration: none; color: var(--dr-ink); transition: background-color 200ms var(--dr-ease), padding-left 0ms; }
.dr-schedule strong { font-weight: 500; font-size: 1.0625rem; line-height: 1.45; color: var(--dr-ink); }
.dr-schedule em { font-style: normal; font-weight: 600; font-size: .8125rem; line-height: 1.4; color: var(--dr-green-dp); text-align: right; display: inline-flex; align-items: center; gap: 8px; }
.dr-schedule em::after { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--dr-arrow) center / contain no-repeat; mask: var(--dr-arrow) center / contain no-repeat; transition: transform 200ms var(--dr-ease); }
.dr-schedule a:hover { background: linear-gradient(90deg, var(--dr-concrete), transparent); }
.dr-schedule a:hover em::after { transform: translateX(3px); }
.dr-schedule a:focus-visible { outline-offset: -2px; }
@media (max-width: 520px) { .dr-schedule a { grid-template-columns: minmax(0, 1fr); gap: 4px; } .dr-schedule em { text-align: left; } }
body .dr-photo-ask { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px; background: var(--dr-concrete); margin-block-start: 32px; }
body .dr-photo-ask > * { margin: 0; }
.dr-photo-ask p { max-width: 36em; }

/* Facts (label / value) */
.dr-facts { border-top: 1px solid var(--dr-ink); }
.dr-facts li { display: grid; grid-template-columns: minmax(90px, 32%) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--dr-line); font-size: .9375rem; line-height: 1.45; font-weight: 600; }
.dr-facts strong { font-weight: 500; color: var(--dr-muted); }
.dr-facts li > * { min-width: 0; overflow-wrap: anywhere; }
.dr-facts a { color: var(--dr-ink); }
.dr-concrete .dr-facts li { border-bottom-color: #CFCAC3; }
body .dr-facts--strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; }
body .dr-facts--strip li { display: block; border-bottom: 0; padding: 0 20px; border-left: 1px solid var(--dr-line); font-size: 1rem; }
body .dr-facts--strip li:first-child { border-left: 0; padding-left: 0; }
.dr-facts--strip strong { display: block; font-size: .8125rem; margin-bottom: 4px; }
body .dr-facts-band { padding-top: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--dr-line); }
@media (max-width: 860px) {
	body .dr-facts--strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
	body .dr-facts--strip li:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ---------- Process, project, services ------------------------------------------------------ */

body .dr-process { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
body .dr-process > * { margin-block-start: 0; }
body .dr-process__steps > * + * { margin-block-start: clamp(28px, 3vw, 40px); }
body .dr-process-long { max-width: 760px; }
body .dr-process-long > * + * { margin-block-start: 48px; }
.dr-steps--long li { padding-bottom: 40px; }
@media (max-width: 860px) { body .dr-process { grid-template-columns: minmax(0, 1fr); } }

body .dr-project { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
body .dr-project > * { margin-block-start: 0; }
.dr-project__img img { width: 100%; aspect-ratio: 794 / 595; object-fit: cover; display: block; }
.dr-project__text h3 { font-size: 1.375rem; line-height: 1.3; margin: 0; }
.dr-project__text h3 a { color: var(--dr-ink); text-decoration: none; }
.dr-project__text h3 a:hover { text-decoration: underline; }
.dr-project__text p { color: var(--dr-muted); }
body .dr-project__text > * + * { margin-block-start: 16px; }
body .dr-project__text > .dr-facts { margin-block-start: 24px; }
@media (max-width: 860px) { body .dr-project { grid-template-columns: minmax(0, 1fr); } }

body .dr-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--dr-ink); }
body .dr-services > * { margin-block-start: 0; }
.dr-service { position: relative; padding: 32px 32px 32px 0; border-bottom: 1px solid var(--dr-line); transition: background-color 200ms var(--dr-ease); }
.dr-service:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--dr-line); }
.dr-service h3 { margin: 0; font-size: 1.375rem; }
.dr-service__img { margin: 0 0 24px; overflow: hidden; }
.dr-service__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 600ms var(--dr-ease); }
.dr-service:hover .dr-service__img img { transform: scale(1.03); }
.dr-service h3 a { color: var(--dr-ink); text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.dr-service h3 a::after { content: ""; width: 18px; height: 18px; flex: none; background: var(--dr-green-dp); -webkit-mask: var(--dr-arrow) center / contain no-repeat; mask: var(--dr-arrow) center / contain no-repeat; transition: transform 200ms var(--dr-ease); }
.dr-service h3 a::before { content: ""; position: absolute; inset: 0; }
.dr-service p { color: var(--dr-muted); margin-top: 10px; }
.dr-service:hover h3 a::after { transform: translateX(4px); }
.dr-service--plain:hover { background: linear-gradient(180deg, transparent, var(--dr-concrete)); }
@media (max-width: 760px) {
	body .dr-services { grid-template-columns: minmax(0, 1fr); }
	.dr-service, .dr-service:nth-child(even) { padding: 24px 0; border-left: 0; }
}

/* Related links, areas */
.dr-related { border-top: 1px solid var(--dr-ink); }
body .dr-related li { margin: 0; border-bottom: 1px solid var(--dr-line); }
.dr-related a { display: flex; justify-content: space-between; padding: 16px 0; color: var(--dr-ink); text-decoration: none; font-weight: 600; }
.dr-related a::after { content: ""; width: 16px; height: 16px; align-self: center; background: var(--dr-green-dp); -webkit-mask: var(--dr-arrow) center / contain no-repeat; mask: var(--dr-arrow) center / contain no-repeat; }
body .dr-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--dr-ink); }
body .dr-areas li { margin: 0; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--dr-line); font: 600 clamp(1.2rem, 1.9vw, 1.5rem)/1.25 var(--dr-display); letter-spacing: -0.02em; }
@media (max-width: 760px) { body .dr-areas { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ (core Details) -------------------------------------------------------------- */

body .dr-faq { border-top: 1px solid var(--dr-ink); }
body .dr-faq > * + * { margin-block-start: 0; }
.dr-faq .wp-block-details { border-bottom: 1px solid var(--dr-line); padding: 0; }
.dr-concrete .dr-faq .wp-block-details { border-bottom-color: #CFCAC3; }
.dr-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; line-height: 1.45; }
.dr-faq summary::-webkit-details-marker { display: none; }
.dr-faq summary::after { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; background: var(--dr-green-dp); -webkit-mask: var(--dr-plus) center / contain no-repeat; mask: var(--dr-plus) center / contain no-repeat; transition: transform 240ms var(--dr-ease); }
.dr-faq details[open] summary::after { transform: rotate(45deg); }
.dr-faq summary:hover { color: var(--dr-green-dp); }
body .dr-faq details > p { margin: 0; padding: 0 0 20px; color: var(--dr-muted); max-width: 60ch; }

/* ---------- Call to action band ------------------------------------------------------------- */

body .dr-cta-band { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
body .dr-cta { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
body .dr-cta > * { margin: 0; }
.dr-cta__text { font: 700 clamp(1.5rem, 2.8vw, 2.25rem)/1.15 var(--dr-display); letter-spacing: -0.03em; color: var(--dr-chalk) !important; max-width: 24em; }
.dr-cta__text strong { font-weight: 700; }

/* ---------- Enquiry ------------------------------------------------------------------------- */

body .dr-enquiry { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
body .dr-enquiry > * { margin-block-start: 0; }
body .dr-enquiry__info > * + * { margin-block-start: 20px; }
body .dr-enquiry__info > .dr-facts { margin-block-start: 32px; }
.dr-enquiry__info h1 { font-size: clamp(2.4rem, 4.8vw, 4.2rem); }
.dr-enquiry__info .dr-lede { color: var(--dr-muted); }
@media (max-width: 960px) { body .dr-enquiry { grid-template-columns: minmax(0, 1fr); } }
body .dr-enquiry-band:first-child { padding-top: clamp(48px, 6vw, 88px); }

.dr-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; background: var(--dr-paper); padding: clamp(20px, 3vw, 40px); position: relative; }
.dr-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dr-form__alert { grid-column: 1 / -1; padding: 14px 16px; border: 1px solid var(--dr-error); background: #FDF3F2; color: var(--dr-error); font-weight: 600; font-size: .9375rem; }
.dr-field { display: grid; gap: 6px; align-content: start; margin: 0; }
.dr-field--full { grid-column: 1 / -1; }
.dr-field label, .dr-field legend, .dr-upload__label { font: 600 .875rem/1.4 var(--dr-sans); color: var(--dr-ink); padding: 0; }
.dr-req { color: var(--dr-muted); font-weight: 500; }
.dr-field input[type="text"], .dr-field input[type="tel"], .dr-field input[type="email"], .dr-field select, .dr-field textarea {
	width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #A8A29C; border-radius: 2px; background: #fff; color: var(--dr-ink);
	font: 400 1rem/1.4 var(--dr-sans); box-sizing: border-box; transition: border-color 160ms var(--dr-ease), box-shadow 160ms var(--dr-ease); }
.dr-field textarea { min-height: 128px; resize: vertical; }
.dr-field input:hover, .dr-field select:hover, .dr-field textarea:hover { border-color: var(--dr-ink); }
.dr-field input:focus, .dr-field select:focus, .dr-field textarea:focus { outline: none; border-color: var(--dr-green-dp); box-shadow: 0 0 0 3px rgba(46, 122, 58, .2); }
.dr-field.is-invalid input, .dr-field.is-invalid textarea { border-color: var(--dr-error); }
.dr-field__msg { font-size: .8125rem; color: var(--dr-error); font-weight: 500; min-height: 0; }
.dr-field__msg:empty { display: none; }
.dr-hint { display: block; font-size: .8125rem; color: var(--dr-muted); font-weight: 400; }
fieldset.dr-field { border: 0; padding: 0; min-width: 0; }
fieldset.dr-field legend { margin-bottom: 8px; }
.dr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-chips label { position: relative; }
.dr-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dr-chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid #A8A29C; border-radius: 2px; font: 500 .875rem/1 var(--dr-sans); cursor: pointer; background: #fff; transition: background-color 160ms var(--dr-ease), border-color 160ms var(--dr-ease), color 160ms var(--dr-ease); }
.dr-chips span:hover { border-color: var(--dr-ink); }
.dr-chips input:checked + span { background: var(--dr-charcoal); border-color: var(--dr-charcoal); color: var(--dr-chalk); }
.dr-chips input:focus-visible + span { outline: 2px solid var(--dr-green-dp); outline-offset: 2px; }
.dr-field .dr-drop { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 22px; border: 1px dashed #8E8883; border-radius: 2px; background: #fff; cursor: pointer; transition: border-color 160ms var(--dr-ease), background-color 160ms var(--dr-ease); }
.dr-drop:hover, .dr-drop.is-over { border-color: var(--dr-green-dp); background: #F4F9F4; }
.dr-drop svg { width: 28px; height: 28px; color: var(--dr-green-dp); }
.dr-drop b { display: block; font-size: .9375rem; }
.dr-drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dr-drop__input:focus-visible + .dr-thumbs, .dr-upload:focus-within .dr-drop { outline: 2px solid var(--dr-green-dp); outline-offset: 2px; }
.dr-thumbs { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.dr-thumbs:empty { display: none; }
.dr-thumbs li { position: relative; width: 84px; margin: 0; }
.dr-thumbs img, .dr-thumbs .dr-thumb-doc { width: 84px; height: 64px; object-fit: cover; display: grid; place-items: center; background: var(--dr-concrete); font: 600 .75rem/1 var(--dr-sans); color: var(--dr-muted); }
.dr-thumbs span { display: block; font-size: .6875rem; line-height: 1.3; color: var(--dr-muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-thumbs button { position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--dr-charcoal); color: var(--dr-chalk); font: 600 .875rem/1 var(--dr-sans); cursor: pointer; display: grid; place-items: center; }
.dr-thumbs button::after { content: ""; position: absolute; inset: -9px; }
.dr-thumbs button:hover { background: #3A3435; }
.dr-consent { display: grid !important; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-weight: 500 !important; font-size: .9375rem !important; cursor: pointer; }
.dr-consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--dr-charcoal); }
.dr-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.dr-form__note { color: var(--dr-muted); font-size: .875rem; }
.dr-form__send { cursor: pointer; border: 0; min-width: 200px; }
.dr-form__send[aria-busy="true"] { opacity: .75; cursor: progress; }
.dr-form__send[aria-busy="true"] span::after { content: "…"; }
@media (max-width: 600px) { .dr-form { grid-template-columns: minmax(0, 1fr); } .dr-form__send { width: 100%; } }

.dr-map { background: var(--dr-concrete); }
.dr-map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; display: block; filter: grayscale(.25); }

/* ---------- Article and legal pages --------------------------------------------------------- */

body .dr-prose { max-width: 720px; }
body .dr-prose > * + * { margin-block-start: 20px; }
body .dr-prose > h2 { margin-block-start: 48px; font-size: clamp(1.75rem, 3vw, 2.25rem); }
body .dr-prose > .wp-block-buttons { margin-block-start: 16px; }
body .dr-prose ul:not([class*="is-style"]):not(.dr-facts) { padding-left: 1.25em; }
body .dr-prose ul:not([class*="is-style"]):not(.dr-facts) li + li { margin-block-start: 8px; }
body .dr-legal > h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); margin-block-start: 44px; }
body .dr-legal > .dr-facts { margin-block-start: 16px; }
.dr-legal p:not(.dr-lede), .dr-legal li { color: var(--dr-muted); }
.dr-legal a { color: var(--dr-green-dp); }
.dr-callout { background: var(--dr-concrete); padding: 20px 24px; }
body .dr-callout > * { margin: 0; }
.dr-urgent { background: var(--dr-concrete); padding: 20px 24px; font-weight: 500; max-width: 720px; }
.dr-meta { color: var(--dr-mist) !important; font-size: .875rem; }

/* Project and article lists */
body .dr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 48px 32px; list-style: none; padding: 0; margin: 0; }
body .dr-cards > li { margin: 0; }
body .dr-cards > li > * + * { margin-block-start: 12px; }
body .dr-cards--feature > li:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
body .dr-cards--feature > li:first-child > * { margin: 0; }
.dr-cards--feature > li:first-child .dr-card__img img { aspect-ratio: 16 / 10; }
.dr-cards--feature > li:first-child .dr-card__title { font: 700 clamp(1.6rem, 2.8vw, 2.4rem)/1.12 var(--dr-display) !important; letter-spacing: -0.03em !important; }
body .dr-card__body > * + * { margin-block-start: 14px; }
.dr-card__text .wp-block-post-excerpt__more-link { display: inline-flex; margin-top: 8px; font-weight: 600; color: var(--dr-green-dp); }
@media (max-width: 860px) { body .dr-cards--feature > li:first-child { grid-template-columns: minmax(0, 1fr); } }
.dr-card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 600ms var(--dr-ease); }
.dr-card__img { overflow: hidden; margin: 0; }
body .dr-cards--articles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
@media (hover: hover) and (pointer: fine) { .dr-cards > li:hover .dr-card__img img { transform: scale(1.03); } }
@media (max-width: 760px) { body .dr-cards--articles { grid-template-columns: minmax(0, 1fr); } }
.dr-card__type, .dr-card__type a { font-size: .8125rem; font-weight: 600; color: var(--dr-green-dp); text-decoration: none; }
.dr-card__title { font: 600 1.25rem/1.35 var(--dr-sans) !important; letter-spacing: -0.005em !important; margin: 0; }
.dr-card__title a { color: var(--dr-ink); text-decoration: none; }
.dr-card__title a:hover { text-decoration: underline; }
.dr-card__text { color: var(--dr-muted); }
body .dr-article-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--dr-ink); max-width: 860px; }
body .dr-article-list > li { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--dr-line); }
.dr-article__title { font: 700 clamp(1.4rem, 2.4vw, 1.85rem)/1.2 var(--dr-display) !important; letter-spacing: -0.025em !important; margin: 0; }
.dr-article__title a { color: var(--dr-ink); text-decoration: none; }
.dr-article__text { color: var(--dr-muted); margin-top: 10px; }
.dr-article__text .wp-block-post-excerpt__more-link { font-weight: 600; color: var(--dr-green-dp); }

/* ---------- Footer -------------------------------------------------------------------------- */

body .dr-footer { padding: 0; }
body .dr-footer > * + * { margin-block-start: 0; }
body .dr-foot { padding-top: 64px; padding-bottom: 32px; font-size: .9375rem; }
body .dr-foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 48px; }
body .dr-foot__grid > * { margin-block-start: 0; }
body .dr-foot__col > * + * { margin-block-start: 16px; }
.dr-foot__logo img { width: 170px !important; }
.dr-foot p, .dr-foot li { color: var(--dr-mist) !important; }
.dr-foot .dr-foot__about strong { color: var(--dr-chalk) !important; display: block; }
.dr-foot a { color: var(--dr-mist) !important; text-decoration: underline; text-decoration-color: transparent; transition: color 160ms var(--dr-ease), text-decoration-color 160ms var(--dr-ease); }
.dr-foot a:hover { color: var(--dr-green) !important; text-decoration-color: var(--dr-green); }
.dr-foot__h { font-weight: 600; font-size: .875rem; color: var(--dr-chalk) !important; }
body .dr-foot__links li { margin: 0; padding: 4px 0; }
body .dr-foot__base { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; border-top: 1px solid var(--dr-line-dk); margin-block-start: 48px; padding-top: 24px; }
body .dr-foot__base > * { margin: 0; }
.dr-foot__legal { font-size: .8125rem; }
.dr-foot__badge { flex: none; line-height: 0; }
.dr-foot__badge a { display: inline-block; opacity: .9; transition: opacity .2s; }
.dr-foot__badge a:hover, .dr-foot__badge a:focus-visible { opacity: 1; }
.dr-foot__badge img { display: block; width: 180px; height: auto; }
.dr-social .wp-social-link { color: var(--dr-mist) !important; background: none !important; }
.dr-social .wp-social-link:hover { color: var(--dr-green) !important; }
.dr-social .wp-social-link a { color: inherit !important; padding: 8px; }
@media (max-width: 860px) { body .dr-foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dr-foot__col--about { grid-column: 1 / -1; } }

/* Phone call bar */
.dr-callbar { display: none; }
@media (max-width: 640px) {
	.dr-callbar { display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--dr-charcoal); border-top: 1px solid var(--dr-line-dk);
		padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
	.dr-callbar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 2px; font: 600 .9375rem/1 var(--dr-sans); text-decoration: none; transition: transform 120ms var(--dr-ease); }
	.dr-callbar a:active { transform: scale(.97); }
	.dr-callbar__call { color: var(--dr-chalk) !important; border: 1px solid #6E6768; }
	.dr-callbar__cta { background: var(--dr-green); color: var(--dr-charcoal) !important; }
	body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Reduced motion ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
	.dr-hero__bg, .dr-print, .dr-hero--home .dr-hero__copy { animation: none !important; opacity: 1; transform: none; }
	.dr-service:hover .dr-service__img img { transform: none; }
	.dr-print:hover figure, .dr-print figcaption::after { transform: none; }
	.dr-reel__btn:active:not(:disabled) { transform: none; }
	.js .is-style-dr-steps::after { transform: scaleY(1); }
	.wp-element-button:active, .wp-block-button__link:active, .dr-callbar a:active { transform: none; }
}
