/*
Theme Name: Old Oak Creative
Theme URI: https://oldoakcreative.co
Author: Old Oak Creative
Author URI: https://oldoakcreative.co
Description: Child theme for the Old Oak Creative agency site. Built on Trailhead Framework.
Template: trailhead-framework
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oldoak-creative
Tags: full-site-editing
*/

/* ── Base ─────────────────────────────────────────────────────────────────── */

body {
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Full-width sections sit flush against each other and the footer. */
.ooc-sections > .alignfull,
.wp-site-blocks > footer {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Anchor targets clear the sticky header. */
[id] {
	scroll-margin-top: 6rem;
}

/* ── Focus ring for keyboard focus only ───────────────────────────────────── */

/* The framework rings every :focus, so a mouse click (or the drawer moving
   focus to its first link on open) drew an orange box. Keyboard and other
   :focus-visible cases keep the ring. */
:where(.wp-site-blocks *:focus:not(:focus-visible)) {
	outline: none;
}

/* ── Eyebrow to heading: no gap ───────────────────────────────────────────── */

/* Lovable's eyebrows sit directly on their heading: .font-eyebrow sets
   margin-bottom: 0, overriding the mb-3 on each element. The patterns' inline
   margins (12px, 24px on heroes) and the layout's block gap are both undone. */
.wp-site-blocks .is-style-eyebrow {
	margin-bottom: 0 !important;
}

.wp-site-blocks .is-style-eyebrow + * {
	margin-block-start: 0;
}

/* ── h1 sizes ─────────────────────────────────────────────────────────────── */

/*
 * Lovable steps its h1s at breakpoints instead of scaling fluidly.
 * Hero pages: text-4xl md:text-5xl lg:text-6xl xl:text-7xl (36/48/60/72px).
 * Contact, Field Notes, Thank You: text-5xl md:text-6xl lg:text-7xl.
 * Services: text-5xl md:text-7xl.
 */
html body {
	--wp--preset--font-size--4-xl: 2.25rem;
}

.ooc-h1-lg,
.ooc-h1-services {
	font-size: 3rem !important;
}

@media (min-width: 768px) {
	html body {
		--wp--preset--font-size--4-xl: 3rem;
	}

	.ooc-h1-lg {
		font-size: 3.75rem !important;
	}

	.ooc-h1-services {
		font-size: 4.5rem !important;
	}
}

@media (min-width: 1024px) {
	html body {
		--wp--preset--font-size--4-xl: 3.75rem;
	}

	.ooc-h1-lg {
		font-size: 4.5rem !important;
	}
}

@media (min-width: 1280px) {
	html body {
		--wp--preset--font-size--4-xl: 4.5rem;
	}
}

/* ── Line breaking ────────────────────────────────────────────────────────── */

/* The framework sets text-wrap: pretty on text, which often pushes a word to
   an extra line. Lovable wraps normally; match it so copy breaks the same. */
h1, h2, h3, h4, h5, h6,
blockquote, caption, figcaption, p {
	text-wrap: wrap;
}

/* ── Line height per font size ────────────────────────────────────────────── */

/*
 * Body copy is 1.625 (Lovable's leading-relaxed, used on most 16px and all
 * 18px text). Lovable's small, XS and XL text keeps Tailwind's tighter
 * default leading instead.
 */
.has-xs-font-size { line-height: 1rem; }
.has-small-font-size { line-height: 1.25rem; }
.has-xl-font-size { line-height: 1.75rem; }

/* ── Page gutter ──────────────────────────────────────────────────────────── */

/* Lovable's container: 24px sides, 48px from 1024px (lg), content capped at
   1304px (theme.json wideSize). theme.json can't vary padding by breakpoint. */
@media (min-width: 1024px) {
	html body {
		--wp--style--root--padding-right: 3rem;
		--wp--style--root--padding-left: 3rem;
	}
}

/* Lovable's section rhythm, used on nearly every section: py-24 lg:py-32
   (96px, 128px from 1024px). The framework's spacing-7 and -8 are fluid
   clamps (96px and 144px at 1440); both become Lovable's step. */
html body {
	--wp--preset--spacing--7: 6rem;
	--wp--preset--spacing--8: 6rem;
}

@media (min-width: 1024px) {
	html body {
		--wp--preset--spacing--7: 8rem;
		--wp--preset--spacing--8: 8rem;
	}
}

/* Split-hero buttons stay on one row from 640px (Lovable's sm:flex-row with
   nowrap buttons), even where the row runs past the text column. */
@media (min-width: 640px) {
	.ooc-hero-split .wp-block-buttons {
		flex-wrap: nowrap;
	}

	.ooc-hero-split .wp-block-button__link {
		white-space: nowrap;
	}
}

/* Lovable's max-w-xl lede (hero paragraphs). */
.ooc-measure {
	max-width: 36rem;
}

/* Lovable's max-w-2xl section intros. */
.ooc-measure-2xl {
	max-width: 42rem;
	margin-inline: auto !important;
}

/* ── Columns stack until 1024px ──────────────────────────────────────────── */

/*
 * Lovable's two- and three-part layouts are lg:grid-cols-*, side by side
 * from 1024px; core Columns go side by side from 782px. .ooc-cols-md keeps
 * the 768px switch for the few md:grid-cols-* layouts (footer).
 */
@media (max-width: 1023px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile):not(.ooc-cols-md) {
		flex-wrap: wrap !important;
	}

	.wp-block-columns:not(.is-not-stacked-on-mobile):not(.ooc-cols-md) > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* Core stacks below 782px with flex-basis: 100% !important, which drops
   the footer's inline 2:1 widths, so they're restated for 768–781px. */
@media (min-width: 768px) and (max-width: 781px) {
	.wp-block-columns.ooc-cols-md {
		flex-wrap: nowrap !important;
	}

	.wp-block-columns.ooc-cols-md > .wp-block-column:first-child {
		flex-basis: 65.44% !important;
	}

	.wp-block-columns.ooc-cols-md > .wp-block-column:last-child {
		flex-basis: 30.88% !important;
	}
}

/* ── Responsive grids ─────────────────────────────────────────────────────── */

/*
 * Lovable's card grids step at its breakpoints: one column, two from 768px
 * (md), then two, three or four from 1024px (lg). Core's grid layout picks a
 * column count from a minimum width instead, which lands on 1 or 3 where
 * Lovable has 2 or 4.
 */
.ooc-grid-2,
.ooc-grid-3,
.ooc-grid-4 {
	grid-template-columns: minmax(0, 1fr) !important;
}

@media (min-width: 768px) {
	.ooc-grid-2,
	.ooc-grid-3,
	.ooc-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 1024px) {
	.ooc-grid-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}

	.ooc-grid-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

/* ── Full-width covers share the page gutter ──────────────────────────────── */

/*
 * Core gives covers a 1em padding, so full-width covers (heroes) sat 16px
 * from the edge on phones while every other section used the 24px root
 * padding. A constrained inner container then added the root padding again
 * (40px on the Field Notes hero, and 8px off the logo line on desktop).
 */
.wp-block-cover.alignfull {
	padding-right: var(--wp--style--root--padding-right);
	padding-left: var(--wp--style--root--padding-left);
}

.wp-block-cover.alignfull > .wp-block-cover__inner-container.has-global-padding {
	padding-right: 0;
	padding-left: 0;
}

/* A content position (e.g. bottom left) shrinks the inner container to its
   content; keep it full width so wide groups inside line up with the logo. */
/* Core doubles the class to set width: auto, so match its specificity. */
.wp-block-cover.alignfull.has-custom-content-position.has-custom-content-position > .wp-block-cover__inner-container {
	width: 100%;
}

/* ── Eyebrow (paragraph block style) ──────────────────────────────────────── */

/* Lovable's .font-eyebrow: 1.7rem at every breakpoint. Most of its eyebrows
   also set lowercase + tracking-wide; a few typed-lowercase ones don't, which
   only differs by ~0.7px of tracking. */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--eyebrow);
	font-size: 1.7rem;
	line-height: 1.5;
	letter-spacing: 0.025em;
	text-transform: lowercase;
}

