/* BOGS — the firm's own pages in the brand (v1.86.0).
 *
 * Loaded only on pages ticked under "Brand these pages" (see
 * includes/class-bogs-brand-pages.php), and every rule sits under
 * body.bogs-brand-page, so nothing here can reach any other page.
 *
 * Brand, as on the home page: navy #072542 (deep #04182b), red #D62026,
 * cream #F3F0E8, light blue text on navy #A9C4DC, ink #0E2436;
 * Playfair Display for headings, Inter for everything else.
 *
 * The theme's starter patterns paint their panels with !important utility
 * classes (nfd-bg-*, has-*-color), so the overrides below have to answer
 * in kind. Colours only ever change TOGETHER with the background they sit
 * on, so no text is left unreadable on a panel it was not chosen for.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- type ---------- */
body.bogs-brand-page main,
body.bogs-brand-page main :is(p, li, label, span, a, input, textarea, select, button, td, th, legend) {
	font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
/* The theme sets word-break: break-word, which lets a flex box shrink below
   the width of a word and split it ("Account / ing"). Words stay whole;
   only a word too long for the whole column may still wrap. */
body.bogs-brand-page main :is(h1, h2, h3, h4, h5, h6, p, li, a, span) {
	word-break: normal;
	overflow-wrap: break-word;
}
body.bogs-brand-page main :is(h1, h2, h3, h4, h5, h6) {
	font-family: 'Playfair Display', Georgia, serif !important;
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* ---------- panels ----------
   The starter patterns colour every panel from a handful of theme tokens
   (--wndb-*). Re-pointing the tokens recolours each panel AND the text the
   theme pairs with it in one move, so nothing is left unreadable. */
body.bogs-brand-page main {
	--wndb-gray-900: #04182b;   /* "darker" panels, ink on light panels */
	--wndb-gray-800: #0b2f52;   /* "dark" panels and cards               */
	--wndb-gray-700: #3a4a5c;   /* faded text on light panels           */
	--wndb--color--primary: #d62026;
}
/* The web-blue "primary" panel (About's opening band) becomes navy. */
body.bogs-brand-page main :is(.is-style-nfd-theme-primary, .nfd-theme-primary) {
	--wndb--color--surface: #072542;
	--wndb--color--links: #ffffff;
}
/* White panels become cream. (A panel can carry nfd-theme-white AND an
   is-style-nfd-theme-* style; the style wins, as it does in the theme.) */
body.bogs-brand-page main :is(.is-style-nfd-theme-white, .is-style-nfd-theme-light, .nfd-theme-white:not([class*="is-style-nfd-theme"]), .nfd-theme-light:not([class*="is-style-nfd-theme"])) {
	--wndb--color--surface: #f3f0e8;
	--wndb--color--text--contrast: #072542;
}
/* Contact's top band is an inline near-black gradient (#161a1d) stopping
   short of the bottom; same shape, in deep navy. */
body.bogs-brand-page main .has-background[style*="rgb(22,26,29)"] {
	background: linear-gradient(0deg, rgba(4, 24, 43, 0) 16%, #04182b 16%) !important;
}
/* Consultation's photo banner: the pattern dims the photo 70% with black
   and frames it with a 32px WHITE border meant for a white page. On a navy
   page the frame is navy (so the photo sits in the page), and the dim is
   navy, so the photo reads as part of the brand rather than a black box. */
body.bogs-brand-page main .wp-block-cover > .wp-block-cover__background.has-background-dim:not([class*="-background-color"]) {
	background-color: #04182b !important;
}
body.bogs-brand-page main .wp-block-cover [style*="border-left-color:var(--wp--preset--color--white)"] {
	border-color: #072542 !important;
}
body.bogs-brand-page main .wp-block-cover {
	border: 0 !important;
}
body.bogs-brand-page main :is(.nfd-bg-gray-800:not(.wp-block-cover), [class*="nfd-rounded"]) {
	border: 1px solid rgba(169, 196, 220, 0.18);
}
body.bogs-brand-page main :is(.is-style-nfd-theme-white, .nfd-theme-white:not([class*="is-style-nfd-theme"])) :is(h1, h2, h3, h4, h5, h6):not(.has-text-color) {
	color: #072542 !important;
}

/* ---------- accent text ---------- */
/* Web-blue headings and links on dark panels read white; secondary text is
   the light blue the home page uses. */
body.bogs-brand-page main :is(.has-primary-color, .has-vivid-cyan-blue-color, .has-cyan-bluish-gray-color) {
	color: #ffffff !important;
}
body.bogs-brand-page main :is(.is-style-nfd-theme-white, .nfd-theme-white:not([class*="is-style-nfd-theme"])) :is(.has-primary-color, .has-vivid-cyan-blue-color) {
	color: #072542 !important;
}
body.bogs-brand-page main :is(.has-vivid-red-color, .has-secondary-color) {
	color: #d62026 !important;
}
/* The pattern's own "primary" text is a tomato red (#e74c3c). On navy that
   is hard to read, so it is white and bold there and brand red on cream. */
body.bogs-brand-page main [class*="nfd-theme-dark"] .nfd-text-primary:not(.has-text-color),
body.bogs-brand-page main [class*="nfd-theme-primary"] .nfd-text-primary:not(.has-text-color) {
	color: #ffffff !important;
}
body.bogs-brand-page main :is(p.nfd-text-opacity-80, p.nfd-text-faded):not(:is(.is-style-nfd-theme-white, .nfd-theme-white:not([class*="is-style-nfd-theme"])) *) {
	color: #a9c4dc;
	opacity: 1;
}
body.bogs-brand-page main a:not(.wp-block-button__link):not(.wp-block-social-link-anchor) {
	text-decoration-color: rgba(214, 32, 38, 0.7);
	text-underline-offset: 3px;
}

/* ---------- buttons ---------- */
body.bogs-brand-page main :is(.wp-block-button__link, .wp-element-button, button[type="submit"], input[type="submit"], .wpforms-submit) {
	background-color: #d62026 !important;
	border-color: #d62026 !important;
	color: #ffffff !important;
	border-radius: 6px !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em;
	transition: background-color 0.15s ease;
}
body.bogs-brand-page main :is(.wp-block-button__link, .wp-element-button, button[type="submit"], input[type="submit"], .wpforms-submit):is(:hover, :focus-visible) {
	background-color: #b51a1f !important;
	border-color: #b51a1f !important;
}
body.bogs-brand-page main .is-style-outline .wp-block-button__link {
	background-color: transparent !important;
	border: 2px solid currentColor !important;
	color: inherit !important;
}

/* ---------- forms (WPForms on Contact) ---------- */
/* WPForms colours its submit button and its icon choices from this one
   variable. */
body.bogs-brand-page main .wpforms-container {
	--wpforms-button-background-color: #d62026;
	--wpforms-button-border-color: #d62026;
	--wpforms-field-border-color: #c9d3de;
}
body.bogs-brand-page main .wpforms-container :is(.wpforms-field-label, legend) {
	font-weight: 600 !important;
	font-size: 15px !important;
}
body.bogs-brand-page main .wpforms-container .wpforms-field-sublabel {
	color: #a9c4dc !important;
	font-size: 13px !important;
}
body.bogs-brand-page main .wpforms-icon-choices {
	--wpforms-icon-choices-color: #d62026 !important;
}
body.bogs-brand-page main .wpforms-container .wpforms-required-label {
	color: #ff8a8e !important;
}
body.bogs-brand-page main .wpforms-container :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], textarea, select) {
	border: 1px solid #c9d3de !important;
	border-radius: 6px !important;
	color: #0e2436 !important;
	background-color: #ffffff !important;
}
body.bogs-brand-page main .wpforms-container :is(input, textarea, select):focus {
	border-color: #d62026 !important;
	box-shadow: 0 0 0 3px rgba(214, 32, 38, 0.18) !important;
	outline: none !important;
}

/* ---------- text pages (the Privacy Policy) ----------
   A page written as plain paragraphs and headings, with no pattern blocks,
   ran edge to edge at 1,350px with no breathing room. It gets a reading
   column. :has() keeps this off the pattern pages, whose blocks lay
   themselves out. */
body.bogs-brand-page main .wp-block-post-content:not(:has(> .alignfull, > .wp-block-group, > .wp-block-cover, > .wp-block-columns)) {
	padding: 48px 20px 72px !important;
}
body.bogs-brand-page main .wp-block-post-content:not(:has(> .alignfull, > .wp-block-group, > .wp-block-cover, > .wp-block-columns)) > * {
	max-width: 760px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
body.bogs-brand-page main .wp-block-post-content:not(:has(> .alignfull, > .wp-block-group, > .wp-block-cover, > .wp-block-columns)) :is(p, li) {
	color: #d7e3ee;
	font-size: 16px;
	line-height: 1.7;
}
body.bogs-brand-page main .wp-block-post-content:not(:has(> .alignfull, > .wp-block-group, > .wp-block-cover, > .wp-block-columns)) :is(h1, h2) {
	color: #ffffff !important;
	margin-top: 2.2em;
	margin-bottom: 0.5em;
	line-height: 1.25;
}
body.bogs-brand-page main .wp-block-post-content:not(:has(> .alignfull, > .wp-block-group, > .wp-block-cover, > .wp-block-columns)) > :is(h1, h2):first-child {
	margin-top: 0;
}
body.bogs-brand-page main .wp-block-post-content:not(:has(> .alignfull, > .wp-block-group, > .wp-block-cover, > .wp-block-columns)) h2 {
	font-size: 26px;
	padding-top: 1.2em;
	border-top: 1px solid rgba(169, 196, 220, 0.18);
}
body.bogs-brand-page main .wp-block-post-content:not(:has(> .alignfull, > .wp-block-group, > .wp-block-cover, > .wp-block-columns)) :is(h3, h4) {
	color: #ffffff !important;
	font-size: 18px;
	margin-top: 1.6em;
	margin-bottom: 0.4em;
}
body.bogs-brand-page main .wp-block-post-content:not(:has(> .alignfull, > .wp-block-group, > .wp-block-cover, > .wp-block-columns)) :is(ul, ol) {
	padding-left: 1.4em;
}
body.bogs-brand-page main .wp-block-post-content:not(:has(> .alignfull, > .wp-block-group, > .wp-block-cover, > .wp-block-columns)) strong {
	color: #ffffff;
}
body.bogs-brand-page main .wp-block-post-content:not(:has(> .alignfull, > .wp-block-group, > .wp-block-cover, > .wp-block-columns)) a {
	color: #ffffff;
	text-decoration: underline;
}
body.bogs-brand-page main .wp-block-post-content:not(:has(> .alignfull, > .wp-block-group, > .wp-block-cover, > .wp-block-columns)) > p {
	margin-top: 0 !important;
	margin-bottom: 1em !important;
}
