/*
Theme Name: DH Digital Consulting
Theme URI: https://dhdigitalconsulting.com
Author: Manus AI
Description: A conversion-focused native WordPress block theme for DH Digital Consulting and EchoAssist AI.
Version: 2.1.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dh-digital

Design system: Precision AI & Authority — deep charcoal and bright aqua, deliberate asymmetric layouts, compact navigation, quiet card depth, and conversion-first hierarchy.
*/

:root {
	--dh-charcoal: #263238;
	--dh-charcoal-soft: #34464d;
	--dh-aqua: #6eceda;
	--dh-mint: #d3e8db;
	--dh-sand: #d7ccc8;
	--dh-cream: #fffffa;
	--dh-ink-muted: #5d6b70;
	--dh-border: #dfe6e3;
	--dh-shadow: 0 14px 34px rgba(38, 50, 56, 0.09);
	--dh-radius: 14px;
	--dh-content: 1200px;
}

html { scroll-behavior: smooth; }

body {
	background: var(--dh-cream);
	color: var(--dh-charcoal);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

body .wp-site-blocks { overflow: hidden; }

body :where(.wp-site-blocks) > * { margin-block-start: 0; }

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	color: var(--dh-charcoal);
	font-weight: 760;
	letter-spacing: -0.03em;
	line-height: 1.08;
}

h1, .wp-block-heading.is-style-dh-display {
	font-size: clamp(2.55rem, 5vw, 4.9rem);
	line-height: 0.99;
}

h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.1rem; letter-spacing: -0.015em; }

p { line-height: 1.7; }

a { text-underline-offset: 0.18em; }

/* Header: compact, persistent, and preview-aligned. */
.dh-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 250, 0.96);
	border-bottom: 1px solid rgba(38, 50, 56, 0.11);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.dh-header__inner {
	box-sizing: border-box;
	width: min(100% - 40px, var(--dh-content));
	min-height: 68px;
	margin: 0 auto;
	gap: 20px;
}

.dh-brand { gap: 10px; }
.dh-brand .custom-logo-link { display: inline-flex; align-items: center; }
.dh-brand .custom-logo { width: 34px; max-height: 36px; object-fit: contain; }
.dh-brand .wp-block-site-title { margin: 0; font-size: 1.1rem; line-height: 1; letter-spacing: -0.02em; }
.dh-brand .wp-block-site-title a { color: var(--dh-charcoal); text-decoration: none; }

.dh-header .wp-block-navigation { font-size: 0.95rem; font-weight: 600; }
.dh-header .wp-block-navigation a { color: var(--dh-charcoal); text-decoration: none; }
.dh-header .wp-block-navigation a:hover,
.dh-header .wp-block-navigation a:focus-visible { color: #278493; }
.dh-header .wp-block-navigation__responsive-container-open { color: var(--dh-charcoal); }

/* Mobile navigation: use the full viewport so every link is discoverable in portrait mode. */
.dh-header .wp-block-navigation__responsive-container.is-menu-open {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100dvh;
	inset: 0;
	max-height: 100dvh;
	overflow-y: auto;
	overscroll-behavior: contain;
	width: 100vw;
	z-index: 1000;
}
.dh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	overflow: visible;
}
.dh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: stretch;
	flex-direction: column;
	gap: 0.15rem;
	width: 100%;
}
.dh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	padding: 0.75rem 0;
}

.dh-header .wp-block-button__link,
.dh-button .wp-block-button__link,
.wp-block-button.is-style-dh-primary .wp-block-button__link {
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--dh-aqua);
	color: var(--dh-charcoal);
	box-shadow: none;
	font-weight: 750;
	padding: 0.74rem 1.1rem;
	text-decoration: none;
	transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background 160ms ease, box-shadow 160ms ease;
}

.dh-header .wp-block-button__link:hover,
.dh-button .wp-block-button__link:hover,
.wp-block-button.is-style-dh-primary .wp-block-button__link:hover {
	background: #84d8e2;
	box-shadow: 0 10px 20px rgba(110, 206, 218, 0.24);
	transform: translateY(-1px);
}

.dh-header .wp-block-button__link:active,
.dh-button .wp-block-button__link:active,
.wp-block-button.is-style-dh-primary .wp-block-button__link:active { transform: scale(0.97); }