/* ── Torn edge (group block style) ────────────────────────────────────────── */
/*
 * Two stacked masks above the section's top edge: a translucent white
 * "offset" layer, then the section's own background colour. The section is
 * lifted above its neighbour so the edge overlaps the previous block.
 */

.is-style-torn-edge {
	position: relative;
	z-index: 2;
}

.is-style-torn-edge::before,
.is-style-torn-edge::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: clamp(40px, 5.2vw, 75px);
	pointer-events: none;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}

.is-style-torn-edge::before {
	background-color: rgb(255 255 255 / 0.25);
	-webkit-mask-image: url(assets/images/torn-edge-shadow.svg);
	mask-image: url(assets/images/torn-edge-shadow.svg);
}

.is-style-torn-edge::after {
	background-color: inherit;
	-webkit-mask-image: url(assets/images/torn-edge-main.svg);
	mask-image: url(assets/images/torn-edge-main.svg);
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.wp-block-button__link {
	transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.wp-block-button:not(.is-style-outline):not(.is-style-ghost) .wp-block-button__link:hover {
	box-shadow: 0 16px 48px -12px rgb(40 40 39 / 0.15);
	transform: scale(1.02);
}

/* The framework's Outline style forces a transparent fill (!important), which
   also wipes out a background chosen in the editor. Keep a paper fill. */
.wp-block-button.is-style-outline .wp-block-button__link.has-base-background-color:not(:hover) {
	background-color: var(--wp--preset--color--base) !important;
}

/* Ghost button on a dark hero (Strategy "View Our Process"): Lovable's
   border-white/30 with a white/10 wash on hover instead of a solid fill. */
.wp-block-button.ooc-btn-ghost .wp-block-button__link {
	border-color: rgb(255 255 255 / 0.3) !important;
}

.wp-block-button.is-style-outline.ooc-btn-ghost .wp-block-button__link.has-white-color:hover {
	border-color: rgb(255 255 255 / 0.3) !important;
	background-color: rgb(255 255 255 / 0.1) !important;
	color: var(--wp--preset--color--white) !important;
}

/* Home's outline buttons are Lovable's border-black text-black, filling
   black on hover. */
.wp-block-button.is-style-outline.ooc-btn-black .wp-block-button__link {
	border-color: #000;
	color: #000 !important;
}

.wp-block-button.is-style-outline.ooc-btn-black .wp-block-button__link:hover {
	border-color: #000;
	background-color: #000 !important;
	color: var(--wp--preset--color--white) !important;
}

/* Outline buttons fill with their own text colour on hover. */
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--contrast) !important;
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--white) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link.has-white-color:hover {
	background-color: var(--wp--preset--color--white) !important;
	border-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast) !important;
}

/* Arrow (button block style) and arrow links. */
.is-style-arrow .wp-block-button__link,
.ooc-link-arrow a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.is-style-arrow .wp-block-button__link::after,
.ooc-link-arrow a::after {
	content: "";
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	background-color: currentColor;
	-webkit-mask: url(assets/icons/arrow-right.svg) center / contain no-repeat;
	mask: url(assets/icons/arrow-right.svg) center / contain no-repeat;
	transition: transform 0.3s;
}

.ooc-link-arrow a {
	text-decoration: none;
}

.ooc-link-arrow a::after {
	width: 1rem;
	height: 1rem;
}

.ooc-link-arrow a:hover::after {
	transform: translateX(0.25rem);
}

/* ── Header ───────────────────────────────────────────────────────────────── */

/*
 * Lovable's header is an 80px row plus a 1px bottom border (81px), the same
 * height in both states, with a 40px-tall logo that doesn't shrink. So the
 * framework's condensed header is turned off by making its condensed values
 * equal to the expanded ones.
 */
:root {
	--trailhead-logo-light-width: 120px;
	--trailhead-logo-width-condensed: 120px;
	--trailhead-header-padding-condensed: 0;
}

/* Core pads every group with a background; the 80px row sets the height. */
.wp-site-blocks > header .ooc-header {
	padding-top: 0;
	padding-bottom: 0;
	border-bottom: 1px solid transparent;
}

/*
 * Frosted bar on scroll (and on pages without a transparent header). The blur
 * sits on a ::before layer: backdrop-filter on the header itself would make it
 * the containing block for the fixed mobile drawer, clipping it to 81px.
 */
.wp-site-blocks > header .ooc-header {
	isolation: isolate;
}

.wp-site-blocks > header .ooc-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.wp-site-blocks > header:not(.trailhead-header--managed) .ooc-header,
.wp-site-blocks > header.is-scrolled .ooc-header {
	background-color: transparent !important;
	border-bottom-color: rgb(223 217 207 / 0.5);
}

