/* Megam Tekstil — modern katman (2026-10-22)
   style.css'in ÜSTÜNE biner; geri almak için header.php'deki bu dosyanın <link> satırını silmek yeterli. */

:root {
	--m-ink: #12171b;
	--m-ink-2: #1b2329;
	--m-brand: #f6960c;
	--m-brand-deep: #c97800;
	--m-mist: #eef0ee;
	--m-text: #38434a;
	--m-muted: #7a878f;
	--m-display: "Bricolage Grotesque", "Roboto", system-ui, sans-serif;
	--m-body: "Figtree", "Roboto", system-ui, sans-serif;
	--m-ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; }
body { overflow-x: clip; }

body {
	font-family: var(--m-body);
	color: var(--m-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, .sp-title, .header-title {
	font-family: var(--m-display);
	letter-spacing: -0.02em;
	color: var(--m-ink);
	line-height: 1.08;
}
a:focus-visible, button:focus-visible, .nav-switch:focus-visible {
	outline: 3px solid var(--m-brand);
	outline-offset: 3px;
}
::selection { background: var(--m-brand); color: var(--m-ink); }

/* ───────── Üst menü ───────── */
.header-area {
	position: fixed;
	z-index: 100;
	transition: background .35s var(--m-ease), box-shadow .35s var(--m-ease), backdrop-filter .35s;
}
.header-area::before {
	/* fotoğraf üstünde menü yazıları okunsun diye üst perde */
	content: "";
	position: absolute;
	inset: 0 0 -70px 0;
	background: linear-gradient(180deg, rgba(10, 14, 17, .72) 0%, rgba(10, 14, 17, .38) 55%, rgba(10, 14, 17, 0) 100%);
	pointer-events: none;
	transition: opacity .35s;
	z-index: -1;
}
body.is-scrolled .header-area {
	background: rgba(18, 23, 27, .86);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	backdrop-filter: saturate(140%) blur(14px);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 12px 32px rgba(0, 0, 0, .18);
}
body.is-scrolled .header-area::before { opacity: 0; }

.logo-area { padding: 16px 34px 20px; transition: padding .3s var(--m-ease); }
.logo-area img { max-height: 44px; width: auto; }
body.is-scrolled .logo-area { padding: 10px 28px 12px; }

.nav-menu ul li a {
	font-family: var(--m-body);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .01em;
	padding: 30px 8px 8px;
	margin-right: 12px;
	text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
	transition: color .25s;
}
body.is-scrolled .nav-menu ul li a { padding-top: 22px; text-shadow: none; }
.nav-menu ul li a:after {
	left: 8px;
	right: 8px;
	top: auto;
	bottom: 0;
	width: auto;
	height: 2px;
	margin: 0;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--m-ease);
}
.nav-menu ul li a:hover:after,
.nav-menu ul li.active > a:after,
.nav-menu ul li.current-menu-item > a:after { height: 2px; transform: scaleX(1); }

/* ───────── Hero (ana sayfa) ───────── */
.hero-slider .hero-slide-item::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(10, 14, 17, .55) 0%, rgba(10, 14, 17, .12) 60%, rgba(10, 14, 17, 0) 100%);
	pointer-events: none;
}
.hero-slider .hero-slide-item { position: relative; }
.hero-slider .hs-text h2,
.hero-slider .slide-inner h2 {
	font-family: var(--m-display);
	font-weight: 700;
	font-size: clamp(34px, 4.3vw, 62px);
	max-width: 12.5em;
	letter-spacing: -0.025em;
	line-height: 1.06;
	text-shadow: 0 2px 28px rgba(0, 0, 0, .35);
}

/* ───────── İç sayfa başlık bandı ───────── */
.page-header-section {
	position: relative;
	height: 440px;
	padding: 0 0 60px;
	display: flex;
	align-items: flex-end;
	background-size: cover;
	background-position: center;
	isolation: isolate;
}
.page-header-section::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(10, 14, 17, .78) 0%, rgba(10, 14, 17, .30) 36%, rgba(10, 14, 17, .82) 100%);
}
.page-header-section .container { position: relative; width: 100%; }
.page-header-section .header-title {
	font-size: clamp(42px, 6.4vw, 84px);
	font-weight: 700;
	color: #fff;
	margin: 0;
	padding-bottom: 22px;
	position: relative;
	text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.page-header-section .header-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 72px;
	height: 5px;
	background: var(--m-brand);
	transform-origin: left;
}