.wp-block-button.is-style-dh-secondary .wp-block-button__link,
.dh-button--secondary .wp-block-button__link {
	border: 1px solid rgba(110, 206, 218, 0.7);
	border-radius: 10px;
	background: rgba(211, 232, 219, 0.94);
	color: var(--dh-charcoal);
	font-weight: 750;
	padding: 0.74rem 1.1rem;
	text-decoration: none;
	transition: background 160ms ease, transform 160ms cubic-bezier(.23, 1, .32, 1);
}

.wp-block-button.is-style-dh-secondary .wp-block-button__link:hover,
.dh-button--secondary .wp-block-button__link:hover { background: var(--dh-mint); transform: translateY(-1px); }

/* Global page rhythm and reusable visual primitives. */
.dh-page-main { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.dh-container { width: min(100% - 40px, var(--dh-content)); margin-inline: auto; }
.dh-section { padding-block: clamp(3.8rem, 7vw, 6.8rem); }
.dh-section--mint { background: linear-gradient(180deg, rgba(211, 232, 219, 0.44), rgba(211, 232, 219, 0.24)); }
.dh-section--dark { background: var(--dh-charcoal); color: var(--dh-cream); }
.dh-section--dark :is(h1, h2, h3, h4, p, li, .wp-block-heading) { color: var(--dh-cream); }

.dh-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	border: 1px solid rgba(110, 206, 218, 0.16);
	border-radius: 999px;
	background: rgba(110, 206, 218, 0.14);
	color: var(--dh-aqua) !important;
	font-size: 0.82rem;
	font-weight: 750;
	letter-spacing: 0.01em;
	line-height: 1;
	padding: 0.65rem 0.85rem;
}

.dh-display-copy { font-size: clamp(1.05rem, 1.55vw, 1.27rem); max-width: 39rem; }
.dh-muted-copy { color: var(--dh-ink-muted); }
.dh-section--dark .dh-muted-copy { color: rgba(255, 255, 250, 0.8); }

.dh-hero { padding-block: clamp(5.5rem, 10vw, 9.4rem); }
.dh-hero__grid { align-items: center; gap: clamp(2.5rem, 6vw, 6rem); }
.dh-hero__title { max-width: 10.5ch; margin-block: 1.1rem 1.35rem; }
.dh-hero__actions { margin-top: 2rem; }
.dh-promo-strip { background: var(--dh-aqua); color: var(--dh-charcoal); padding-block: 0.7rem; }
.dh-promo-strip p { color: var(--dh-charcoal); font-size: 0.88rem; font-weight: 800; letter-spacing: 0.01em; margin: 0; }

.dh-phone-visual {
	min-height: 23rem;
	display: grid;
	place-items: center;
	border: 1px solid rgba(110, 206, 218, 0.18);
	border-radius: 20px;
	background: radial-gradient(circle at 24% 18%, rgba(110, 206, 218, 0.18), transparent 44%), linear-gradient(135deg, rgba(110, 206, 218, 0.13), rgba(211, 232, 219, 0.18));
	box-shadow: inset 0 1px 1px rgba(255, 255, 250, 0.1);
	text-align: center;
}

.dh-phone-visual__icon { color: var(--dh-aqua) !important; font-size: clamp(5rem, 10vw, 7rem); line-height: 1; margin: 0; }
.dh-phone-visual__label { color: rgba(255,255,250,0.56) !important; font-size: 0.95rem; font-weight: 700; margin-top: 1rem; }

