/* DMS Case Studies — front-end styling. Scoped to .dmscs to avoid theme bleed. */

.dmscs { margin: 0; }

/* ---- Hero with video background ---- */
.dmscs-hero {
	position: relative;
	min-height: 70vh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: #081c1c;
}
.dmscs-hero__video,
.dmscs-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background-size: cover;
	background-position: center;
	z-index: 0;
}
.dmscs-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(8,28,28,0.92) 0%, rgba(8,28,28,0.45) 45%, rgba(8,28,28,0.25) 100%);
}
.dmscs-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 1100px;
	margin: 0 auto;
	padding: 3rem 1.5rem;
	width: 100%;
	color: #fff;
}
.dmscs-hero__title {
	color: #fff;
	font-size: clamp(1.9rem, 4vw, 3.2rem);
	line-height: 1.1;
	margin: 0 0 1rem;
	max-width: 24ch;
}
/* Length-aware sizing: long narrative headlines step down so they don't dominate. */
.dmscs-hero__title.is-long  { font-size: clamp(1.6rem, 3vw, 2.5rem); max-width: 28ch; }
.dmscs-hero__title.is-xlong { font-size: clamp(1.4rem, 2.4vw, 2rem); max-width: 32ch; }
.dmscs-hero__meta {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.25rem;
	padding: 0;
	margin: 0 0 .75rem;
	font-size: .95rem;
	letter-spacing: .02em;
	text-transform: uppercase;
	opacity: .92;
}
.dmscs-hero__meta li { position: relative; padding-left: 1.25rem; list-style: none; }
.dmscs-hero__meta li::marker { content: ""; }   /* kill the native bullet the theme re-applies */
.dmscs-hero__meta li::before {
	content: "";
	position: absolute; left: 0; top: 50%;
	width: 6px; height: 6px; margin-top: -3px;
	background: #f6ebd5; border-radius: 50%;
}
.dmscs-hero__meta li:first-child { padding-left: 0; }
.dmscs-hero__meta li:first-child::before { display: none; }
.dmscs-hero__partners { margin: 0; font-style: italic; opacity: .85; }

/* ---- Body ---- */
.dmscs-body {
	max-width: 760px;
	margin: 3rem auto;
	padding: 0 1.5rem;
	font-size: 1.075rem;
	line-height: 1.7;
}
.dmscs-body h2 { margin: 2.25rem 0 .75rem; line-height: 1.2; }
.dmscs-body h3 { margin: 1.75rem 0 .5rem; }
.dmscs-body img { max-width: 100%; height: auto; border-radius: 8px; }

/* ---- Galleries ---- */
.dmscs-gallery-section { max-width: 1100px; margin: 2.5rem auto; padding: 0 1.5rem; }
.dmscs-gallery-heading {
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	border-bottom: 2px solid #081c1c;
	padding-bottom: .4rem;
	margin-bottom: 1.25rem;
}
/* Horizontal slider per section */
.dmscs-slider { position: relative; }
.dmscs-slider__track {
	display: flex;
	gap: .6rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding-bottom: .5rem;
	scrollbar-width: thin;
}
.dmscs-slider__slide {
	flex: 0 0 auto;
	width: min(360px, 80%);
	aspect-ratio: 4 / 3;
	scroll-snap-align: start;
	overflow: hidden;
	border-radius: 6px;
}
.dmscs-gallery__item { display: block; }
.dmscs-gallery__item img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}
.dmscs-gallery__item:hover img { transform: scale(1.04); }

.dmscs-slider__nav {
	position: absolute;
	top: calc(50% - .25rem);
	transform: translateY(-50%);
	z-index: 3;
	width: 44px; height: 44px;
	border: none; border-radius: 50%;
	background: rgba(8,28,28,.82); color: #f6ebd5;
	font-size: 1.6rem; line-height: 1;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background .2s ease;
}
.dmscs-slider__nav:hover { background: #081c1c; }
.dmscs-slider__nav--prev { left: -8px; }
.dmscs-slider__nav--next { right: -8px; }
@media (max-width: 700px) {
	.dmscs-slider__slide { width: 78%; }
	.dmscs-slider__nav { display: none; }   /* swipe on touch */
}

/* ---- FAQ ---- */
.dmscs-faq { max-width: 760px; margin: 3rem auto; padding: 0 1.5rem; }
.dmscs-faq > h2 { margin-bottom: 1rem; }
.dmscs-faq__item {
	border: 1px solid rgba(8,28,28,.2);
	border-radius: 10px;
	padding: .5rem 1.1rem;
	margin-bottom: .6rem;
}
.dmscs-faq__item summary {
	cursor: pointer;
	font-weight: 600;
	padding: .6rem 0;
	list-style: none;
}
.dmscs-faq__item summary::-webkit-details-marker { display: none; }
.dmscs-faq__item summary::after { content: "+"; float: right; font-weight: 400; opacity: .6; }
.dmscs-faq__item[open] summary::after { content: "–"; }
.dmscs-faq__answer { padding-bottom: .75rem; line-height: 1.6; }

/* ---- CTA ---- */
.dmscs-cta {
	max-width: 760px;
	margin: 3rem auto 4rem;
	padding: 2rem 1.5rem;
	text-align: center;
}
.dmscs-cta__btn {
	display: inline-block;
	margin-top: 1rem;
	background: #081c1c;
	color: #f6ebd5;
	padding: .85rem 1.75rem;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
}
.dmscs-cta__btn:hover { background: #0b2b2b; }

@media (max-width: 600px) {
	.dmscs-hero { min-height: 60vh; }
}
