/* Django Services — front-end grid. Scoped under .django-services-grid so it
   won't leak into the rest of the theme. Colors are hard-coded to match the
   Django Digital brand so this renders consistently in any WordPress theme. */

.django-services-grid {
	--django-card-bg: #1b1a18;
	--django-line: rgba(238, 234, 225, 0.14);
	--django-cream: #eeeae1;
	--django-cream-dim: #b8b3a8;
	display: grid;
	grid-template-columns: repeat(var(--django-cols, 2), 1fr);
	gap: 20px;
	box-sizing: border-box;
}
.django-services-grid * {
	box-sizing: border-box;
}
.django-service-card {
	background: var(--django-card-bg);
	border: 1px solid var(--django-line);
	padding: 38px;
	min-height: 280px;
	display: flex;
	flex-direction: column;
	transition: background 0.4s ease, transform 0.4s ease;
}
.django-service-card:hover {
	transform: translateY(-6px);
	background: #221f1c;
}
.django-service-media {
	width: 48px;
	height: 48px;
	margin-bottom: 22px;
}
.django-service-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.django-service-fallback {
	width: 100%;
	height: 100%;
	border-radius: 8px;
	border: 1px solid;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 22px;
	font-weight: 700;
}
.django-service-tag {
	font-family: 'IBM Plex Mono', Menlo, Consolas, monospace;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--django-cream-dim);
	margin: 0 0 10px;
}
.django-service-title {
	font-family: 'Familjen Grotesk', sans-serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 1.25;
	color: var(--django-cream);
	margin: 0 0 12px;
}
.django-service-line {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--django-cream-dim);
	margin: 0;
	margin-top: auto;
	padding-top: 4px;
}

@media (max-width: 760px) {
	.django-services-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.django-service-card {
		padding: 26px;
		min-height: auto;
	}
}

/* ---------------------------------------------------------------------
   SECTIONS layout — [django_services layout="sections"], used on the
   dedicated Services page. One full-width block per service: optional
   banner photo, then an eyebrow label + paragraph on the left with the
   skill-tag pills wrapping on the right. Light background throughout
   (matches the reference design) — colors hard-coded, same approach as
   the grid above, so this renders consistently regardless of theme.
   --------------------------------------------------------------------- */
.django-services-sections {
	--django-bg: #e9e6df;
	--django-ink: #0a0908;
	--django-ink-dim: #57534a;
	background: var(--django-bg);
	color: var(--django-ink);
	box-sizing: border-box;
}
.django-services-sections * {
	box-sizing: border-box;
}

.django-service-banner {
	width: 100%;
	height: clamp(220px, 32vw, 460px);
	overflow: hidden;
}
.django-service-banner-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.django-service-section {
	padding: clamp(40px, 6vw, 70px) clamp(20px, 5vw, 64px);
	border-bottom: 1px solid rgba(10, 9, 8, 0.12);
}
.django-service-eyebrow {
	font-family: 'IBM Plex Mono', Menlo, Consolas, monospace;
	font-size: 13px;
	letter-spacing: 0.06em;
	color: var(--django-ink-dim);
	margin: 0 0 20px;
}
.django-service-section-body {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 48px;
	align-items: start;
}
.django-service-desc {
	font-family: 'PT Serif', Georgia, serif;
	font-size: clamp(20px, 2.6vw, 28px);
	line-height: 1.45;
	color: var(--django-ink);
	max-width: 46ch;
	margin: 0;
}
.django-service-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-content: flex-start;
}
.django-service-pill {
	display: inline-block;
	padding: 12px 22px;
	border: 1px solid rgba(10, 9, 8, 0.25);
	border-radius: 999px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	color: var(--django-ink);
	white-space: nowrap;
}

@media (max-width: 900px) {
	.django-service-section-body {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}
@media (max-width: 760px) {
	.django-service-section {
		padding: 34px 20px;
	}
	.django-service-desc {
		font-size: clamp(19px, 5vw, 22px);
	}
	.django-service-pill {
		padding: 10px 18px;
		font-size: 13px;
	}
}
