/* ==========================================================================
   NOVA tema - turuncumavi CMS
   Marka renklerini değiştirmek için yalnızca aşağıdaki :root değişkenlerini düzenle.
   ========================================================================== */
:root {
	--brand: #1d4ed8;          /* ana renk (bağlantılar, butonlar) */
	--brand-dark: #0b1b4d;     /* koyu zemin (footer, slider kaplaması) */
	--accent: #ff7a1a;         /* vurgu rengi */
	--ink: #0f172a;            /* yazı rengi */
	--muted: #64748b;          /* ikincil yazı */
	--bg: #ffffff;
	--soft: #f3f6fb;           /* açık zemin */
	--line: #e2e8f0;
	--radius: 16px;
	--shadow: 0 1px 2px rgba(15,23,42,.06), 0 10px 30px rgba(15,23,42,.08);
	--shadow-lg: 0 2px 4px rgba(15,23,42,.08), 0 24px 60px rgba(15,23,42,.16);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: clamp(44px, 7vw, 88px) 0; }
.section-soft { background: var(--soft); }
.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px;
	background: var(--brand-dark); color: #fff; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Üst çubuk + menü ---------- */
/* Menü sabit kalmaz: sayfa kayınca menü de kayar, slider menünün bittiği yerden başlar. Sabit menü istersen position: sticky; top: 0; yap. */
.site-header { position: relative; z-index: 100; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(15,23,42,.08); }

.topbar { background: var(--brand-dark); color: #dbe4ff; font-size: 13.5px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar a { color: #dbe4ff; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; text-decoration: none; }
.langs { display: flex; gap: 8px; }
.lang { display: inline-flex; opacity: .65; border-radius: 4px; overflow: hidden; transition: opacity .2s, transform .2s; }
.lang:hover, .lang.is-active { opacity: 1; transform: translateY(-1px); }
.lang img { width: 22px; height: 16px; object-fit: cover; }
.lang-txt { display: inline-block; padding: 1px 7px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.16); border-radius: 4px; }