.dh-proof-list { display: grid; gap: 0.65rem; margin-top: 1.75rem; }
.dh-proof-list p { color: rgba(255,255,250,0.76); font-size: 0.93rem; margin: 0; }
.dh-service-list { display: grid; gap: 0.85rem; list-style: none; margin: 2rem 0 0; padding: 0; }
.dh-service-list li { display: flex; align-items: center; gap: 0.75rem; }
.dh-service-list li::before { background: var(--dh-aqua); border-radius: 50%; content: ""; display: inline-block; flex: 0 0 0.5rem; height: 0.5rem; }
.dh-service-list a { color: var(--dh-charcoal); font-weight: 650; text-decoration: none; }
.dh-service-list a:hover { color: #278493; }

.dh-feature-grid { gap: 1.35rem; }
.dh-feature-card,
.dh-service-card,
.dh-pricing-card,
.dh-calculator-card {
	height: 100%;
	box-sizing: border-box;
	border: 1px solid var(--dh-border);
	border-radius: var(--dh-radius);
	background: var(--dh-cream);
	box-shadow: 0 4px 12px rgba(38, 50, 56, 0.035);
	padding: clamp(1.45rem, 2.4vw, 2rem);
	transition: transform 180ms cubic-bezier(.23, 1, .32, 1), border-color 180ms ease, box-shadow 180ms ease;
}

.dh-feature-card:hover,
.dh-service-card:hover { border-color: rgba(110, 206, 218, 0.92); box-shadow: var(--dh-shadow); transform: translateY(-3px); }
.dh-feature-card p:last-child,
.dh-service-card p:last-child { margin-bottom: 0; }
.dh-section--dark .dh-feature-card :is(h1, h2, h3, h4, p, li, .wp-block-heading) { color: var(--dh-charcoal); }
.dh-card-icon { color: #268390 !important; font-size: 1.55rem; font-weight: 800; margin: 0 0 1rem; }

.dh-service-grid { gap: 1.35rem; }
.dh-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dh-service-grid > .dh-service-card { min-width: 0; }
.dh-service-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 12.5rem; min-width: 0; }
.dh-service-card > * { max-width: none; min-width: 0; }
.dh-service-card .wp-block-heading { margin-top: 0; margin-bottom: 1rem; }
.dh-service-card .wp-block-heading { overflow-wrap: anywhere; }
.dh-service-card .wp-block-button { margin-top: auto; margin-bottom: 0; }
.dh-text-link .wp-block-button__link { background: transparent; color: #278493; font-weight: 750; padding: 0; text-decoration: none; }
.dh-text-link .wp-block-button__link:hover { color: var(--dh-charcoal); }

.dh-pricing-grid { gap: 1.5rem; align-items: stretch; }
.dh-pricing-card { display: flex; flex-direction: column; min-width: 0; padding: clamp(1.8rem, 3vw, 2.5rem); }
.dh-pricing-card--featured { border: 2px solid var(--dh-aqua); background: linear-gradient(160deg, rgba(211, 232, 219, 0.55), rgba(255, 255, 250, 1) 70%); box-shadow: 0 12px 30px rgba(110, 206, 218, 0.13); }
.dh-pricing-kicker { color: #398f99 !important; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.dh-pricing-value { color: #2d93a0 !important; font-size: clamp(2.45rem, 4vw, 3.55rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.95; margin-block: 1.8rem 1.2rem; }
.dh-pricing-value small { color: var(--dh-charcoal); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.dh-pricing-card .wp-block-buttons { margin-top: auto; }
.dh-check-list { display: grid; gap: 0.7rem; padding: 0; list-style: none; }
.dh-check-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.dh-check-list li::before { color: #3e9fa9; content: "✓"; font-weight: 800; }

.dh-pricing-table { overflow: hidden; border: 1px solid var(--dh-border); border-radius: var(--dh-radius); }
.dh-pricing-table table { border-collapse: collapse; margin: 0; width: 100%; }
.dh-pricing-table th { background: var(--dh-charcoal); color: var(--dh-cream); font-weight: 750; }
.dh-pricing-table :is(th, td) { border: 0; padding: 0.95rem 1.1rem; text-align: left; }
.dh-pricing-table tbody tr:nth-child(odd) { background: rgba(211, 232, 219, 0.36); }

.dh-calc { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); margin-top: 2.6rem; }
.dh-calc__form { background: var(--dh-cream); border: 1px solid var(--dh-border); border-radius: var(--dh-radius); box-shadow: var(--dh-shadow); padding: clamp(1.4rem, 3vw, 2.2rem); }
.dh-calc__field { display: grid; gap: 0.55rem; margin-bottom: 1.2rem; }
.dh-calc label { color: var(--dh-charcoal); font-size: 0.93rem; font-weight: 750; }
.dh-calc :is(input[type="number"], select) { background: #fff; border: 1px solid #cfd9d6; border-radius: 9px; box-sizing: border-box; color: var(--dh-charcoal); font: inherit; min-height: 46px; padding: 0.7rem 0.8rem; width: 100%; }
.dh-calc input[type="range"] { accent-color: #2d93a0; width: 100%; }
.dh-calc__button { background: var(--dh-aqua); border: 0; border-radius: 10px; color: var(--dh-charcoal); cursor: pointer; font: inherit; font-weight: 800; padding: 0.92rem 1rem; transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background 160ms ease; width: 100%; }
.dh-calc__button:hover { background: #84d8e2; transform: translateY(-1px); }
.dh-calc__button:active { transform: scale(0.98); }
.dh-calc__results { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dh-calc-result { background: var(--dh-cream); border: 1px solid var(--dh-border); border-radius: 12px; display: grid; min-height: 8.6rem; padding: 1.2rem; place-items: center; text-align: center; }
.dh-calc-result--dark { background: var(--dh-charcoal); border-color: var(--dh-charcoal); }
.dh-calc-result__label { color: var(--dh-ink-muted); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.dh-calc-result--dark .dh-calc-result__label { color: rgba(255,255,250,0.6); }
.dh-calc-result__value { color: var(--dh-charcoal); font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin-top: 0.45rem; }
.dh-calc-result--dark .dh-calc-result__value { color: var(--dh-aqua); }
.dh-calc-result__value.updated { animation: dh-pulse 500ms ease-out; }
.dh-calc__next-step { background: var(--dh-sand); border-radius: 12px; display: none; grid-column: 1 / -1; padding: 1.25rem; }
.dh-calc__next-step p { margin-top: 0; }
.dh-calc__next-step a { color: var(--dh-charcoal); font-weight: 800; }

@keyframes dh-pulse { 50% { transform: scale(1.045); } }

.dh-dark-cta { padding-block: clamp(4rem, 7vw, 6rem); text-align: center; }
.dh-dark-cta .wp-block-heading { max-width: 19ch; margin-inline: auto; }
.dh-dark-cta p { max-width: 42rem; margin-inline: auto; }

.dh-page-intro { max-width: 48rem; margin-inline: auto; }
.dh-page-intro > :is(h1, h2, p) { text-align: center; }
.dh-about-mark { align-content: center; background: linear-gradient(145deg, var(--dh-charcoal), #3b5258); border-radius: 18px; display: grid; min-height: 24rem; place-items: center; }
.dh-about-mark p { color: var(--dh-aqua); font-size: clamp(5rem, 12vw, 8rem); font-weight: 800; letter-spacing: -0.1em; margin: 0; }
.dh-content-card { border: 1px solid var(--dh-border); border-radius: var(--dh-radius); box-shadow: 0 4px 12px rgba(38, 50, 56, 0.035); padding: clamp(1.45rem, 2.4vw, 2rem); }
.dh-article { max-width: 780px; }
.dh-article .wp-block-post-title { margin-bottom: 0.8rem; }
.dh-article .wp-block-post-date { color: var(--dh-ink-muted); font-size: 0.9rem; }
.dh-article .wp-block-post-featured-image { margin-block: 2rem; }
.dh-article .wp-block-post-featured-image img { border-radius: var(--dh-radius); }
.dh-article .wp-block-post-content > :is(h2, h3) { margin-top: 2.5rem; }
.dh-article .wp-block-post-content > p { font-size: 1.08rem; }
.dh-blog-list { display: grid; gap: 1.2rem; }
.dh-blog-list .wp-block-post { list-style: none; }
.dh-blog-list .wp-block-group { border: 1px solid var(--dh-border); border-radius: var(--dh-radius); box-shadow: 0 4px 12px rgba(38, 50, 56, 0.035); padding: clamp(1.4rem, 2.4vw, 2rem); }
.dh-blog-list .wp-block-post-title { margin-top: 0; }
.dh-blog-list .wp-block-post-title a { color: var(--dh-charcoal); text-decoration: none; }
.dh-blog-list .wp-block-post-title a:hover { color: #278493; }
.dh-blog-list .wp-block-post-date { color: var(--dh-ink-muted); font-size: 0.86rem; }
.dh-faq-list { max-width: 820px; margin-inline: auto; }
.dh-faq-list .wp-block-details { background: var(--dh-cream); box-shadow: 0 4px 12px rgba(38, 50, 56, 0.035); }

/* Existing individual-service templates share this native-block structure. These selectors modernize them without replacing approved page copy. */
.wp-site-blocks main.wp-block-group:not(.dh-page-main) > .wp-block-group.alignwide {
	box-sizing: border-box;
	margin-inline: auto;
	padding-block: clamp(3.8rem, 7vw, 6.8rem);
	width: min(100% - 40px, var(--dh-content));
}

.wp-site-blocks main.wp-block-group:not(.dh-page-main) > .wp-block-group.alignwide > .wp-block-columns:first-child {
	align-items: center;
	gap: clamp(2.5rem, 6vw, 5rem);
}

.wp-site-blocks main.wp-block-group:not(.dh-page-main) > .wp-block-group.alignwide > .wp-block-columns:first-child > .wp-block-column:first-child > .wp-block-heading:first-child {
	font-size: clamp(2.55rem, 5vw, 4.6rem) !important;
	line-height: 1.01 !important;
	margin-top: 0;
	max-width: 11.5ch;
}

.wp-site-blocks main.wp-block-group:not(.dh-page-main) > .wp-block-group.alignwide > .wp-block-columns:first-child > .wp-block-column:first-child > p:first-of-type { max-width: 38rem; }

.wp-site-blocks main.wp-block-group:not(.dh-page-main) > .wp-block-group.alignwide > .wp-block-columns:first-child > .wp-block-column > .wp-block-image {
	background: radial-gradient(circle at 24% 18%, rgba(110, 206, 218, 0.25), transparent 44%), linear-gradient(135deg, #2d4147, #486268);
	border: 1px solid rgba(110, 206, 218, 0.18);
	border-radius: 18px;
	box-shadow: inset 0 1px 1px rgba(255, 255, 250, 0.1);
	overflow: hidden;
}

.wp-site-blocks main.wp-block-group:not(.dh-page-main) > .wp-block-group.alignwide > .wp-block-columns:first-child > .wp-block-column > .wp-block-image img[src*="images.unsplash.com"] {
	display: block;
	min-height: 22rem;
	object-fit: cover;
	opacity: 0;
	width: 100%;
}

.wp-site-blocks main.wp-block-group:not(.dh-page-main) > .wp-block-group.alignwide > .wp-block-group { margin-block: clamp(3.8rem, 7vw, 6.8rem) !important; }
.wp-site-blocks main.wp-block-group:not(.dh-page-main) > .wp-block-group.alignwide > .wp-block-group > .wp-block-columns { gap: 1.35rem; }
.wp-site-blocks main.wp-block-group:not(.dh-page-main) > .wp-block-group.alignwide > .wp-block-group > .wp-block-columns > .wp-block-column {
	border: 1px solid var(--dh-border);
	border-radius: var(--dh-radius);
	box-shadow: 0 4px 12px rgba(38, 50, 56, 0.035);
	padding: clamp(1.45rem, 2.4vw, 2rem);
}

/* Footer: dense enough to be useful, light enough not to compete with the page CTA. */
.dh-footer { background: var(--dh-charcoal); color: rgba(255, 255, 250, 0.74); padding-block: clamp(3.5rem, 6vw, 5rem) 1.65rem; }
.dh-footer :is(h2, h3, h4, p, a, .wp-block-site-title) { color: inherit; }
.dh-footer .wp-block-site-title { color: var(--dh-cream); font-size: 1.32rem; font-weight: 800; }
.dh-footer h4 { color: var(--dh-cream); font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; }
.dh-footer .wp-block-navigation a { color: rgba(255,255,250,0.76); text-decoration: none; }
.dh-footer .wp-block-navigation a:hover { color: var(--dh-aqua); }
.dh-footer__rule { background: rgba(255,255,250,0.14); height: 1px; margin-block: 2.5rem 1.35rem; }
.dh-footer__copyright { color: rgba(255,255,250,0.5) !important; font-size: 0.82rem; }

/* Native block behavior, accessibility, and responsive layout. */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--dh-aqua);
	outline-offset: 3px;
}

.wp-block-details { border: 1px solid var(--dh-border); border-radius: 12px; padding: 1rem 1.2rem; }
.wp-block-details + .wp-block-details { margin-top: 0.85rem; }
.wp-block-details summary { color: var(--dh-charcoal); cursor: pointer; font-weight: 750; }

@media (max-width: 680px) {
	.dh-header__inner { width: min(100% - 28px, var(--dh-content)); min-height: 62px; }
	.dh-brand .custom-logo { width: 30px; }
	.dh-brand .wp-block-site-title { font-size: 1rem; }
	.dh-header .wp-block-button__link { font-size: 0.88rem; padding: 0.65rem 0.78rem; }
	.dh-header .wp-block-navigation__responsive-container.is-menu-open { inset: 0; padding: 1rem 1.25rem 2rem; }
	.dh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3.5rem; }
	.dh-hero { padding-block: 4.8rem; }
	.dh-hero__title { max-width: 11.5ch; }
	.dh-phone-visual { min-height: 16rem; }
	.dh-phone-visual__icon { font-size: 5rem; }
	.dh-section { padding-block: 4rem; }
	.dh-service-grid { grid-template-columns: 1fr; }
	.dh-calc { grid-template-columns: 1fr; }
	.dh-pricing-table { overflow-x: auto; }
	.dh-pricing-table table { min-width: 48rem; }
	.dh-about-mark { min-height: 15rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   v2.1.0 — Cloudflare site-aligned WordPress blog experience
   The WordPress blog remains the CMS. Cloudflare remains the primary site.
   -------------------------------------------------------------------------- */
:root {
	--dh-blog-ink: #182126;
	--dh-blog-muted: #667177;
	--dh-blog-paper: #f7fafb;
	--dh-blog-card: #ffffff;
	--dh-blog-primary: #12b8b3;
	--dh-blog-primary-deep: #0f9695;
	--dh-blog-line: #dce7e8;
	--dh-blog-shadow: 0 18px 45px rgba(19, 33, 38, 0.08);
	--dh-blog-radius: 1.5rem;
}

body {
	background: var(--dh-blog-paper);
	color: var(--dh-blog-ink);
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body .wp-site-blocks { background: var(--dh-blog-paper); }
h1, h2, h3, h4, h5, h6, .wp-block-heading {
	color: var(--dh-blog-ink);
	font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 700;
	letter-spacing: -0.055em;
}

/* Header / mobile menu: same quiet, highly legible compact shell as the Cloudflare site. */
.dh-blog-header {
	background: rgba(247, 250, 251, 0.92);
	border-bottom: 1px solid rgba(24, 33, 38, 0.07);
	box-shadow: 0 7px 30px rgba(24, 33, 38, 0.03);
}
.dh-blog-header .dh-header__inner { min-height: 80px; width: min(100% - 48px, 1240px); }
.dh-blog-brand {
	align-items: center;
	color: var(--dh-blog-ink);
	display: inline-flex;
	flex: 0 0 auto;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.12rem;
	font-weight: 700;
	gap: 0.6rem;
	letter-spacing: -0.045em;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}
.dh-blog-brand strong { color: var(--dh-blog-primary); font-weight: 700; }
.dh-blog-brand__mark {
	align-items: center;
	background: var(--dh-blog-primary);
	border-radius: 0.62rem;
	color: #fff;
	display: inline-flex;
	font-size: 1rem;
	height: 2rem;
	justify-content: center;
	width: 2rem;
}
.dh-blog-header .wp-block-navigation { font-family: "Space Grotesk", sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.dh-blog-header .wp-block-navigation a { color: var(--dh-blog-ink); }
.dh-blog-header .wp-block-navigation a:hover,
.dh-blog-header .wp-block-navigation a:focus-visible { color: var(--dh-blog-primary-deep); }
.dh-blog-header .wp-block-button__link,
.dh-blog-article__cta .wp-block-button__link {
	background: var(--dh-blog-primary);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 10px 20px rgba(18, 184, 179, 0.18);
	color: #fff;
	font-family: "Space Grotesk", sans-serif;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.075em;
	padding: 0.87rem 1.15rem;
	text-transform: uppercase;
}
.dh-blog-header .wp-block-button__link:hover,
.dh-blog-article__cta .wp-block-button__link:hover { background: var(--dh-blog-primary-deep); box-shadow: 0 14px 25px rgba(18, 184, 179, 0.28); transform: translateY(-1px); }
.dh-blog-header .wp-block-navigation__responsive-container-open { color: var(--dh-blog-ink); }
.dh-blog-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--dh-blog-paper);
	height: 100dvh;
	inset: 0;
	max-height: 100dvh;
	overflow-y: auto;
	padding: 1.5rem;
	width: 100vw;
}
.dh-blog-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: stretch; min-height: 100%; padding: 4.5rem 0 2rem; }
.dh-blog-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: stretch; gap: 0.3rem; width: 100%; }
.dh-blog-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { border-bottom: 1px solid var(--dh-blog-line); display: block; font-size: 1.35rem; letter-spacing: -0.035em; padding: 1rem 0; text-transform: none; }
.dh-blog-header .wp-block-navigation__responsive-container-close { color: var(--dh-blog-ink); }

/* Blog archive cards. */
.dh-blog-main { padding: 0 0 clamp(4.5rem, 9vw, 8rem); }
.dh-blog-hero { box-sizing: border-box; max-width: 100%; padding: clamp(5rem, 9vw, 8.8rem) max(24px, calc((100vw - 1180px) / 2)) clamp(3.7rem, 7vw, 6.5rem); text-align: center; }
.dh-blog-hero > * { margin-left: auto; margin-right: auto; max-width: 830px; }
.dh-blog-eyebrow,
.dh-blog-card__category a,
.dh-blog-card__category {
	align-items: center;
	color: var(--dh-blog-primary-deep) !important;
	display: inline-flex;
	font-family: "Space Grotesk", sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	gap: 0.35rem;
	letter-spacing: 0.115em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}
.dh-blog-eyebrow::before { background: var(--dh-blog-primary); border-radius: 50%; content: ""; height: 0.55rem; width: 0.55rem; }
.dh-blog-hero h1,
.dh-blog-hero .wp-block-query-title { font-size: clamp(3rem, 6.1vw, 6.4rem); line-height: 0.92; margin: 1.25rem auto 1.5rem; max-width: 13ch; text-transform: uppercase; }
.dh-blog-hero h1 + p,
.dh-blog-hero .wp-block-term-description { color: var(--dh-blog-muted); font-size: clamp(1.05rem, 1.5vw, 1.24rem); line-height: 1.7; max-width: 670px; }
.dh-blog-feed { box-sizing: border-box; margin-inline: auto; max-width: 1240px; padding-inline: 24px; }
.dh-blog-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.dh-blog-grid .wp-block-post { margin: 0; min-width: 0; }
.dh-blog-card { background: var(--dh-blog-card); border: 1px solid var(--dh-blog-line); border-radius: var(--dh-blog-radius); box-shadow: 0 6px 18px rgba(24, 33, 38, 0.025); height: 100%; overflow: hidden; padding: 0; transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease; }
.dh-blog-card:hover { border-color: rgba(18, 184, 179, 0.45); box-shadow: var(--dh-blog-shadow); transform: translateY(-5px); }
.dh-blog-card .wp-block-post-featured-image { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #d9f1f0, #f7fafb); margin: 0; overflow: hidden; }
.dh-blog-card .wp-block-post-featured-image a,
.dh-blog-card .wp-block-post-featured-image img { display: block; height: 100%; width: 100%; }
.dh-blog-card .wp-block-post-featured-image img { object-fit: cover; transition: transform 280ms ease; }
.dh-blog-card:hover .wp-block-post-featured-image img { transform: scale(1.035); }
.dh-blog-card__body { align-content: start; box-sizing: border-box; display: grid; gap: 0; min-height: 320px; padding: 1.65rem 1.65rem 1.55rem; }
.dh-blog-card__category { margin: 0 0 1rem; }
.dh-blog-card__category a { color: inherit; }
.dh-blog-card .wp-block-post-title { font-size: clamp(1.45rem, 2vw, 1.78rem); line-height: 1.05; margin: 0 0 0.85rem; }
.dh-blog-card .wp-block-post-title a { color: var(--dh-blog-ink); text-decoration: none; }
.dh-blog-card .wp-block-post-title a:hover { color: var(--dh-blog-primary-deep); }
.dh-blog-card__date { color: var(--dh-blog-muted); font-size: 0.82rem; margin: 0 0 1rem; }
.dh-blog-card .wp-block-post-excerpt { color: var(--dh-blog-muted); font-size: 0.96rem; line-height: 1.62; margin: 0; }
.dh-blog-card .wp-block-post-excerpt__more-link { display: none; }
.dh-blog-card__link { align-self: end; color: var(--dh-blog-primary-deep) !important; font-family: "Space Grotesk", sans-serif; font-size: 0.86rem; font-weight: 700; margin: 1.45rem 0 0; text-decoration: none !important; }
.dh-blog-card__link:hover { color: var(--dh-blog-ink) !important; }
.wp-block-query-pagination { gap: 0.75rem; margin-top: 3.4rem; }
.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers { border: 1px solid var(--dh-blog-line); border-radius: 0.75rem; color: var(--dh-blog-ink); font-family: "Space Grotesk", sans-serif; font-size: 0.9rem; padding: 0.65rem 0.82rem; text-decoration: none; }
.wp-block-query-pagination a:hover,
.wp-block-query-pagination .current { background: var(--dh-blog-primary); border-color: var(--dh-blog-primary); color: #fff; }

/* Single articles. */
.dh-blog-single-main { padding-top: clamp(4rem, 8vw, 7rem); }
.dh-blog-article { box-sizing: border-box; margin-inline: auto; max-width: 880px; padding-inline: 24px; }
.dh-blog-article > .wp-block-post-title { font-size: clamp(2.75rem, 5.8vw, 5.5rem); line-height: 0.94; margin: 1rem 0 1.45rem; max-width: 14ch; }
.dh-blog-article__meta { color: var(--dh-blog-muted); font-size: 0.9rem; gap: 0.65rem; margin: 0 0 2.2rem; }
.dh-blog-article__meta > * + *::before { content: "·"; margin-right: 0.65rem; }
.dh-blog-article__image { border-radius: var(--dh-blog-radius); margin: 0 0 clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.dh-blog-article__image img { display: block; width: 100%; }
.dh-blog-article .wp-block-post-content { color: #344047; font-size: clamp(1.08rem, 1.4vw, 1.2rem); line-height: 1.82; max-width: 720px; }
.dh-blog-article .wp-block-post-content > :is(h2, h3, h4) { color: var(--dh-blog-ink); line-height: 1.04; margin: 2.55em 0 0.7em; }
.dh-blog-article .wp-block-post-content h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
.dh-blog-article .wp-block-post-content h3 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
.dh-blog-article .wp-block-post-content a { color: var(--dh-blog-primary-deep); font-weight: 700; }
.dh-blog-article .wp-block-post-content :is(ul, ol) { padding-left: 1.35rem; }
.dh-blog-article .wp-block-post-content blockquote { border-left: 4px solid var(--dh-blog-primary); color: var(--dh-blog-ink); font-family: "Space Grotesk", sans-serif; font-size: 1.35em; font-weight: 700; line-height: 1.38; margin: 2.4rem 0; padding: 0.35rem 0 0.35rem 1.25rem; }
.dh-blog-article__cta { background: linear-gradient(135deg, #e6f8f7, #f7fafb); border: 1px solid #cfeceb; border-radius: var(--dh-blog-radius); margin-top: clamp(4rem, 8vw, 6rem); padding: clamp(2rem, 5vw, 3.8rem); text-align: center; }
.dh-blog-article__cta > * { margin-left: auto; margin-right: auto; max-width: 620px; }
.dh-blog-article__cta h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0.7rem auto 1rem; }
.dh-blog-article__cta p:not(.dh-blog-eyebrow) { color: var(--dh-blog-muted); }
.dh-blog-article__cta .wp-block-buttons { justify-content: center; margin-top: 1.5rem; }

/* Footer. */
.dh-blog-footer { background: var(--dh-blog-ink); margin-top: 0; padding: clamp(3.7rem, 7vw, 5.5rem) 24px 1.7rem; text-align: center; }
.dh-blog-footer > .alignwide { margin-inline: auto; max-width: 1000px; }
.dh-blog-brand--footer { color: #fff; justify-content: center; }
.dh-blog-footer__intro { color: rgba(255,255,255,0.62) !important; margin: 1.25rem auto 2.3rem; max-width: 580px; }
.dh-blog-footer .dh-blog-footer__nav { justify-content: center; }
.dh-blog-footer .dh-blog-footer__nav a { color: rgba(255,255,255,0.7); font-family: "Space Grotesk", sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.dh-blog-footer .dh-blog-footer__nav a:hover { color: var(--dh-blog-primary); }
.dh-blog-footer__contact { color: rgba(255,255,255,0.55) !important; font-size: 0.92rem; margin-top: 2rem; }
.dh-blog-footer__contact a { color: inherit !important; text-decoration: none; }
.dh-blog-footer__contact a:hover { color: var(--dh-blog-primary) !important; }
.dh-blog-footer__rule { background: rgba(255,255,255,0.13); height: 1px; margin: 2.8rem 0 1.3rem; }
.dh-blog-footer .dh-footer__copyright { color: rgba(255,255,255,0.42) !important; }

@media (max-width: 900px) {
	.dh-blog-header .dh-header__inner { gap: 1rem; }
	.dh-blog-header .wp-block-navigation { margin-left: auto; }
	.dh-blog-header .wp-block-buttons { display: none; }
	.dh-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.dh-blog-header .dh-header__inner { min-height: 72px; width: min(100% - 32px, 1240px); }
	.dh-blog-brand { font-size: 1rem; }
	.dh-blog-brand__mark { border-radius: 0.55rem; height: 1.85rem; width: 1.85rem; }
	.dh-blog-hero { padding: 4.4rem 20px 3.5rem; }
	.dh-blog-hero h1,
	.dh-blog-hero .wp-block-query-title { font-size: clamp(2.8rem, 15vw, 4.5rem); }
	.dh-blog-feed { padding-inline: 16px; }
	.dh-blog-grid { grid-template-columns: 1fr; }
	.dh-blog-card__body { min-height: 0; padding: 1.45rem; }
	.dh-blog-article { padding-inline: 20px; }
	.dh-blog-article > .wp-block-post-title { font-size: clamp(2.55rem, 14vw, 4rem); }
	.dh-blog-article__cta { border-radius: 1.2rem; }
}