.wp-site-blocks > header:not(.trailhead-header--managed) .ooc-header::before,
.wp-site-blocks > header.is-scrolled .ooc-header::before {
	background-color: rgb(250 248 245 / 0.8);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

/* The header sits flush on the first section on every page, not only on
   transparent-header ones (the root block gap left a 40px strip). */
.wp-site-blocks > header + * {
	margin-block-start: 0;
}

/*
 * Lovable's header stays at the top on every page. The framework only fixes
 * it on transparent-header (hero) pages; elsewhere the sticky inner bar sat
 * in a wrapper of its own height, so it scrolled away. Stick the wrapper.
 */
.wp-site-blocks > header:not(.trailhead-header--managed) {
	position: sticky;
	top: var(--wp-admin--admin-bar--position-offset, 0px);
	z-index: 100;
}

/* The frosted bar replaces the framework's scroll shadow. */
body.has-transparent-header .wp-site-blocks > header.is-scrolled {
	box-shadow: none;
}

/* Logo left, nav centred in the space between, CTA right. */
.ooc-header__row > .wp-block-navigation {
	flex: 1;
}

/*
 * "Services ⌄": a small chevron tight to the label. The framework gives every
 * button a 44px minimum; the toggle keeps a 24px target (WCAG 2.2 AA), with
 * the 12px chevron centred so it sits about 6px from the label as on Lovable.
 */
.ooc-header .wp-block-navigation-submenu {
	gap: 0;
}

.ooc-header .wp-block-navigation .wp-block-navigation-submenu__toggle {
	width: 1.5rem;
	min-width: 1.5rem;
	height: 1.5rem;
	min-height: 1.5rem;
	padding: 0;
	margin: 0;
}

.ooc-header .wp-block-navigation .wp-block-navigation-submenu__toggle svg {
	width: 0.75rem;
	height: 0.75rem;
	margin: 0;
	stroke: currentColor;
}

/* Lovable: muted links that darken on hover on the light bar, 80% white
   that goes full white over a hero. Core's doubled-class `color: inherit`
   needs matching specificity. */
.ooc-header .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	transition: color 0.2s;
}

.ooc-header .wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--contrast);
}

body.has-transparent-header .wp-site-blocks > header.trailhead-header--managed:not(.is-scrolled):not(:has(.is-menu-open)) .wp-block-navigation__container > li > a.wp-block-navigation-item__content {
	color: rgb(255 255 255 / 0.8) !important;
}

body.has-transparent-header .wp-site-blocks > header.trailhead-header--managed:not(.is-scrolled):not(:has(.is-menu-open)) .wp-block-navigation__container > li > a.wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--white) !important;
}

/* Services dropdown. */
.ooc-header .wp-block-navigation__submenu-container {
	min-width: 180px !important;
	padding-block: 0.5rem;
	border: 1px solid rgb(212 200 182 / 0.5) !important;
	border-radius: 4px;
	background-color: var(--wp--preset--color--base) !important;
	box-shadow: 0 8px 32px -8px rgb(40 40 39 / 0.12);
}

/* Lovable's items are 40px apart: 8px padding around a 24px line, no gap. */
.ooc-header .wp-block-navigation__submenu-container {
	gap: 0 !important;
}

.ooc-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	min-height: 0;
	padding: 0.5rem 1rem !important;
	line-height: 1.5;
}

.ooc-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background-color: var(--wp--preset--color--surface);
}

/*
 * The parent's transparent-header rule whitens every nav link, which also
 * hits the dropdown sitting on a light panel. Keep dropdown links dark.
 */
body.has-transparent-header .wp-site-blocks > header.trailhead-header--managed:not(.is-scrolled):not(:has(.is-menu-open)) .wp-block-navigation .wp-block-navigation__submenu-container a {
	color: var(--wp--preset--color--muted) !important;
}

/* ── Mobile drawer ────────────────────────────────────────────────────────── */

/*
 * Below 1024px (Lovable's lg breakpoint) the nav opens as Lovable's sheet: a
 * 300px (350px from 640px) Deep Blue panel that slides in from the right over
 * an 80% black backdrop, with the white logo, the links, the CTA, then phone,
 * email and social links. Services slides to a second panel (Back, All
 * Services, the four services). assets/js/header.js adds the backdrop, the
 * Back button, the panel switch and the slide-out on close.
 *
 * The extras live inside the Navigation block with .ooc-nav-drawer-only and
 * are hidden in the desktop bar. Core closes the <ul> around non-link blocks,
 * so the drawer is several stacked lists; a list holding only drawer items is
 * hidden as a whole.
 */
.ooc-header .wp-block-navigation__responsive-container:not(.is-menu-open) :is(
	.ooc-nav-drawer-only,
	.ooc-drawer-back,
	li:has(> .ooc-nav-drawer-only),
	.wp-block-navigation__container:not(:has(> li:not(.ooc-nav-drawer-only)))
) {
	display: none !important;
}

/* Hamburger: Lucide's three-line menu icon at 32px in a 48px button. */
.ooc-header .wp-block-navigation__responsive-container-open {
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-right: -0.5rem;
}

.ooc-header .wp-block-navigation__responsive-container-open svg {
	display: none;
}

.ooc-header .wp-block-navigation__responsive-container-open::before {
	content: "";
	width: 2rem;
	height: 2rem;
	background-color: currentColor;
	-webkit-mask: url(assets/icons/menu.svg) center / contain no-repeat;
	mask: url(assets/icons/menu.svg) center / contain no-repeat;
}

@media (max-width: 1023px) {
	.ooc-header__cta {
		display: none !important;
	}

	.ooc-header__row > .wp-block-navigation {
		flex: none;
	}

	/* Core switches to the overlay at 600px; hold it until 1024px. */
	.ooc-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.ooc-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* While open, the header (and so the drawer) sits above the admin bar. The
   body prefix outranks the framework's z-index on transparent headers. */
body .wp-site-blocks > header:has(.is-menu-open),
body .wp-site-blocks > header:has(.is-menu-open) .ooc-header {
	z-index: 100000;
}

/* Backdrop: added by header.js just before the drawer. */
.ooc-drawer-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background-color: rgb(0 0 0 / 0.8);
	animation: ooc-fade-in 150ms ease;
}

.ooc-drawer-backdrop:has(+ .is-menu-open) {
	display: block;
}

.ooc-drawer-backdrop.is-closing {
	opacity: 0;
	transition: opacity 150ms ease;
}

/* The sheet. */
.ooc-header .wp-block-navigation__responsive-container.is-menu-open {
	top: 0;
	bottom: 0;
	left: auto;
	width: min(300px, 100%);
	padding: 0;
	overflow: hidden;
	animation: ooc-sheet-in 500ms ease-in-out;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open.ooc-drawer-closing {
	transform: translateX(100%);
	transition: transform 300ms ease-in-out;
}

@media (min-width: 640px) {
	.ooc-header .wp-block-navigation__responsive-container.is-menu-open {
		width: 350px;
	}
}

@keyframes ooc-sheet-in {
	from { transform: translateX(100%); }
	to { transform: translateX(0); }
}

@keyframes ooc-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.ooc-header .wp-block-navigation__responsive-container.is-menu-open,
	.ooc-drawer-backdrop {
		animation: none;
	}

	.ooc-header .wp-block-navigation__responsive-container.is-menu-open.ooc-drawer-closing,
	.ooc-drawer-backdrop.is-closing {
		transition: none;
	}
}

/* Header area: white logo (32px tall) 40px down, then the panels 32px below. */
.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
	position: static;
	height: 100%;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
	position: static;
	height: 100%;
	margin-top: 0;
	padding-top: 2.5rem;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog::before {
	content: "";
	display: block;
	width: 96px;
	height: 2rem;
	margin: 0 1.5rem;
	/* --ooc-logo-white is the Media Library copy (inc/media.php), when imported. */
	background: var(--ooc-logo-white, url(assets/images/ooc_logo_2025_wide_left_white.png)) left center / contain no-repeat;
}