.mainbar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; }
.brand img { max-height: 52px; width: auto; }
.brand-text { font-weight: 800; font-size: 22px; letter-spacing: -.01em; color: var(--ink); }
.header-dark .brand-text { color: #fff; }

.site-nav .menu { display: flex; align-items: center; gap: 4px; }
.menu-item { position: relative; }
.menu-item > a { display: block; padding: 10px 14px; color: var(--ink); font-weight: 600; font-size: 15px; border-radius: 10px; transition: background .2s, color .2s; }
.menu-item > a:hover, .menu-item.is-current > a { color: var(--brand); background: #eaf0ff; text-decoration: none; }
.has-sub > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6; }

/* pagelist() çıktısı: li.menu-item > ul > li > (a, ul). Sınıf adlarından (dropdown vb.) bağımsız, yapıya göre biçimlenir. */
.menu > .menu-item > ul, .menu > .menu-item > ul ul { position: absolute; left: 0; top: 100%; min-width: 230px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 50; }
.menu > .menu-item > ul li { position: relative; margin: 0; list-style: none; }
.menu > .menu-item > ul a { display: block; padding: 9px 12px; color: var(--ink); font-weight: 500; font-size: 14.5px; line-height: 1.4; border-radius: 8px; white-space: nowrap; }
.menu > .menu-item > ul a:hover { background: var(--soft); color: var(--brand); text-decoration: none; }
.menu > .menu-item > ul ul { left: 100%; top: -9px; }
.menu > .menu-item > ul .has-sub > a::after { float: right; margin: 8px 0 0 12px; transform: rotate(-45deg); }
.menu > .menu-item:hover > ul, .menu > .menu-item:focus-within > ul,
.menu > .menu-item > ul li:hover > ul, .menu > .menu-item > ul li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.nav-toggle, .sub-toggle { display: none; }

/* ---------- Koyu üst menü seçeneği ----------
   Logon beyaz/açık renkliyse <body> sınıfına  header-dark  ekle (view.html). Yalnızca masaüstünde uygulanır. */
@media (min-width: 901px) {
	.header-dark .site-header { background: rgba(11,27,77,.96); border-bottom-color: rgba(255,255,255,.1); }
	.header-dark .topbar { background: #07113a; }
	.header-dark .menu > .menu-item > a { color: #fff; }
	.header-dark .menu > .menu-item > a:hover, .header-dark .menu > .menu-item.is-current > a { color: #fff; background: rgba(255,255,255,.14); }
}

/* ---------- Slider ---------- */
.hero { position: relative; background: var(--brand-dark); color: #fff; isolation: isolate; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; align-items: flex-start; } /* yükseklik görselin kendi oranından gelir: kırpma yok */
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.hero-slide img { display: block; width: 100%; height: auto; }
.hero-shade { display: none; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11,27,77,.10) 0%, rgba(11,27,77,.55) 100%); }
.hero:has(.hero-caption) .hero-shade { display: block; }   /* koyu perde yalnızca slider üstünde başlık varken */
.hero-caption { position: absolute; inset: auto 0 clamp(36px, 8vw, 84px) 0; z-index: 2; }
.hero-caption h1 { max-width: 760px; margin: 0; font-size: clamp(26px, 4.6vw, 52px); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
/* oklar: koyu zemin + beyaz çerçeve + gölge: açık renkli görsellerde de görünür */
.hero-btn { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; padding: 0 0 3px; border: 2px solid #fff; border-radius: 50%; background: rgba(11,27,77,.78); color: #fff; font-size: 34px; font-weight: 700; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer; transition: background .2s, transform .2s; }
.hero-btn:hover { background: var(--brand); transform: scale(1.08); }
.hero-prev { left: clamp(10px, 2.4vw, 28px); } .hero-next { right: clamp(10px, 2.4vw, 28px); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-dots button { width: 12px; height: 12px; padding: 0; border: 2px solid rgba(11,27,77,.85); border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: pointer; transition: width .25s, background .25s; }
.hero-dots button.is-active { width: 30px; background: var(--accent); }

/* ---------- Kartlar / ızgaralar ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 26px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; text-decoration: none; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.07); }
.card-body { position: relative; padding: 22px 24px 26px; flex: 1; }
.card-body h3 { font-size: 20px; margin-bottom: .45em; color: var(--ink); }
.card-text { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-more { display: inline-flex; align-items: center; justify-content: center; margin-top: 16px; width: 38px; height: 38px; border-radius: 50%; background: #eaf0ff; color: var(--brand); font-size: 20px; transition: background .2s, color .2s, transform .25s; }
.card:hover .card-more { background: var(--brand); color: #fff; transform: translateX(4px); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--brand-dark); box-shadow: var(--shadow); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11,27,77,.88) 100%); }
.tile:hover img { transform: scale(1.08); }
.tile-title { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff; font-weight: 700; font-size: 18px; line-height: 1.25; }
.tile:hover { text-decoration: none; }

/* ---------- Anasayfa hakkında ---------- */
.about-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-in.no-media { grid-template-columns: 1fr; max-width: 860px; }
.about-media img { border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-text h2 { font-size: clamp(26px, 3.4vw, 38px); }

/* ---------- İç sayfa başlığı ---------- */
.page-head { background: linear-gradient(135deg, var(--brand-dark), #1a3a9e 70%, #2a5bd7); color: #fff; padding: clamp(34px, 6vw, 70px) 0; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -8%; top: -60%; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,122,26,.35), transparent); }
.page-head h1 { margin: 0; font-size: clamp(28px, 4.2vw, 46px); position: relative; z-index: 1; }
.crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; font-size: 14px; color: #b9c8f5; position: relative; z-index: 1; }
.crumbs a { color: #fff; }
.page-body { padding-top: clamp(34px, 5vw, 64px); }

/* ---------- Yazı içeriği (CKEditor çıktısı) ---------- */
.prose { font-size: 17px; }
.prose.narrow { max-width: 860px; margin-inline: auto; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 28px; margin-top: 1.6em; } .prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul { list-style: disc; padding-left: 1.4em; } .prose ol { padding-left: 1.4em; }
.prose img { border-radius: 12px; height: auto !important; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--soft); }
.prose iframe { max-width: 100%; border: 0; border-radius: 12px; }

/* ---------- Ürün detayı ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(26px, 5vw, 64px); align-items: start; }
.product-media img { width: 100%; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-lg); background: var(--soft); }
.product-info h2 { font-size: clamp(26px, 3.2vw, 36px); }
.product-lead { font-size: 19px; color: var(--muted); margin: 0 0 1.2em; }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.share-btn:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* ---------- Galeri ---------- */
.gallery { columns: 3 260px; column-gap: 18px; }
.gallery-item { display: block; margin: 0 0 18px; break-inside: avoid; border-radius: 14px; overflow: hidden; background: var(--soft); box-shadow: var(--shadow); position: relative; }
.gallery-item img { width: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery-item::after { content: "\2922"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 34px; background: rgba(11,27,77,.45); opacity: 0; transition: opacity .25s; }
.gallery-item:hover img { transform: scale(1.06); } .gallery-item:hover::after { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(6,12,32,.94); }
.lightbox.is-open { display: flex; animation: fade .2s ease; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); object-fit: contain; }
.lightbox button { position: absolute; border: 0; color: #fff; background: rgba(255,255,255,.14); width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 18px; } .lb-next { right: 18px; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; margin-top: -24px; }
.lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #cfd8f5; font-size: 14px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- İletişim ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: box-shadow .25s, transform .25s; }
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.contact-ico { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: #eaf0ff; color: var(--brand); }
.contact-ico svg { width: 24px; height: 24px; fill: currentColor; }
.contact-label { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.contact-value { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-dark); color: #c3cff0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(26px, 4vw, 56px); padding: clamp(40px, 6vw, 72px) 0 36px; }
.footer-grid > :only-child { grid-column: 1 / -1; }
.footer-brand img { max-height: 54px; width: auto; margin-bottom: 20px; }
.fc-row { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 10px; font-size: 15px; }
.fc-row .ico { margin-top: 4px; color: var(--accent); }
.site-footer a { color: #c3cff0; } .site-footer a:hover { color: #fff; text-decoration: none; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); transition: background .2s, transform .2s; }
.social a:hover { background: var(--accent); transform: translateY(-3px); }
.social .ico { width: 20px; height: 20px; color: #fff; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 1em; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; border-radius: 3px; background: var(--accent); }
.footer-col li { margin: 0 0 9px; font-size: 15px; }
.footer-col a { position: relative; display: inline-block; transition: transform .2s; } .footer-col a:hover { transform: translateX(4px); }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.footer-bar-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 18px 0; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; font-size: 22px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Görünme animasyonu ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Mobil ---------- */
@media (max-width: 1000px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.product { grid-template-columns: 1fr; }
	.about-in { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	:root { --header-h: 64px; }
	.brand img { max-height: 42px; }
	.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
	.nav-toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
	.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
	.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(15,23,42,.12); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s ease, visibility .35s; }
	.site-nav.is-open { max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; visibility: visible; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 4vw 18px; }
	.menu-item > a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
	.has-sub > a::after, .menu > .menu-item > ul .has-sub > a::after { display: none; }
	.menu-item { position: static; }
	.menu-item.has-sub, .menu > .menu-item > ul li.has-sub { display: grid; grid-template-columns: 1fr 46px; align-items: stretch; }
	.sub-toggle { display: inline-grid; place-items: center; width: 46px; min-height: 46px; border: 0; background: transparent; color: var(--muted); border-bottom: 1px solid var(--line); }
	.menu > .menu-item > ul .sub-toggle { border-bottom: 0; }
	.menu > .menu-item > ul a { padding: 12px 8px; white-space: normal; }
	.sub-toggle::before { content: ""; width: 9px; height: 9px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
	.menu-item.open > .sub-toggle::before, .menu > .menu-item > ul li.open > .sub-toggle::before { transform: rotate(-135deg); }
	.menu > .menu-item > ul, .menu > .menu-item > ul ul { position: static; grid-column: 1 / -1; display: none; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--line); border-radius: 0; margin: 6px 0 10px 8px; padding: 0 0 0 10px; }
	.menu > .menu-item.open > ul, .menu > .menu-item > ul li.open > ul { display: block; }
	.menu > .menu-item > ul ul { left: auto; top: auto; }
	.topbar-contact span { max-width: 44vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 640px) {
	.footer-grid { grid-template-columns: 1fr; }
	.hero-btn { display: none; }
	.gallery { columns: 2 150px; column-gap: 12px; }
	.topbar-contact a:nth-child(2) { display: none; }
	.tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.tile-title { font-size: 15px; left: 12px; right: 12px; bottom: 12px; }
	.gallery-item { margin-bottom: 12px; }
	.cards { gap: 18px; }
	.prose { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}
