/*
Theme Name: AdroitDBA
Template: twentytwentyfive
Description: AdroitDBA child theme of Twenty Twenty-Five. Navy + Amber by default; Navy + Teal and Black + Blue are style variations (Appearance → Editor → Styles).
Version: 1.3.0
Text Domain: adroitdba
License: GNU General Public License v2 or later
Source: terraform/adroitdba-wp/wordpress/themes/adroitdba/ in the infrastructure repo — edit there, not on the server.
*/

/* Colors come from theme.json presets (--wp--preset--color--*) so every style
   variation re-colors these components too. */

:root {
	--adb-dark: var(--wp--preset--color--dark);
	--adb-primary: var(--wp--preset--color--primary);
	--adb-accent: var(--wp--preset--color--accent);
	--adb-accent-hover: var(--wp--preset--color--accent-hover);
	--adb-accent-ink: var(--wp--preset--color--accent-ink);
	--adb-on-dark: var(--wp--preset--color--on-dark);
	--adb-on-dark-muted: var(--wp--preset--color--on-dark-muted);
	--adb-line: var(--wp--preset--color--line);
	--adb-surface: var(--wp--preset--color--surface);
	--adb-ink: var(--wp--preset--color--contrast);
	--adb-muted: var(--wp--preset--color--muted);
}

/* ---------- Buttons: hover/focus only change the background; text color is pinned
   so it never fades into the button (≥4.5:1 in every palette). ---------- */
.wp-element-button,
.wp-block-button__link {
	transition: background-color .15s, border-color .15s;
}
.wp-element-button:hover,
.wp-element-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
	background-color: var(--adb-accent-hover) !important;
	color: var(--adb-accent-ink) !important;
}
.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid var(--adb-primary);
	outline-offset: 2px;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent !important;
	color: var(--adb-on-dark) !important;
	border: 1px solid var(--adb-on-dark-muted) !important;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background: var(--adb-on-dark) !important;
	color: var(--adb-dark) !important;
	border-color: var(--adb-on-dark) !important;
}
@media (prefers-reduced-motion: reduce) {
	.wp-element-button, .wp-block-button__link { transition: none; }
}

/* ---------- Header ---------- */
.adb-header a { text-decoration: none; }
.adb-header .wp-block-navigation a:not(.wp-block-button__link):hover { color: var(--adb-accent); }
/* Logo always on a white tile: its black outline disappears on the dark header. */
.adb-header .wp-block-site-logo img {
	background: #fff;
	border-radius: 8px;
	padding: 4px;
}

/* ---------- Eyebrow label ---------- */
.adb-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* ---------- Hero check report ---------- */
.adb-report {
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 10px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 14px;
}
.adb-report ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.adb-report li { display: flex; justify-content: space-between; gap: 12px; }
.adb-report .ok { color: #5DD39E; }
.adb-report .warn { color: #F6C453; }

/* ---------- Pricing cards ---------- */
/* Wrap to 2×2 (then 1 column) instead of squeezing four cards until words break. */
.wp-block-columns.adb-plans {
	gap: 20px;
	flex-wrap: wrap !important;
}
.wp-block-columns.adb-plans > .adb-plan {
	flex: 1 1 240px !important;
	min-width: 240px;
}
.adb-plan,
.adb-plan * {
	word-break: normal;
	overflow-wrap: normal;
	hyphens: manual;
}
.adb-plan {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--adb-line);
	border-radius: 8px;
	overflow: hidden;
	background: var(--wp--preset--color--base);
}
.adb-plan.is-featured { border: 3px solid var(--adb-accent); }
.adb-plan > .adb-plan-head { margin: 0; }
.adb-plan h3 {
	text-transform: uppercase;
	letter-spacing: .02em;
	display: flex;
	align-items: center;
	gap: 10px;
}
.adb-plan.is-featured h3::before {
	content: "";
	width: 9px;
	height: 17px;
	border: solid var(--adb-accent);
	border-width: 0 4px 4px 0;
	transform: rotate(45deg);
	margin: -4px 4px 0 2px;
}
.adb-plan .adb-price { font-variant-numeric: tabular-nums; line-height: 1; }
.adb-pill {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--adb-accent);
	color: var(--adb-accent-ink);
	font-weight: 600;
	font-size: 13px;
}
.adb-checklist { list-style: none; padding-left: 0; display: grid; gap: 12px; }
.adb-checklist li { display: flex; gap: 12px; align-items: baseline; }
.adb-checklist li::before {
	content: "";
	flex: none;
	width: 6px;
	height: 12px;
	border: solid var(--adb-primary);
	border-width: 0 3px 3px 0;
	transform: rotate(45deg) translateY(-2px);
}
.adb-plan .wp-block-buttons { margin-top: auto; }
.adb-plan .wp-block-button { width: 100%; }
.adb-plan .wp-block-button__link { width: 100%; }