/* Close: Lucide X, 16px, in the top-right corner. */
.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	min-width: 2rem;
	height: 2rem;
	min-height: 2rem;
	padding: 0;
	color: var(--wp--preset--color--white);
	opacity: 0.9;
	transition: opacity 0.2s;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:hover {
	opacity: 1;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
	display: none;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close::before {
	content: "";
	width: 1rem;
	height: 1rem;
	background-color: currentColor;
	-webkit-mask: url(assets/icons/x.svg) center / contain no-repeat;
	mask: url(assets/icons/x.svg) center / contain no-repeat;
}

/*
 * Panels. The main panel is the whole content area; the Services sub-list is
 * pulled out to sit just past its right edge, and the content slides left by
 * its own width to bring it in. Whichever panel is off-screen is hidden once
 * the slide finishes, so it drops out of the tab order.
 */
.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	position: relative;
	align-items: stretch;
	gap: 0.75rem;
	margin-top: 2rem;
	padding: 0 1.5rem;
	transition: transform 300ms ease-out, visibility 0s;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open.ooc-drawer--services .wp-block-navigation__responsive-container-content {
	transform: translateX(-100%);
	visibility: hidden;
	transition: transform 300ms ease-out, visibility 0s 300ms;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
	position: static;
	align-items: stretch;
	gap: 0.75rem;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	position: static;
	align-items: stretch;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	min-height: 0;
	padding: 0;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 500;
	line-height: 1.75rem;
	transition: color 0.15s;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	color: rgb(255 255 255 / 0.7);
}

/* Services row: label left, chevron right; the whole row opens the panel. */
.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu {
	flex-direction: row;
	align-items: center;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content {
	flex: 1;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 2rem;
	min-width: 2rem;
	height: 1.75rem;
	min-height: 1.75rem;
	margin: 0;
	padding: 0;
	color: var(--wp--preset--color--white);
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle svg {
	display: none;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle::before {
	content: "";
	width: 1.25rem;
	height: 1.25rem;
	background-color: currentColor;
	-webkit-mask: url(assets/icons/chevron-right.svg) center / contain no-repeat;
	mask: url(assets/icons/chevron-right.svg) center / contain no-repeat;
}

/* Services panel. */
.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	position: absolute !important;
	top: 0 !important;
	right: auto !important;
	left: 100% !important;
	box-sizing: border-box;
	width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	display: flex !important;
	flex-direction: column;
	gap: 0.75rem !important;
	padding: 0 1.5rem !important;
	border: 0 !important;
	box-shadow: none;
	background-color: transparent !important;
	opacity: 1 !important;
	visibility: hidden !important;
	overflow: visible !important;
	align-items: flex-start !important;
	text-align: left;
	transition: visibility 0s 300ms;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container > .wp-block-navigation-item {
	justify-content: flex-start;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open.ooc-drawer--services .wp-block-navigation__submenu-container {
	visibility: visible !important;
	transition: visibility 0s;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0 !important;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.75rem;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background-color: transparent;
	color: rgb(255 255 255 / 0.7);
}

/* Back: small caps-style label with a left arrow. */
.ooc-drawer-back button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 0;
	min-width: 0;
	padding: 0;
	border: 0;
	background: none;
	color: rgb(255 255 255 / 0.7);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.25rem;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.15s;
}

.ooc-drawer-back button:hover {
	color: var(--wp--preset--color--white);
}

.ooc-drawer-back button::before {
	content: "";
	width: 1rem;
	height: 1rem;
	background-color: currentColor;
	-webkit-mask: url(assets/icons/arrow-left.svg) center / contain no-repeat;
	mask: url(assets/icons/arrow-left.svg) center / contain no-repeat;
}

/* Full-width CTA, 48px tall. */
.ooc-header .wp-block-navigation__responsive-container.is-menu-open .ooc-nav-cta {
	margin-top: 0.5rem;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .ooc-nav-cta .wp-block-button__link {
	justify-content: center;
	min-height: 3rem;
	padding: 0.75rem 2rem;
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 500;
}

/* Phone and email under a rule, with Lucide icons. */
.ooc-header .wp-block-navigation__responsive-container.is-menu-open .ooc-nav-contact--phone {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgb(255 255 255 / 0.15);
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .ooc-nav-contact .wp-block-navigation-item__content {
	gap: 0.5rem;
	color: rgb(255 255 255 / 0.8);
	font-size: var(--wp--preset--font-size--base);
	font-weight: 400;
	line-height: 1.5rem;
	word-break: break-all;
}

.ooc-header .wp-block-navigation__responsive-container.is-menu-open .ooc-nav-contact .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--white);
}

.ooc-nav-contact .wp-block-navigation-item__content::before {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	background-color: currentColor;
	-webkit-mask: var(--ooc-icon) center / contain no-repeat;
	mask: var(--ooc-icon) center / contain no-repeat;
}

.ooc-nav-contact--phone { --ooc-icon: url(assets/icons/phone.svg); }
.ooc-nav-contact--mail { --ooc-icon: url(assets/icons/mail.svg); }

/* ── Outline social icons (Lucide, in 40px rings) ─────────────────────────── */

.ooc-social-outline {
	--ooc-ring: rgb(255 255 255 / 0.25);
	--ooc-ring-fg: rgb(255 255 255 / 0.8);
	gap: 0.75rem !important;
	margin-top: var(--ooc-social-mt, 0.5rem) !important;
}

/* Footer: Lovable's fainter rings, 24px below the email. */
.ooc-social-outline.ooc-social-footer {
	--ooc-ring: rgb(250 248 245 / 0.2);
	--ooc-ring-fg: rgb(250 248 245 / 0.7);
	--ooc-social-mt: 1.5rem;
}

.ooc-social-outline .wp-social-link {
	background: none !important;
}

.ooc-social-outline .wp-block-social-link-anchor {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0 !important;
	border: 1px solid var(--ooc-ring);
	border-radius: 9999px;
	color: var(--ooc-ring-fg);
	transition: color 0.2s, border-color 0.2s;
}

.ooc-social-outline .wp-block-social-link-anchor:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.ooc-social-outline .wp-block-social-link-anchor svg {
	display: none;
}

.ooc-social-outline .wp-block-social-link-anchor::before {
	content: "";
	width: 1rem;
	height: 1rem;
	background-color: currentColor;
	-webkit-mask: var(--ooc-icon) center / contain no-repeat;
	mask: var(--ooc-icon) center / contain no-repeat;
}

.ooc-social-outline .wp-social-link-instagram { --ooc-icon: url(assets/icons/instagram.svg); }
.ooc-social-outline .wp-social-link-facebook { --ooc-icon: url(assets/icons/facebook.svg); }
.ooc-social-outline .wp-social-link-linkedin { --ooc-icon: url(assets/icons/linkedin.svg); }

/* "Take the First Step" with the hiker icon. */
.ooc-hiker .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.ooc-hiker .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 1rem;
	height: 1.5rem;
	background-color: currentColor;
	-webkit-mask: url(assets/images/hiker.svg) center / contain no-repeat;
	mask: url(assets/images/hiker.svg) center / contain no-repeat;
}


/* ── Section details ──────────────────────────────────────────────────────── */

.ooc-bg-mountain-sketch {
	background-image: url(assets/images/mountain-range-sketch.webp);
	background-position: bottom center;
	background-repeat: no-repeat;
	background-size: 100% auto;
}

/*
 * Service cards: Lovable's p-8 lg:p-10 and text-xl lg:text-2xl titles. The
 * patterns set the desktop values inline, so phones got 40px padding and
 * 24px titles, which wrapped. .ooc-card-pad is the padding alone.
 */
.ooc-card-pad,
.ooc-service-card {
	padding: 2rem !important;
}

.ooc-service-card h3 {
	font-size: 1.25rem !important;
	line-height: 1.75rem;
}

/* 16px service lists (Branding) use a 24px line; small ones keep 20px. */
.ooc-service-card .ooc-dots:not(.has-small-font-size) li {
	line-height: 1.5rem;
}

/* Stacked card columns: Lovable's gap-8 (core's default row gap is 48px). */
.ooc-service-card .wp-block-columns {
	row-gap: 2rem;
}

@media (min-width: 1024px) {
	.ooc-card-pad,
	.ooc-service-card {
		padding: 2.5rem !important;
	}

	.ooc-service-card h3 {
		font-size: 1.5rem !important;
		line-height: 2rem;
	}
}

/* Home solution callout: Lovable's p-10 lg:p-12. */
.ooc-callout {
	padding: 2.5rem !important;
}

@media (min-width: 1024px) {
	.ooc-callout {
		padding: 3rem !important;
	}
}

/* Obstacle list: the X tile keeps its square in the no-wrap row on phones. */
.ooc-x-tile {
	flex-shrink: 0;
}

/* Each column of client logos: Lovable's min-h-[400px] with justify-around. */
.ooc-logo-col {
	justify-content: space-around !important;
	min-height: 400px;
}

/* Client logos keep their aspect ratio inside a fixed height. */
.ooc-logo img {
	width: auto !important;
	max-width: 100%;
	max-height: 6rem;
	object-fit: contain;
}

/* "Your Path Forward" intro: centred when stacked, right-aligned beside the
   steps from 1024px. */
.ooc-path-intro {
	text-align: center;
}

.ooc-path-intro .wp-block-buttons {
	justify-content: center;
}

@media (min-width: 1024px) {
	.ooc-path-intro {
		text-align: right;
	}

	.ooc-path-intro .wp-block-buttons {
		justify-content: flex-end;
	}
}

/* Hidden while columns are stacked (below 1024px, as on Lovable). */
@media (max-width: 1023px) {
	.ooc-hide-mobile {
		display: none !important;
	}
}

.ooc-pin img {
	box-sizing: border-box;
	width: 3.5rem !important;
	height: 3.5rem !important;
	padding: 1rem;
	border-radius: 50%;
	background-color: var(--wp--preset--color--surface);
}

.ooc-step-text {
	padding-left: 4.5rem;
}

/* Service cards on the mountain cover. */
.ooc-card {
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.ooc-card > :last-child {
	margin-top: auto;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

/* Footer columns: Lovable's 3-column grid (2 + 1) with a 48px gap, so the
   column widths are set to add up exactly with the gap (65.44% + 30.88%). */
.ooc-icon-phone,
.ooc-icon-mail {
	line-height: 1.5rem;
}

.ooc-icon-phone a,
.ooc-icon-mail a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	word-break: break-all;
}

.ooc-icon-phone a::before,
.ooc-icon-mail a::before {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	background-color: currentColor;
	-webkit-mask: center / contain no-repeat;
	mask: center / contain no-repeat;
}

.ooc-icon-phone a::before {
	-webkit-mask-image: url(assets/icons/phone.svg);
	mask-image: url(assets/icons/phone.svg);
}

.ooc-icon-mail a::before {
	-webkit-mask-image: url(assets/icons/mail.svg);
	mask-image: url(assets/icons/mail.svg);
}

/* Lovable's footer blurb is max-w-sm (24rem). */
.ooc-footer-blurb {
	max-width: 24rem;
}

/* Legal links at 60% with the "·" between them at 30%, 16px each side. */
.ooc-footer-legal a {
	color: rgb(250 248 245 / 0.6);
	text-decoration: none;
	transition: color 0.2s;
}

.ooc-footer-legal a:first-child {
	margin-right: 0.75rem;
}

.ooc-footer-legal a:last-child {
	margin-left: 0.75rem;
}

.ooc-footer-legal a:hover {
	color: var(--wp--preset--color--primary);
}

.wp-site-blocks footer a:hover {
	color: var(--wp--preset--color--primary) !important;
}

.ooc-social .wp-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid rgb(250 248 245 / 0.2);
	border-radius: 50%;
	transition: border-color 0.2s, color 0.2s;
}

.ooc-social .wp-social-link .wp-block-social-link-anchor {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
}

.ooc-social .wp-social-link svg {
	width: 1rem;
	height: 1rem;
}

.ooc-social .wp-social-link:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary) !important;
	transform: none;
}

/* ── Inner pages ──────────────────────────────────────────────────────────── */

:root {
	--ooc-border: rgb(223 217 207 / 0.5);
	--ooc-shadow-soft: 0 4px 20px -4px rgb(40 40 39 / 0.08);
	--ooc-shadow-card: 0 8px 32px -8px rgb(40 40 39 / 0.12);
	--ooc-tint: rgb(222 58 7 / 0.1);
}

@media (max-width: 1023px) {
	.ooc-hide-below-lg {
		display: none !important;
	}
}

/* Accent words in headings ("Strategy That Turns *Vision* Into Momentum"). */
.wp-block-heading em,
.ooc-quote em {
	font-style: italic;
}

/* Hairline that fades out at both ends. */
.wp-block-separator.ooc-fade-rule {
	max-width: 42rem;
	height: 1px;
	margin: 4rem auto 0;
	border: 0;
	background: linear-gradient(to right, transparent, rgb(223 217 207), transparent);
	opacity: 1;
}

.ooc-shadow-soft {
	box-shadow: var(--ooc-shadow-soft);
}

.ooc-shadow-card {
	box-shadow: var(--ooc-shadow-card);
}

.ooc-hover-shadow {
	transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}

.ooc-hover-shadow:hover {
	box-shadow: var(--ooc-shadow-card);
}

/* Trail-map background behind the service cards; --fade whitens the top. */
.ooc-bg-trail {
	background-image: url(assets/images/strategy-services-bg.webp);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.ooc-bg-trail--fade {
	background-image:
		linear-gradient(to bottom, #fff 0%, rgb(255 255 255 / 0.85) 15%, rgb(255 255 255 / 0) 35%),
		url(assets/images/strategy-services-bg.webp);
}

/*
 * Charcoal torn edge rising from the footer into the last section. The
 * section opts in with .ooc-edge-footer (and leaves room for the edge in its
 * bottom padding); the edge is drawn on the footer so the section's own
 * pseudo-elements stay free for a torn top edge.
 */
.wp-site-blocks:has(.ooc-edge-footer) > footer {
	position: relative;
}

.wp-site-blocks:has(.ooc-edge-footer) > footer::before,
.wp-site-blocks:has(.ooc-edge-footer) > footer::after {
	content: "";
	position: absolute;
	z-index: 3;
	left: 0;
	right: 0;
	bottom: 100%;
	height: clamp(40px, 5.2vw, 75px);
	pointer-events: none;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}

.wp-site-blocks:has(.ooc-edge-footer) > footer::before {
	background-color: rgb(255 255 255 / 0.25);
	-webkit-mask-image: url(assets/images/torn-edge-shadow.svg);
	mask-image: url(assets/images/torn-edge-shadow.svg);
}

.wp-site-blocks:has(.ooc-edge-footer) > footer::after {
	background-color: var(--wp--preset--color--contrast);
	-webkit-mask-image: url(assets/images/torn-edge-main.svg);
	mask-image: url(assets/images/torn-edge-main.svg);
}

/* ── Icon badges ──────────────────────────────────────────────────────────── */
/* Icon image inside a tinted circle (default) or rounded square. */

.ooc-badge {
	flex-shrink: 0;
}

.ooc-badge img {
	box-sizing: border-box;
	width: 3.5rem !important;
	height: 3.5rem !important;
	padding: 0.875rem;
	border-radius: 50%;
	background-color: var(--ooc-tint);
}

.ooc-badge--square img {
	width: 3rem !important;
	height: 3rem !important;
	padding: 0.75rem;
	border-radius: 0.75rem;
}

.ooc-badge--sm img {
	width: 2.5rem !important;
	height: 2.5rem !important;
	padding: 0.625rem;
	border-radius: 0.5rem;
}

.ooc-badge--lg img {
	width: 4rem !important;
	height: 4rem !important;
	padding: 1.125rem;
}

.ooc-badge--blue img {
	background-color: rgb(99 127 131 / 0.1);
}

.ooc-badge--charcoal img {
	background-color: rgb(40 40 39 / 0.1);
}

/* ── Lists ────────────────────────────────────────────────────────────────── */

.ooc-checklist,
.ooc-dots {
	padding-left: 0;
	list-style: none;
}

.ooc-checklist li {
	position: relative;
	padding-left: 2.5rem;
}

.ooc-checklist li + li {
	margin-top: 1rem;
}

/* Circled check in the brand colour; --blue and --tan swap the colour. */
.ooc-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 1.5rem;
	height: 1.5rem;
	background-color: var(--ooc-check, var(--wp--preset--color--primary));
	-webkit-mask: url(assets/icons/circle-check.svg) center / contain no-repeat;
	mask: url(assets/icons/circle-check.svg) center / contain no-repeat;
}

.ooc-checklist--tan {
	--ooc-check: var(--wp--preset--color--surface);
}

/* Plain check inside a tinted circle. */
.ooc-checklist--badge li::before {
	background-color: var(--ooc-check-tint, var(--ooc-tint));
	-webkit-mask: none;
	mask: none;
	border-radius: 50%;
}

.ooc-checklist--badge li::after {
	content: "";
	position: absolute;
	left: 0.25rem;
	top: calc(0.1em + 0.25rem);
	width: 1rem;
	height: 1rem;
	background-color: var(--ooc-check, var(--wp--preset--color--primary));
	-webkit-mask: url(assets/icons/check.svg) center / contain no-repeat;
	mask: url(assets/icons/check.svg) center / contain no-repeat;
}

.ooc-checklist--blue {
	--ooc-check: var(--wp--preset--color--secondary);
	--ooc-check-tint: rgb(99 127 131 / 0.1);
}

@media (min-width: 600px) {
	.ooc-checklist--cols {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}

	.ooc-checklist--cols li + li {
		margin-top: 0;
	}
}

.ooc-dots li {
	position: relative;
	padding-left: 1rem;
}

.ooc-dots li + li {
	margin-top: 0.5rem;
}

.ooc-dots li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.65em;
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 50%;
	background-color: var(--wp--preset--color--primary);
}

/* ── Process timelines ────────────────────────────────────────────────────── */
/*
 * .ooc-timeline: alternating steps either side of a centre line (Strategy).
 * .ooc-steps: a single left-hand line of numbered steps (Our Story).
 * Each step's first paragraph is its number.
 */

.ooc-timeline__step {
	position: relative;
	padding-left: 4rem;
}

.ooc-step-num + * {
	margin-block-start: 0; /* the number is out of flow */
}

.ooc-timeline__step > .ooc-step-num {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin: 0;
	border-radius: 50%;
	background-color: var(--ooc-tint);
	color: var(--wp--preset--color--primary);
	font-weight: 500;
}

@media (min-width: 1024px) {
	.ooc-timeline {
		position: relative;
		gap: 0 !important;
	}

	.ooc-timeline::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: 50%;
		width: 1px;
		background-color: rgb(223 217 207);
	}

	/* Lovable: two 612px columns with an 80px gap, so 40px each side of
	   the line, and the step text capped at 28rem (max-w-md). */
	.ooc-timeline__step {
		box-sizing: border-box;
		width: 50%;
		margin: 0 !important;
		padding: 1rem 2.5rem 1rem 0;
		text-align: right;
	}

	.ooc-timeline__step > p:last-child {
		max-width: 28rem;
		margin-left: auto;
	}

	.ooc-timeline__step:nth-child(even) {
		margin-left: 50% !important;
		padding: 1rem 0 1rem 2.5rem;
		text-align: left;
	}

	.ooc-timeline__step:nth-child(even) > p:last-child {
		margin-left: 0;
	}

	.ooc-timeline__step > .ooc-step-num {
		z-index: 1;
		top: 50%;
		left: auto;
		right: -1.75rem;
		box-sizing: border-box;
		width: 3.5rem;
		height: 3.5rem;
		border: 2px solid var(--wp--preset--color--primary);
		background-color: var(--wp--preset--color--white);
		transform: translateY(-50%);
	}

	.ooc-timeline__step:nth-child(even) > .ooc-step-num {
		left: -1.75rem;
		right: auto;
	}
}