/* ───────── İç sayfa metni ───────── */
.intro-section { padding: 84px 0 64px; margin-bottom: 0; }
.intro-section .intro-text > h1:not(.sp-title) { display: none; } /* başlık zaten bantta; tekrar etmesin */
.intro-section .intro-text { max-width: 760px; }
.intro-section .intro-text p {
	font-size: 17.5px;
	line-height: 1.82;
	color: var(--m-text);
	margin-bottom: 22px;
}
.intro-section .intro-text h1.sp-title,
.intro-section .intro-text h2,
.intro-section .intro-text h3 {
	font-size: clamp(24px, 2.6vw, 32px);
	margin: 44px 0 16px;
}
.intro-section .intro-text a { color: var(--m-brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.intro-section .col-lg-4 { margin-top: 6px; }
.intro-section .col-lg-4 img {
	border-radius: 14px;
	box-shadow: 0 24px 60px -24px rgba(18, 23, 27, .35);
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
/* yan görsel hero ile aynıysa (JS işaretler) gizle ve metni ortala */
.intro-section.is-solo .col-lg-4 { display: none; }

/* ───────── Kartlar (sertifika / blog / ekip kalıbı) ───────── */
.team-section { padding-top: 10px; }
.team-section .team-member {
	padding: 0;
	margin-bottom: 28px;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(18, 23, 27, .08);
	box-shadow: 0 1px 0 rgba(18, 23, 27, .03);
	display: flex;
	flex-direction: column;
	transition: transform .45s var(--m-ease), box-shadow .45s var(--m-ease), border-color .3s;
}
.team-section .team-member:hover {
	transform: translateY(-4px);
	box-shadow: 0 28px 50px -28px rgba(18, 23, 27, .38);
	border-color: rgba(246, 150, 12, .55);
}
.team-section .team-member > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.team-section .team-member img { min-width: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.team-section .team-member .member-info {
	position: static;
	width: auto;
	padding: 20px 22px 22px;
	background: #fff;
	box-shadow: none;
	border-left: 4px solid var(--m-brand);
	margin: 0;
	flex: 1;
}
.team-section .team-member:hover .member-info { background: #fff; box-shadow: none; }
.team-section .team-member .member-info h2 {
	font-size: 17px;
	line-height: 1.35;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0;
	color: var(--m-ink);
}
/* görseli olmayan (resimyok) kartlar: koyu yüzey, başlık içeride */
.team-section .team-member[style*="resimyok"] {
	background: radial-gradient(120% 90% at 100% 0%, rgba(246, 150, 12, .30) 0%, rgba(246, 150, 12, 0) 55%), linear-gradient(160deg, #1b2329 0%, #12171b 100%) !important;
	min-height: 300px !important;
	border-color: transparent;
}
.team-section .team-member[style*="resimyok"] > a { justify-content: flex-end; min-height: 300px; }
.team-section .team-member[style*="resimyok"] .member-info {
	background: transparent;
	border-left: 0;
	border-top: 3px solid var(--m-brand);
	margin: 0 22px 22px;
	padding: 18px 0 0;
	flex: 0 0 auto;
}
.team-section .team-member[style*="resimyok"] .member-info h2 { color: #fff; font-size: 19px; }

/* içeriği olmayan bölümler (panelde veri girilince kendiliğinden geri gelir) */
.service-section:not(:has(.service-box)),
.projects-section:not(:has(.single-project)),
.team-section:not(:has(.team-member, .blog-card)) { display: none; }

/* ───────── Ana sayfa blokları ───────── */
.sp-title { font-size: clamp(32px, 4.2vw, 56px); margin-bottom: 28px; }
.section-title { margin-bottom: 26px; }
.section-title h1, .section-title h2 {
	background: none;
	color: var(--m-ink);
	padding: 0 0 18px;
	font-size: clamp(30px, 3.6vw, 46px);
	font-weight: 700;
	position: relative;
}
.section-title h1::after, .section-title h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 64px;
	height: 4px;
	background: var(--m-brand);
}
.cta-section .cta-content h2 { font-size: clamp(28px, 3.2vw, 44px); color: #fff; line-height: 1.16; }

/* video bloğu taşmasın; altındaki sayı bandı doğrudan devam etsin */
.cta-section { margin-bottom: 0; }
.cta-section .cta-image-box { overflow: hidden; top: 0; }
.cta-section .cta-image-box video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* sayılar: tek koyu bant */
.milestones-section { background: var(--m-ink) !important; margin-top: 0; margin-bottom: 0; padding: 72px 0 56px; }
.milestone {
	min-height: 0;
	padding: 20px 0 0;
	border-top: 2px solid rgba(255, 255, 255, .16);
	display: flex;
	align-items: baseline;
	gap: 16px;
	transition: border-color .3s;
}
.milestone:hover { border-top-color: var(--m-brand); }
.milestone:after, .milestone:hover:after { display: none; }
.milestone h2 {
	float: none;
	font-size: clamp(48px, 5.4vw, 76px);
	font-weight: 700;
	color: #fff;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.milestone p {
	float: none;
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	font-weight: 500;
	color: #b4bfc6;
}

/* ───────── Alt bilgi ───────── */
.footer-section {
	background: var(--m-ink) !important;
	color: #aab6bd !important;
	border-top: 4px solid var(--m-brand);
	padding: 96px 0 36px;
}
.footer-section .footer-social { background: var(--m-brand); top: -4px; right: 60px; width: 64px; padding-top: 18px; }
.footer-section .social-links a { color: var(--m-ink) !important; margin-bottom: 18px; }
.footer-section .social-links a:hover { color: #fff !important; }
.footer-item { font-size: 15px; line-height: 1.75; }
.footer-item h2 {
	background: none;
	font-family: var(--m-display);
	font-size: 20px;
	font-weight: 600;
	color: #fff;
	padding: 0 0 12px;
	margin-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.footer-item ul li a { font-size: 15px; font-weight: 500; color: #d9e0e4 !important; padding: 0; transition: color .2s, padding-left .25s var(--m-ease); }
.footer-item ul li a:hover { color: var(--m-brand) !important; padding-left: 6px; }
.footer-copy {
	margin-top: 56px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: 13px;
	color: #84919a;
	width: 100%;
	clear: both;
}
.footer-copy a { color: var(--m-brand) !important; }

/* ───────── Hareket (JS'in başlangıç durumu; JS yoksa görünür kalır) ───────── */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ───────── Küçük ekran ───────── */
@media (max-width: 991px) {
	.header-area::before { display: none; }
	.header-area { background: rgba(18, 18, 18, .96); }
	.logo-area { padding: 12px 24px 14px; }
	.nav-menu ul li a { text-shadow: none; padding: 16px 21px; margin-right: 0; font-size: 15px; }
	.nav-menu ul li a:after { display: none; }
	.page-header-section { height: 340px; padding-bottom: 40px; }
	.intro-section { padding: 56px 0 40px; }
	.intro-section .intro-text p { font-size: 16.5px; }
	.intro-section .col-lg-4 { margin-top: 28px; }
	.footer-section { padding: 80px 0 28px; }
	.footer-section .footer-social { right: 50%; margin-right: -125px; top: -26px; width: auto; padding: 10px; }
	.footer-copy { text-align: center; }
	.milestone { margin-bottom: 22px; }
}

/* ───────── Blog yazı sayfası ───────── */
.blog-article-section { padding: 72px 0 88px; }
.blog-article { max-width: 760px; }
.blog-back {
	display: inline-block;
	margin-bottom: 28px;
	font-weight: 600;
	font-size: 15px;
	color: var(--m-brand-deep);
	text-decoration: none;
	transition: transform .25s var(--m-ease), color .2s;
}
.blog-back:hover { color: var(--m-ink); transform: translateX(-4px); }
.blog-article-title { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.1; margin: 0 0 18px; }
.blog-article-date { color: var(--m-muted); font-size: 14px; margin: 0 0 28px; }
.blog-article-cover { width: 100%; border-radius: 14px; margin: 0 0 36px; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-article-body { font-size: 18px; line-height: 1.85; color: var(--m-text); }
.blog-article-body p { margin: 0 0 22px; }
.blog-article-body h2, .blog-article-body h3 { margin: 44px 0 14px; font-size: clamp(24px, 2.6vw, 32px); }
.blog-article-body h4 { margin: 32px 0 10px; font-size: 20px; }
.blog-article-body ul, .blog-article-body ol { margin: 0 0 24px; padding-left: 24px; }
.blog-article-body li { margin-bottom: 8px; list-style: inherit; }
.blog-article-body ul { list-style: disc; }
.blog-article-body ol { list-style: decimal; }
.blog-article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 8px 0 24px; }
.blog-article-body a { color: var(--m-brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.blog-article-body blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--m-brand); color: var(--m-ink); font-size: 20px; }
@media (max-width: 991px) {
	.blog-article-section { padding: 48px 0 64px; }
	.blog-article-body { font-size: 17px; }
}

/* ───────── Blog listesi (yenicozumler.com blog düzeni referansıyla: görsel üstte, başlık altta, 3 sütun) ───────── */
.blog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(18, 23, 27, .08);
	box-shadow: 0 14px 34px -22px rgba(18, 23, 27, .3);
	text-decoration: none;
	transition: transform .45s var(--m-ease), box-shadow .45s var(--m-ease), border-color .3s;
}
.blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 30px 50px -28px rgba(18, 23, 27, .4);
	border-color: rgba(246, 150, 12, .55);
	text-decoration: none;
}
.blog-card-img {
	display: block;
	aspect-ratio: 16 / 10;
	background: #1b2329 center / cover no-repeat;
	transition: transform .7s var(--m-ease);
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }
/* görseli olmayan yazı: kumaş dokusunu andıran koyu yüzey */
.blog-card-img.is-empty {
	background:
		repeating-linear-gradient(45deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 7px),
		radial-gradient(90% 120% at 100% 0%, rgba(246, 150, 12, .38) 0%, rgba(246, 150, 12, 0) 60%),
		linear-gradient(160deg, #1f2a31 0%, #12171b 100%);
}
.blog-card-title {
	display: block;
	padding: 20px 22px 24px;
	font-family: var(--m-display);
	font-size: 18px;
	line-height: 1.35;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--m-ink);
	transition: color .2s;
}
.blog-card:hover .blog-card-title { color: var(--m-brand-deep); }

.intro-section .intro-text h1.sp-title { color: #12171b; text-transform: none; letter-spacing: -0.02em; font-weight: 700; }

/* Hız/CLS (2026-10-24): owl başlamadan önce ilk slayttan sonrası gizli — 6 slayt alt alta dizilip sonra çöküyordu (CLS 0.3) */
.hero-slider:not(.owl-loaded)>.hero-slide-item:not(:first-child){display:none!important}