/* ---------- One-time services table ---------- */
.adb-services-table table { font-variant-numeric: tabular-nums; }
.adb-services-table td:last-child,
.adb-services-table th:last-child { text-align: right; white-space: nowrap; }

/* ---------- FAQ ---------- */
.adb-faq details { border-bottom: 1px solid var(--adb-line); padding-block: 14px; }
.adb-faq summary { cursor: pointer; font-weight: 600; }

/* ---------- Blog code (feature criterion 15) ---------- */
.wp-block-code,
pre {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 14px;
	line-height: 1.55;
	white-space: pre;
	overflow-x: auto;
	background: var(--adb-surface);
	border: 1px solid var(--adb-line);
	border-radius: 6px;
	padding: 16px;
}
:not(pre) > code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: .9em;
	background: var(--adb-surface);
	padding: 1px 5px;
	border-radius: 4px;
}

/* ---------- Problems grid (home, services) ---------- */
.adb-problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.adb-problem { margin: 0 !important; padding: 20px 22px; border: 1px solid var(--adb-line); border-left: 4px solid var(--adb-accent); border-radius: 8px; }
.adb-problem h3 { margin: 0 0 8px; font-size: 1.1rem; }
.adb-problem p { margin: 0; color: var(--adb-muted); }

/* ---------- Two free offers ---------- */
.wp-block-columns.adb-offer-cards { gap: 20px; margin-top: 24px; }
.adb-offer { padding: 24px; border: 1px solid var(--adb-line); border-radius: 10px; background: var(--adb-surface); display: flex; flex-direction: column; }
.adb-offer h3 { margin: 0 0 8px; }
.adb-offer p { flex: 1; }

/* ---------- How we work ---------- */
.adb-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 24px; }
.adb-step-card { margin: 0 !important; padding: 20px; border-radius: 8px; background: var(--wp--preset--color--base); border: 1px solid var(--adb-line); }
.adb-step-card h3 { margin: 4px 0 8px; font-size: 1.05rem; }
.adb-step-card p { margin: 0; color: var(--adb-muted); }
.adb-step-card p.adb-step-num { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--adb-accent-ink); background: var(--adb-accent); margin-bottom: 8px; }

/* ---------- End-of-post call to action ---------- */
.adb-post-cta { margin-top: 48px; padding: 24px 28px; border-radius: 10px; background: var(--adb-dark); color: var(--adb-on-dark); }
.adb-post-cta p { margin: 0 0 12px; }
.adb-post-cta .adb-post-cta-title { font-family: var(--wp--preset--font-family--display); font-size: 1.35rem; font-weight: 700; color: var(--wp--preset--color--base); }
.adb-post-cta-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 0 !important; }
.adb-post-cta a { color: var(--adb-on-dark); }
.adb-post-cta a.adb-post-cta-primary { padding: 10px 18px; border-radius: 6px; background: var(--adb-accent); color: var(--adb-accent-ink); font-weight: 600; text-decoration: none; }
.adb-post-cta a.adb-post-cta-primary:hover,
.adb-post-cta a.adb-post-cta-primary:focus-visible { background: var(--adb-accent-hover); outline: 3px solid var(--adb-on-dark); outline-offset: 2px; }

/* ---------- Our team (anonymous profiles) ---------- */
.wp-block-columns.adb-team-cards { gap: 20px; margin-top: 24px; }
.adb-member { padding: 24px; border: 1px solid var(--adb-line); border-top: 4px solid var(--adb-primary); border-radius: 10px; }
.adb-member .adb-member-years { margin: 0; font-weight: 700; font-size: 1.35rem; color: var(--adb-primary); }
.adb-member h3 { margin: 2px 0 12px; font-size: 1rem; color: var(--adb-muted); text-transform: uppercase; letter-spacing: .05em; }
.adb-member ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* Blog categories: filter row on /blog/ and category pages, category links on posts */
.adb-cat-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 36px;
	padding: 0;
	list-style: none;
}
.adb-cat-nav li a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	font-size: 14px;
	text-decoration: none;
	color: var(--wp--preset--color--dark);
}
.adb-cat-nav li a:hover,
.adb-cat-nav li.current-cat a {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}
.adb-post-cats a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.adb-eyebrow a {
	color: inherit;
	text-decoration: none;
}
