/*
 * İçerik bölümleri: SSS, proje galerisi, öncesi/sonrası, yorumlar, video
 * bandı ve şube kartları.
 *
 * about.css'teki değişkenleri paylaşır; burada yalnızca bu bölümlere özgü
 * kurallar vardır.
 */

.ms-qa,
.ms-gallery,
.ms-ba,
.ms-quotes,
.ms-branches {
	--ms-about-gap: clamp(56px, 7vw, 112px);
	--ms-about-ink: var(--ms-ink, #0d1b33);
	--ms-about-muted: var(--ms-muted, #5b6b82);
	--ms-about-line: var(--ms-line, rgba(0, 20, 63, 0.12));
	--ms-about-accent: var(--ms-accent, #012c8a);
	padding-block: var(--ms-about-gap);
}

/* ==========================================================================
   SSS
   ========================================================================== */

.ms-qa__list {
	max-width: 76ch;
	margin-inline: auto;
}

.ms-qa__item {
	border-bottom: 1px solid var(--ms-about-line);
}

.ms-qa__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
	cursor: pointer;
	list-style: none;
}

/* Varsayılan üçgen iki tarayıcıda iki türlü görünür; kendi işaretimizi
   koyabilmek için kapatılır. */
.ms-qa__item summary::-webkit-details-marker { display: none; }

.ms-qa__item summary:focus-visible {
	outline: 2px solid var(--ms-about-accent);
	outline-offset: 4px;
}

.ms-qa__q {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.4;
	color: var(--ms-about-ink);
}

/* Artı işareti: açıkken çarpıya döner. İki çizgiden oluşur, ikon dosyası
   gerekmez. */
.ms-qa__sign {
	position: relative;
	flex: none;
	width: 18px;
	height: 18px;
}

.ms-qa__sign::before,
.ms-qa__sign::after {
	content: "";
	position: absolute;
	inset: 50% 0 auto 0;
	height: 2px;
	background: var(--ms-about-accent);
	transition: transform 0.2s ease;
}

.ms-qa__sign::after { transform: rotate(90deg); }

.ms-qa__item[open] .ms-qa__sign::after { transform: rotate(0deg); }

.ms-qa__a {
	padding: 0 0 20px;
	color: var(--ms-about-muted);
	line-height: 1.7;
}

.ms-qa__a p { margin: 0 0 0.8em; }
.ms-qa__a p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Proje galerisi
   ========================================================================== */

.ms-gallery__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: clamp(20px, 2.5vw, 32px);
}

.ms-gallery__filter {
	padding: 8px 16px;
	border: 1px solid var(--ms-about-line);
	border-radius: 999px;
	background: transparent;
	color: var(--ms-about-muted);
	font: inherit;
	font-size: 0.875rem;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ms-gallery__filter.is-active {
	background: var(--ms-about-accent);
	border-color: var(--ms-about-accent);
	color: #fff;
}

.ms-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: clamp(12px, 1.5vw, 20px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ms-gallery__item {
	--ms-gallery-ratio: 1;
	min-width: 0;
}

/* Süzgeçte elenen kart DOM'da kalır ama gizlenir: yeniden gösterilmesi
   anlıktır ve tarayıcı görselleri yeniden indirmez. */
.ms-gallery__item[hidden] { display: none; }

.ms-gallery__link {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	aspect-ratio: 1 / var(--ms-gallery-ratio);
}

.ms-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ms-gallery__link:hover .ms-gallery__img { transform: scale(1.04); }

.ms-gallery__link:focus-visible {
	outline: 2px solid var(--ms-about-accent);
	outline-offset: 3px;
}

.ms-gallery__title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 28px 16px 14px;
	background: linear-gradient(180deg, transparent, rgba(0, 20, 63, 0.78));
	color: #fff;
	font-size: 0.875rem;
}

/* --- Lightbox --- */

.ms-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(0, 10, 32, 0.92);
}

.ms-lightbox img {
	max-width: 100%;
	max-height: 82vh;
	border-radius: 8px;
}

.ms-lightbox__caption {
	margin-top: 12px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.9375rem;
	text-align: center;
}

.ms-lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

/* ==========================================================================
   Öncesi / sonrası
   ========================================================================== */

.ms-ba__box {
	--ms-ba-pos: 50%;
	--ms-ba-ratio: 0.66;
	--ms-ba-handle: #fff;
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	aspect-ratio: 1 / var(--ms-ba-ratio);
}

.ms-ba__layer {
	position: absolute;
	inset: 0;
}

/* Sonraki katman sürgünün soluna kırpılır; iki görsel de tam boyutta durur,
   yalnızca görünen parçaları değişir. */
.ms-ba__layer--after {
	clip-path: inset(0 0 0 var(--ms-ba-pos));
}

.ms-ba__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ms-ba__tag {
	position: absolute;
	top: 12px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(0, 20, 63, 0.7);
	color: #fff;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ms-ba__layer--before .ms-ba__tag { left: 12px; }
.ms-ba__layer--after .ms-ba__tag { right: 12px; }

.ms-ba__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--ms-ba-pos);
	width: 2px;
	margin-left: -1px;
	background: var(--ms-ba-handle);
	pointer-events: none;
}