.ooc-steps__step {
	position: relative;
	padding-left: 4.25rem;
	padding-bottom: 2.5rem;
}

.ooc-steps__step::before {
	content: "";
	position: absolute;
	top: 3rem;
	bottom: 0;
	left: 1.35rem;
	width: 1px;
	background-color: rgb(223 217 207);
}

.ooc-steps__step:last-child::before {
	display: none;
}

.ooc-steps__step > .ooc-step-num {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	border-radius: 50%;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */

/* Whole card is clickable through its heading link. */
.ooc-link-card {
	position: relative;
	transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.ooc-link-card .wp-block-heading a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.ooc-link-card .wp-block-heading a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.ooc-link-card:hover {
	border-color: var(--wp--preset--color--primary) !important;
	box-shadow: var(--ooc-shadow-card);
}

.ooc-link-card:hover .wp-block-heading a {
	color: var(--wp--preset--color--primary);
}

.ooc-link-card:has(:focus-visible) {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.ooc-link-card .wp-block-heading a:focus {
	outline: none;
}

/* "Learn more" with a trailing arrow, inside a link card. */
.ooc-more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.ooc-more::after {
	content: "";
	width: 1rem;
	height: 1rem;
	background-color: currentColor;
	-webkit-mask: url(assets/icons/arrow-right.svg) center / contain no-repeat;
	mask: url(assets/icons/arrow-right.svg) center / contain no-repeat;
	transition: transform 0.3s;
}

.ooc-link-card:hover .ooc-more::after {
	transform: translateX(0.25rem);
}

/* Charcoal service cards on the Services page, with the topo map showing through. */
.ooc-topo-card {
	overflow: hidden;
	isolation: isolate;
}

.ooc-topo-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url(assets/images/topo-map.webp) center / cover no-repeat;
	filter: invert(1);
	mix-blend-mode: screen;
	opacity: 0.25;
	pointer-events: none;
}

.ooc-topo-card:hover {
	border-color: var(--wp--preset--color--accent) !important;
}

.ooc-topo-card:hover .wp-block-heading a,
.ooc-topo-card:hover .ooc-more {
	color: var(--wp--preset--color--accent);
}

/* Coloured bar across the top of an audience card. */
.ooc-bar-top {
	position: relative;
	overflow: hidden;
}

.ooc-bar-top::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 0.375rem;
	background-color: var(--ooc-bar, var(--wp--preset--color--primary));
}

.ooc-bar-top--charcoal {
	--ooc-bar: var(--wp--preset--color--contrast);
}

.ooc-lift {
	transition: box-shadow 0.3s, transform 0.3s;
}

.ooc-lift:hover {
	transform: translateY(-0.25rem);
	box-shadow: 0 16px 48px -12px rgb(40 40 39 / 0.15);
}

/* Photo that fills a fixed-height frame. */
.ooc-photo img {
	width: 100%;
	height: var(--ooc-photo-height, 30rem) !important;
	object-fit: cover;
}

.ooc-photo--tall {
	--ooc-photo-height: 32.5rem;
}

/* Pull quote with a large faded quotation mark behind it. */
.ooc-quote {
	position: relative;
}

.ooc-quote::before {
	content: "\201C";
	position: absolute;
	top: -3.5rem;
	left: 50%;
	transform: translateX(-50%);
	color: rgb(222 58 7 / 0.2);
	font-family: var(--wp--preset--font-family--veneer);
	font-size: 6rem;
	font-style: normal;
	line-height: 1;
}

/* Button icons: mail and calendar on Contact, layers on Our Story. */
.ooc-btn-icon .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.ooc-btn-icon .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	background-color: currentColor;
	-webkit-mask: var(--ooc-btn-icon) center / contain no-repeat;
	mask: var(--ooc-btn-icon) center / contain no-repeat;
}

