/*
Theme Name: TDJ Advisory
Theme URI: https://www.tdjadvisory.nl
Author: TDJ Advisory
Author URI: https://www.tdjadvisory.nl
Description: Custom block theme voor TDJ Advisory, gebaseerd op de huisstijl en content van de TDJ Advisory pitch deck. Volledig opgebouwd met native WordPress/Gutenberg blocks en patterns, responsive voor desktop en mobiel.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: tdj-advisory
*/

/* ---------------------------------------------------------
   Kleine stukjes CSS die (nog) niet via theme.json kunnen:
   nummer-badges, domein-iconen, kaart-schaduw, mobiel stapelen.
   Alle kleuren/fonts komen uit theme.json (design tokens).
--------------------------------------------------------- */

.tdj-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: var(--wp--preset--color--blue-600);
	color: #fff;
	font-weight: 800;
	font-size: 1rem;
	flex-shrink: 0;
}

.tdj-mini-domain {
	display: flex;
	align-items: center;
	gap: .5rem;
	background: var(--wp--preset--color--navy-700);
	border-radius: 10px;
	padding: .55rem .7rem;
	color: #fff;
	min-height: 2.6rem;
	flex: 1;
}
.tdj-mini-domain-icon { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.tdj-mini-domain strong { display: block; font-size: .72rem; line-height: 1.15; }
.tdj-mini-domain small { display: block; font-size: .6rem; opacity: .75; margin-top: 1px; }

.tdj-centre-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 26px;
}
.tdj-centre-row {
	display: flex;
	gap: 14px;
}
.tdj-centre-circle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 92px;
	height: 92px;
	border-radius: 999px;
	background: #16264F;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	font-weight: 800;
	font-size: .54rem;
	line-height: 1.3;
	padding: 6px;
	box-shadow: 0 4px 14px rgba(11,23,48,.3);
	z-index: 2;
	border: 3px solid var(--wp--preset--color--blue-50);
}
.tdj-centre-circle-sub { font-weight: 600; font-size: .45rem; letter-spacing: .03em; opacity: .85; }

/* Larger "Sound Familiar"-style cards for the centre diagram on Services,
   proportions measured from the original deck slide (tight row gap, wide
   column gap for the circle, boxy taller cards) */
.tdj-centre-wrap-lg { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 700px; margin: 0 auto; }
.tdj-centre-row-lg { display: flex; gap: 150px; }
.tdj-familiar-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	background: var(--wp--preset--color--navy-700);
	border-radius: 10px;
	padding: 18px 20px;
	color: #fff;
	position: relative;
	min-height: 92px;
}
.tdj-familiar-badge {
	flex-shrink: 0;
	width: 1.7rem !important;
	height: 1.7rem !important;
	font-size: .8rem !important;
	position: absolute;
	top: -10px;
	left: -10px;
	border: 2px solid var(--wp--preset--color--blue-50);
	z-index: 3;
}
.tdj-familiar-icon { width: 1.5rem; height: 1.5rem; }
.tdj-familiar-name { font-weight: 700; font-size: .88rem; line-height: 1.25; }
.tdj-familiar-name small { display: block; font-weight: 600; font-size: .68rem; opacity: .75; margin-top: 4px; }
.tdj-centre-circle-lg {
	width: 140px;
	height: 140px;
	font-size: .64rem;
}
.tdj-centre-circle-lg .tdj-centre-circle-sub { font-size: .53rem; }

@media (max-width: 600px) {
	.tdj-centre-wrap-lg { gap: 20px; max-width: 100%; }
	.tdj-centre-row-lg { flex-direction: column; gap: 10px; }
	.tdj-centre-circle-lg { position: static; transform: none; margin: 4px auto; }
	.tdj-familiar-badge { position: static; margin-right: 4px; border: none; }
	.tdj-familiar-card { flex-direction: row; align-items: center; min-height: auto; }
}

@media (max-width: 600px) {
	.tdj-centre-row { flex-direction: column; }
	.tdj-centre-circle { position: static; transform: none; margin: 4px auto; }
}

.tdj-icon-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 999px;
	background: var(--wp--preset--color--blue-600);
	flex-shrink: 0;
}
.tdj-icon-circle svg { width: 1.7rem; height: 1.7rem; }

.tdj-card {
	background: #FFFFFF !important;
	border-radius: 18px;
	box-shadow: 0 2px 10px rgba(11,23,48,.08);
}