.ms-ba__handle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border-radius: 999px;
	background: var(--ms-ba-handle);
	box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6);
}

/* Sürgü görünmez ama ORADA: dokunmatikte, farede ve klavyede çalışan tek
   kontrol odur. Kendi yaptığımız bir kol klavyeyle kullanılamazdı. */
.ms-ba__range {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
}

.ms-ba__range:focus-visible + .ms-ba__handle,
.ms-ba__box:focus-within .ms-ba__handle {
	outline: 2px solid var(--ms-about-accent);
}

/* ==========================================================================
   Yorumlar
   ========================================================================== */

.ms-quotes__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: clamp(16px, 2vw, 28px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ms-quotes__item {
	min-width: 0;
	padding: clamp(20px, 2.4vw, 32px);
	border: 1px solid var(--ms-about-line);
	border-radius: 14px;
	background: #fff;
}

.ms-quotes__stars {
	display: block;
	margin-bottom: 10px;
	color: #d39b2b;
	letter-spacing: 0.1em;
}

.ms-quotes__text {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	color: var(--ms-about-ink);
	line-height: 1.7;
}

.ms-quotes__text p { margin: 0 0 0.7em; }
.ms-quotes__text p:last-child { margin-bottom: 0; }

.ms-quotes__who {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ms-quotes__photo {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	object-fit: cover;
}

.ms-quotes__who strong { display: block; font-size: 0.9375rem; }
.ms-quotes__who span { color: var(--ms-about-muted); font-size: 0.8125rem; }

/* ==========================================================================
   Video bandı
   ========================================================================== */

.ms-video {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(280px, 38vw, 460px);
	overflow: hidden;
	background: var(--ms-dark, #00143f);
	color: #fff;
	isolation: isolate;
}

.ms-video__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.ms-video__img,
.ms-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 0;
}

.ms-video__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 20, 63, 0.55);
}

.ms-video__inner { width: 100%; text-align: center; }

.ms-video__title {
	margin: 0 0 20px;
	font-family: var(--ms-font-serif, inherit);
	font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
	color: #fff;
}

.ms-video__play {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--ms-ink, #0d1b33);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.ms-video__play:hover { transform: translateY(-2px); }

.ms-video__icon {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent currentColor;
}

/* Oynatıcı açıldığında kapak ve düğme çekilir. */
.ms-video[data-ms-playing] .ms-video__inner,
.ms-video[data-ms-playing] .ms-video__overlay { display: none; }

/* ==========================================================================
   Şube kartları
   ========================================================================== */

.ms-branches__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: clamp(16px, 2vw, 28px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ms-branches__item {
	min-width: 0;
	padding: clamp(20px, 2.4vw, 32px);
	border: 1px solid var(--ms-about-line);
	border-radius: 14px;
	background: #fff;
}

.ms-branches__name { margin: 0 0 10px; font-size: 1.0625rem; color: var(--ms-about-ink); }

.ms-branches__address,
.ms-branches__hours {
	margin: 0 0 10px;
	color: var(--ms-about-muted);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.ms-branches__links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 10px;
}

.ms-branches__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ms-about-accent);
	font-size: 0.9375rem;
	text-decoration: none;
}

.ms-branches__link:hover { text-decoration: underline; }

/* ==========================================================================
   Hareket azaltma
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.ms-gallery__img,
	.ms-gallery__filter,
	.ms-video__play,
	.ms-qa__sign::before,
	.ms-qa__sign::after {
		transition: none;
	}

	.ms-gallery__link:hover .ms-gallery__img,
	.ms-video__play:hover {
		transform: none;
	}
}