.ooc-btn-icon--mail {
	--ooc-btn-icon: url(assets/icons/mail.svg);
}

.ooc-btn-icon--calendar {
	--ooc-btn-icon: url(assets/icons/calendar.svg);
}

.ooc-btn-icon--layers {
	--ooc-btn-icon: url(assets/icons/layers.svg);
}

/* Charcoal button on the orange CTA band. */
.wp-block-button .wp-block-button__link.has-contrast-background-color:hover {
	background-color: rgb(40 40 39 / 0.9) !important;
}

/* 404: Lovable's underlined "Return to Home" link. */
.ooc-underline-link a {
	color: var(--wp--preset--color--contrast);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.ooc-underline-link a:hover {
	color: rgb(42 38 34 / 0.9);
}

/*
 * Legal pages: Lovable's tight prose. Sections 80px top/bottom (112px from
 * 1024px), 12px between blocks, 32px above each numbered heading, list items
 * 4px apart, body text at 85%. The patterns are flat block lists, so this
 * replaces the layout's default block gap rather than adding wrappers.
 */
.ooc-legal {
	padding-top: 5rem !important;
	padding-bottom: 5rem !important;
	color: rgb(42 38 34 / 0.85);
}

@media (min-width: 1024px) {
	.ooc-legal {
		padding-top: 7rem !important;
		padding-bottom: 7rem !important;
	}
}

.ooc-legal > * + * {
	margin-block-start: 0.75rem;
}

.ooc-legal > h1 {
	color: var(--wp--preset--color--contrast);
	font-size: 3rem;
	line-height: 1;
}

@media (min-width: 768px) {
	.ooc-legal > h1 {
		font-size: 3.75rem;
	}
}

.ooc-legal h2 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	color: var(--wp--preset--color--contrast);
	font-size: 1.5rem !important; /* over the 2XL preset class */
	line-height: 2rem;
}