.tdj-card-transparent {
	background: transparent !important;
	border: 1px solid #C9DCFC;
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.tdj-pain-box {
	background: var(--wp--preset--color--blue-100);
	border-radius: 10px;
	padding: 14px 16px;
	font-weight: 700;
	margin-bottom: 10px;
	min-height: 68px;
	display: flex;
	align-items: center;
}
.tdj-impact-box {
	background: var(--wp--preset--color--blue-50);
	border-radius: 10px;
	padding: 14px 16px;
	color: var(--wp--preset--color--muted);
	margin-bottom: 10px;
	min-height: 68px;
	display: flex;
	align-items: center;
}
.tdj-examples-box {
	background: #fff;
	border: 1px solid var(--wp--preset--color--blue-100);
	border-radius: 10px;
	padding: 14px 16px;
	flex: 1;
}
.tdj-familiar-content {
	display: flex;
	flex-direction: column;
	flex: 1;
}
.tdj-examples-box ul { margin: 0; padding-left: 1.1em; }
.tdj-examples-box li { margin-bottom: 4px; }

.tdj-card-navy {
	background: var(--wp--preset--color--navy-700) !important;
	border-radius: 18px;
	color: #fff;
}

.tdj-hero-bg {
	background-image:
		linear-gradient(180deg, rgba(6,12,28,.55) 0%, rgba(8,16,36,.72) 55%, rgba(8,16,36,.88) 100%),
		url('assets/img/hero-globe.jpg');
	background-size: cover;
	background-position: center;
	position: relative;
}

.tdj-nav a {
	padding: .5rem 1rem;
	border-radius: 999px;
	transition: background .15s ease, color .15s ease;
}
.tdj-nav a.tdj-nav-active {
	background: var(--wp--preset--color--navy-900) !important;
	color: #fff !important;
}
.tdj-dropdown { position: relative; display: inline-block; }
.tdj-dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border: 1px solid #EEF1F8;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(11,23,48,.12);
	padding: .5rem;
	min-width: 240px;
	z-index: 50;
}
.tdj-dropdown-menu a {
	display: block;
	padding: .55rem .75rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: .92rem;
	color: #101B33;
	text-decoration: none;
	white-space: nowrap;
}
.tdj-dropdown-menu a:hover { background: var(--wp--preset--color--blue-50); }
.tdj-dropdown:hover .tdj-dropdown-menu,
.tdj-dropdown:focus-within .tdj-dropdown-menu { display: block; }

.tdj-burger {
	display: none;
	background: none;
	border: none;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: #101B33;
	padding: .25rem .5rem;
}

@media (max-width: 781px) {
	.tdj-burger { display: block; }
	.tdj-nav-collapsible {
		display: none;
		width: 100%;
		flex-basis: 100%;
		flex-direction: column;
		align-items: flex-start !important;
		gap: .25rem !important;
		margin-top: 14px;
	}
	.tdj-nav-collapsible.is-open { display: flex; }
	.tdj-nav { flex-direction: column; align-items: flex-start !important; width: 100%; gap: .25rem !important; }
	.tdj-nav > a, .tdj-dropdown { width: 100%; }
	.tdj-nav > a.tdj-nav-active { width: auto; }
	.wp-block-buttons { width: 100%; margin-top: 10px; }
	.wp-block-buttons .wp-block-button__link { display: block; text-align: center; }
	.tdj-dropdown-menu { display: none; }
	.tdj-dropdown.is-open .tdj-dropdown-menu { display: block; }
}

.tdj-pill-link {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	border-radius: 999px;
	padding: .9rem 1.75rem;
	font-weight: 700;
	text-decoration: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--navy-900) !important;
	color: #fff !important;
}

/* Logo: bars + TDJ ADVISORY wordmark (herbouwd als HTML/CSS, geen afbeelding nodig) */
.tdj-logo {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	text-decoration: none !important;
	line-height: 1;
}
.tdj-logo-bars {
	display: inline-flex;
	align-items: flex-end;
	gap: 3px;
	height: 26px;
}
.tdj-logo-bars span {
	display: inline-block;
	width: 5px;
	border-radius: 2px;
	background: var(--wp--preset--color--blue-600);
}
.tdj-logo-bars span:nth-child(1) { height: 40%; background: #A9C0F5; }
.tdj-logo-bars span:nth-child(2) { height: 65%; background: #6F92E0; }
.tdj-logo-bars span:nth-child(3) { height: 85%; background: #3E63C9; }
.tdj-logo-bars span:nth-child(4) { height: 100%; background: #1B2D5F; }
.tdj-logo-text { display: flex; flex-direction: column; }
.tdj-logo-text .tdj-logo-tdj { font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; color: inherit; }
.tdj-logo-text .tdj-logo-advisory { font-weight: 600; font-size: .55rem; letter-spacing: .28em; color: inherit; opacity: .75; text-transform: uppercase; }
.tdj-logo.is-light .tdj-logo-bars span:nth-child(1) { background: rgba(255,255,255,.45); }
.tdj-logo.is-light .tdj-logo-bars span:nth-child(2) { background: rgba(255,255,255,.65); }
.tdj-logo.is-light .tdj-logo-bars span:nth-child(3) { background: rgba(255,255,255,.85); }
.tdj-logo.is-light .tdj-logo-bars span:nth-child(4) { background: #fff; }
.tdj-logo.is-light .tdj-logo-text { color: #fff; }

/* Mobiel: domeinen/cards altijd onder elkaar, nooit 4-koloms tabel */
@media (max-width: 781px) {
	.wp-block-columns.tdj-domains-grid {
		flex-wrap: wrap !important;
	}
	.wp-block-columns.tdj-domains-grid > .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
		margin-left: 0 !important;
		margin-bottom: 1.25rem;
	}
}

@media (max-width: 600px) {
	.wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-wrap: wrap !important;
	}
	.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}
	h1 { font-size: 2.1rem !important; }
	h2 { font-size: 1.6rem !important; }
}