/* "Effective Date": Ink at 60%, 24px line. */
.ooc-legal > h1 + p {
	color: rgb(42 38 34 / 0.6) !important;
	line-height: 1.5rem;
}

.ooc-legal ul {
	margin-top: 0.75rem;
	padding-left: 1.5rem;
}

.ooc-legal li + li {
	margin-top: 0.25rem;
}

.ooc-legal a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.ooc-legal a:hover {
	text-decoration: underline;
}

/* "Keep exploring" sections: Lovable's py-20 lg:py-24. */
@media (min-width: 1024px) {
	.ooc-related {
		padding-top: 6rem !important;
		padding-bottom: 6rem !important;
	}
}

.ooc-border-top {
	border-top: 1px solid rgb(223 217 207 / 0.6);
}

/* Outcome column on the Branding service rows. */
@media (min-width: 1024px) {
	.ooc-outcome {
		padding-left: 2rem;
		border-left: 1px solid var(--ooc-border);
	}
}

@media (min-width: 782px) {
	.ooc-indent {
		margin-left: 4rem !important;
	}
}

.ooc-icon-sm {
	flex-shrink: 0;
}

.ooc-icon-sm img {
	width: 1.25rem !important;
	height: 1.25rem !important;
}

.ooc-icon-md img {
	width: 2rem !important;
	height: 2rem !important;
}

.ooc-rule-left {
	border-left: 2px solid rgb(222 58 7 / 0.3);
}

/* ── Discovery-call form (Trailhead Form block) ───────────────────────────── */

.ooc-form {
	--trailhead-field-bg: rgb(255 255 255 / 0.6);
	--trailhead-field-border: 0;
	--trailhead-field-padding: 1rem 1.25rem;
	--trailhead-field-focus: var(--wp--preset--color--contrast);
	--trailhead-placeholder-color: rgb(40 40 39 / 0.5);
	--trailhead-label-size: var(--wp--preset--font-size--xs);
	--trailhead-label-weight: 400;
	--trailhead-pill-bg: rgb(255 255 255 / 0.6);
	--trailhead-error-color: #9b1c0b;
}

.ooc-form .trailhead-field ::placeholder,
.ooc-form .trailhead-field__select select:invalid {
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.025em;
	text-transform: uppercase;
}

/* Lovable's message box has no resize handle. (The required "*" markers stay:
   they tell screen-reader and keyboard users which fields must be filled.) */
.ooc-form .trailhead-field textarea {
	resize: none;
}

.ooc-form .trailhead-field input:focus-visible,
.ooc-form .trailhead-field textarea:focus-visible,
.ooc-form .trailhead-field select:focus-visible {
	outline: 2px solid rgb(40 40 39 / 0.3);
	outline-offset: 0;
}

/* "Preferred days / times" labels. */
.ooc-form fieldset .trailhead-field__label {
	margin-bottom: 0.25rem;
	opacity: 0.7;
	letter-spacing: 0.025em;
	text-transform: uppercase;
}

.ooc-form .trailhead-field__required {
	color: inherit;
}

.ooc-form .is-pills .trailhead-choice span {
	letter-spacing: 0.025em;
}

.ooc-form .trailhead-form__footer {
	margin-top: 1.5rem;
}

.ooc-form .wp-block-button.is-style-outline .wp-block-button__link {
	padding: 1rem 2rem;
	border: 2px solid var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
}

.ooc-form [data-field="preferred_days"] .trailhead-choice span {
	text-transform: uppercase;
}

/* ── Field Notes ──────────────────────────────────────────────────────────── */

/* Category filter: "All" plus the category list, as pills. */
.ooc-cat-filter p,
.ooc-cat-filter ul {
	margin: 0;
}

/* The list's items join the filter row, so "All" wraps with them. */
.ooc-cat-pills {
	display: contents;
	list-style: none;
}

.ooc-cat-all a,
.ooc-cat-pills a {
	display: inline-block;
	padding: 0.375rem 1rem;
	border: 1px solid rgb(223 217 207);
	border-radius: 999px;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.ooc-cat-all a:hover,
.ooc-cat-pills a:hover {
	color: var(--wp--preset--color--contrast);
}

body.blog .ooc-cat-all a,
.ooc-cat-pills .current-cat a {
	border-color: var(--wp--preset--color--contrast);
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* Category badge on cards and posts. */
.ooc-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

.ooc-badges .wp-block-post-terms__separator {
	display: none;
}

.ooc-badges a {
	position: relative;
	z-index: 1;
	padding: 0.125rem 0.625rem;
	border: 1px solid rgb(223 217 207);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	text-decoration: none;
}

/* Post cards: the whole card opens the post through its title link. */
.ooc-note-card {
	position: relative;
}

.ooc-note-card .wp-block-post-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.ooc-note-card .wp-block-post-title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ooc-note-card .wp-block-post-featured-image {
	overflow: hidden;
}

.ooc-note-card .wp-block-post-featured-image img {
	transition: transform 0.5s;
}

.ooc-note-card:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}

.ooc-note-card:hover .wp-block-post-title a,
.ooc-note-card:hover .ooc-more-link {
	color: var(--wp--preset--color--primary);
}

.ooc-note-card:has(:focus-visible) {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 4px;
	border-radius: 0.5rem;
}

.ooc-note-card a:focus {
	outline: none;
}

.ooc-clamp-3 .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.ooc-more-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.ooc-more-link::after {
	content: "";
	width: 1rem;
	height: 1rem;
	background-color: currentcolor;
	-webkit-mask: url(assets/icons/arrow-right.svg) center / contain no-repeat;
	mask: url(assets/icons/arrow-right.svg) center / contain no-repeat;
}

/* Single post. */
.ooc-back-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: inherit;
	text-decoration: none;
}

.ooc-back-link a::before {
	content: "";
	width: 1rem;
	height: 1rem;
	background-color: currentcolor;
	-webkit-mask: url(assets/icons/arrow-left.svg) center / contain no-repeat;
	mask: url(assets/icons/arrow-left.svg) center / contain no-repeat;
}

.ooc-back-link a:hover {
	color: var(--wp--preset--color--contrast);
}

/* Post title: Lovable's text-4xl md:text-6xl (the h1 preset reaches 72px). */
.ooc-post-title {
	font-size: 2.25rem !important;
	line-height: 1 !important; /* measured; text-6xl's leading wins over leading-[1.05] */
}

@media (min-width: 768px) {
	.ooc-post-title {
		font-size: 3.75rem !important;
	}
}

/*
 * Post bodies: Lovable renders them with Tailwind Typography's prose-lg —
 * 18px/32px text in cool greys, 24px between blocks, h2s 30px/40px with 56px
 * above and 32px below, list items 12px apart.
 */
.ooc-prose {
	color: #374151;
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.7778;
}

.ooc-prose > * + * {
	margin-block-start: 1.5rem;
}

.ooc-prose :is(h2, h3, h4, strong) {
	color: #111827;
}

.ooc-prose h2 {
	margin-top: 3.5rem;
	font-size: 1.875rem;
	line-height: 2.5rem;
}

.ooc-prose > h2 + * {
	margin-block-start: 2rem;
}

.ooc-prose h3 {
	margin-top: 2.5rem;
	font-size: 1.5rem;
	line-height: 2.25rem;
}

.ooc-prose > h3 + * {
	margin-block-start: 1rem;
}

.ooc-prose h4 {
	margin-top: 2rem;
	font-size: var(--wp--preset--font-size--lg);
	line-height: 1.75rem;
}

.ooc-prose > h4 + * {
	margin-block-start: 0.5rem;
}

.ooc-prose a {
	color: var(--wp--preset--color--primary);
	text-underline-offset: 0.15em;
}

.ooc-prose ul {
	padding-left: 1.5556em;
}

.ooc-prose li + li {
	margin-top: 0.75rem;
}

.ooc-prose .wp-block-separator {
	margin-block: 3rem;
	border-top: 1px solid rgb(223 217 207);
	opacity: 1;
}

/* Closing call to action in a post. */
/* Lovable's post CTA buttons are 48px tall with 24px sides; the imported
   posts carry inline 1rem/2.5rem padding. */
.ooc-prose .ooc-note-cta a.wp-block-button__link {
	padding: 0.75rem 1.5rem !important;
}

.ooc-prose .ooc-note-cta a.wp-block-button__link {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}

.ooc-prose .ooc-note-cta p {
	line-height: 1.6;
}
