/* Tuha Elektrik — eski tasarımın sadeleştirilmiş, duyarlı yeniden yazımı */
:root {
  --ink: #3f3f3f;
  --ink-2: #2b2b2b;
  --text: #555;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --soft: #f7f7f7;
  --wrap: 1180px;
  --r: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
body { margin: 0; font: 400 15px/1.7 Ubuntu, Arial, sans-serif; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; font-weight: 500; margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
.ico { flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: var(--r); font-weight: 500; transition: background .2s, color .2s; }
.btn:hover { background: #fff; color: var(--ink); }
.img-ph { display: block; width: 100%; aspect-ratio: 16/10; background: linear-gradient(135deg, #eee, #e2e2e2); }

/* Header (sticky) */
/* Header sabit (fixed) + gövdede sabit boşluk: küçülürken sayfa kaymaz, titreme olmaz */
:root { --hdr-h: 88px; }
body { padding-top: var(--hdr-h); }
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: var(--ink); color: #fff; transition: box-shadow .3s; }
.hdr.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.hdr .wrap { position: relative; }
.hdr-top { display: flex; justify-content: flex-end; align-items: center; gap: 16px; font-size: 12.5px; height: 32px; padding-top: 6px; transition: height .25s, padding .25s, opacity .2s; }
/* Kaydırınca üst şerit gerçekten kapanır (overflow sadece kapalıyken gizli: dil menüsü açıkken taşabilsin) */
.hdr.scrolled .hdr-top { height: 0; padding-top: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.hdr-top > a { opacity: .85; }
.hdr-top > a:hover { opacity: 1; }
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.1); border: 0; color: #fff; padding: 3px 9px; border-radius: 99px; font-size: 12px; }
.lang-list { position: absolute; right: 0; top: 100%; margin-top: 6px; background: #fff; border-radius: var(--r); box-shadow: 0 8px 24px rgba(0,0,0,.2); min-width: 70px; display: none; z-index: 5; overflow: hidden; }
.lang.open .lang-list { display: block; }
.lang-list a { display: block; padding: 7px 14px; color: var(--ink); font-size: 13px; }
.lang-list a:hover, .lang-list a[aria-current] { background: var(--soft); font-weight: 500; }
.hdr-bar { display: flex; align-items: center; justify-content: center; min-height: 56px; transition: min-height .25s; }
.hdr.scrolled .hdr-bar { min-height: 50px; }
.hdr.scrolled .menu > li > a, .hdr.scrolled .sub-toggle { padding-top: 13px; padding-bottom: 13px; }
.hdr.scrolled .menu > li > a::after, .hdr.scrolled .sub-toggle::after { bottom: 7px; }
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-head, .nav-lang { display: none; }
.menu { display: flex; gap: 4px; }
.menu.-left { margin-right: 70px; }
.menu.-right { margin-left: 70px; }
.menu > li { position: relative; }
.menu > li > a, .sub-toggle { display: flex; align-items: center; gap: 4px; padding: 16px 13px; background: none; border: 0; color: #fff; font-size: 13.5px; font-weight: 500; letter-spacing: .4px; white-space: nowrap; position: relative; }
.menu > li > a::after, .sub-toggle::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 10px; height: 2px; background: #fff; transform: scaleX(0); transition: transform .2s; }
.menu > li > a:hover::after, .menu > li > a[aria-current]::after, .has-sub:hover .sub-toggle::after { transform: scaleX(1); }
.sub { position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; border-radius: 0 0 var(--r) var(--r); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 18px; color: var(--ink); font-size: 14px; }
.sub a:hover, .sub a[aria-current] { background: var(--soft); }
.logo { position: absolute; left: 50%; top: 0; transform: translateX(-50%); background: #fff; padding: 10px 14px 12px; border-radius: 0 0 var(--r) var(--r); box-shadow: 0 6px 18px rgba(0,0,0,.15); transition: padding .25s; z-index: 2; }
.logo img { width: 85px; transition: width .25s; }
.hdr.scrolled .logo { padding: 6px 10px 8px; }
.hdr.scrolled .logo img { width: 62px; }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 8px; margin-right: auto; }
.nav-back { display: none; }

/* Kapak */
.cover { position: relative; background: var(--ink-2) center/cover no-repeat; color: #fff; text-align: center; padding: 80px 0 70px; }
.cover.has-img::before { content: ''; position: absolute; inset: 0; background: rgba(20,20,20,.6); }
.cover .wrap { position: relative; }
.cover-sup { margin: 0 0 4px; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; opacity: .85; }
.cover h1 { color: #fff; font-size: clamp(26px, 4vw, 40px); }

/* İç sayfa yerleşimi */
.page { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-top: 50px; padding-bottom: 70px; }
.page-narrow { padding-top: 50px; padding-bottom: 70px; }
.side { position: sticky; top: 100px; align-self: start; }
.side-menu, .side-tree > ul { border-left: 2px solid var(--line); }
.side-menu a, .side-tree a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text); font-size: 14px; transition: color .2s, border-color .2s; }
.side-menu a:hover, .side-tree a:hover { color: var(--ink); }
.side-menu a[aria-current], .side-tree a[aria-current] { color: var(--ink); font-weight: 500; border-left-color: var(--ink); }
.side-tree ul ul { padding-left: 14px; }
.side-tree ul ul a { font-size: 13.5px; padding-top: 4px; padding-bottom: 4px; }
.side-tree li.open > a { color: var(--ink); font-weight: 500; }
.side-refs a { font-size: 13px !important; color: var(--muted) !important; }
.side-refs a[aria-current] { color: var(--ink) !important; }
.page-h { font-size: 26px; margin-bottom: 10px; }
.tags { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.tags a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose p { margin: 0 0 1em; }
.prose ul { list-style: disc; padding-left: 20px; margin: 0 0 1em; }
.prose .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; }
.prose .services_item { background: var(--soft); padding: 18px 20px; border-radius: var(--r); height: 100%; }
.prose .services_item .title { font-weight: 700; color: var(--ink); margin-bottom: 6px; letter-spacing: .5px; }
.prose .services_item ul { margin: 0; }
.prose img { display: inline-block; }

/* Galeri */
.gallery ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 24px; }
.gallery a { display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 283/170; background: var(--soft); }
.gallery img, .gallery .img-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }

/* Kartlar (sosyal sorumluluk, yatırım) */
.cards { display: grid; gap: 24px; }
.card { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.card:last-child { border-bottom: 0; }
.card figure { margin: 0; border-radius: var(--r); overflow: hidden; }
.card h2 { font-size: 20px; margin-bottom: 8px; }

/* Referanslar */
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.ref { display: block; text-align: center; }
.ref figure { margin: 0 0 10px; aspect-ratio: 300/340; overflow: hidden; border-radius: var(--r); background: var(--soft); }
.ref img, .ref .img-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ref:hover img { transform: scale(1.05); }
.ref span { font-size: 14px; font-weight: 500; color: var(--ink); }

/* Anasayfa */
/* Proje haritası — koyu tema */
.map-wrap { background: #242424; position: relative; z-index: 0; isolation: isolate; }
.map { height: min(62vh, 520px); width: 100%; background: #242424; }
.map .leaflet-tooltip { background: #fff; color: var(--ink); border: 0; box-shadow: 0 2px 8px rgba(0,0,0,.4); font: 700 11px Ubuntu, sans-serif; letter-spacing: .5px; padding: 3px 8px; }
.map .leaflet-tooltip-top::before { border-top-color: #fff; }
.pin { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 0 0 5px rgba(255,255,255,.18); animation: pin 2.4s ease-out infinite; }
@keyframes pin { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 70% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.map .leaflet-control-zoom a { background: #3a3a3a; color: #fff; border-color: #555; }
.map .leaflet-control-zoom a:hover { background: #4a4a4a; }
.map .leaflet-control-attribution { background: rgba(30,30,30,.7); color: #aaa; }
.map .leaflet-control-attribution a { color: #ccc; }
.about { position: relative; z-index: 2; margin-top: -70px; background: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.08); border-radius: var(--r); padding: 44px 60px; text-align: center; max-width: 1000px; }
.about h1 { font-size: 24px; letter-spacing: 1px; margin-bottom: 18px; }
.sec { padding: 70px 0; }
.sec.soft { background: var(--soft); }
.sec-h { text-align: center; font-size: 22px; letter-spacing: 1px; margin-bottom: 40px; }
.sec-h::after { content: ''; display: block; width: 40px; height: 2px; background: var(--ink); margin: 12px auto 0; }
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 60px; }
.svc:last-child { margin-bottom: 0; }
.svc.rev .svc-img { order: 2; }
.svc-img { display: block; overflow: hidden; border-radius: var(--r); }
.svc-img img, .svc-img .img-ph { width: 100%; aspect-ratio: 500/330; object-fit: cover; transition: transform .5s; }
.svc-img:hover img { transform: scale(1.04); }
.svc-t h3 { font-size: 24px; margin-bottom: 12px; }
.svc-t p { margin: 0 0 20px; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.news { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: var(--r); overflow: hidden; }
.news img, .news .img-ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 585/300; }
.news > div { padding: 26px; }
.news h3 { font-size: 20px; margin-bottom: 8px; }
.news time { font-size: 12.5px; color: var(--muted); }
.swiper { padding-bottom: 36px; }
/* Swiper'ın height:100% kuralı içerik yüksekliğini şişirmesin */
.swiper .swiper-wrapper { height: auto; align-items: stretch; }
.swiper .swiper-slide { height: auto; }
.swiper-pagination-bullet-active { background: var(--ink); }
.brand { background: #fff; border-radius: var(--r); padding: 14px; display: grid; place-items: center; aspect-ratio: 300/170; }
.brand img { max-height: 100%; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .3s; }
.brand:hover img { filter: none; opacity: 1; }

/* İletişim */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; padding-top: 50px; padding-bottom: 70px; }
.offices { display: grid; gap: 26px; align-content: start; }
.office { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.office:last-child { border-bottom: 0; }
.office h2 { font-size: 18px; margin-bottom: 10px; }
.office dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 14px; margin: 0; font-size: 14.5px; }
.office dt { color: var(--ink); font-weight: 500; }
.office dd { margin: 0; display: flex; flex-direction: column; }
.office a:hover { text-decoration: underline; }
.write { background: var(--soft); padding: 32px; border-radius: var(--r); align-self: start; }
.write h2 { font-size: 22px; margin-bottom: 18px; }
.form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 5px; font-size: 13.5px; color: var(--ink); font-weight: 500; }
.form input, .form textarea { font: inherit; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: var(--r); background: #fff; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(63,63,63,.12); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -5000px; }
.alert { padding: 10px 14px; border-radius: var(--r); margin: 0 0 14px; }
.alert.ok { background: #e7f6e5; color: #1f6b12; }
.alert.err { background: #fde8e6; color: #8b1d10; }

/* Footer */
.ftr { background: var(--ink); color: rgba(255,255,255,.78); font-size: 14px; }
.ftr h2, .ftr h3 { color: #fff; font-size: 14px; letter-spacing: .5px; margin-bottom: 14px; }
.ftr-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-top: 50px; padding-bottom: 40px; }
.ftr-c li { display: flex; gap: 10px; margin-bottom: 10px; }
.ftr-c .ico { margin-top: 3px; opacity: .7; }
.ftr-m li { margin-bottom: 6px; }
.ftr a:hover { color: #fff; }
.ftr-bot { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 12.5px; }

/* Lightbox */
.lbx { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; }
.lbx img { max-width: 92vw; max-height: 86vh; }
.lbx button { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 26px; line-height: 1; }
.lbx .x { top: 16px; right: 16px; }
.lbx .p { left: 16px; top: 50%; }
.lbx .n { right: 16px; top: 50%; }

@media (max-width: 1080px) {
  .menu.-left { margin-right: 56px; }
  .menu.-right { margin-left: 56px; }
  .menu > li > a, .sub-toggle { padding: 16px 8px; font-size: 12.5px; }
}
@media (max-width: 920px) {
  :root { --hdr-h: 60px; }
  html { scroll-padding-top: 80px; }
  .hdr-top { display: none; }
  .hdr-bar { min-height: 60px; justify-content: flex-start; }
  .menu-btn { display: block; }
  .logo { top: 0; padding: 6px 10px 8px; }
  .logo img { width: 58px; }
  .nav { position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); background: #fff; color: var(--ink); flex-direction: column; align-items: stretch; justify-content: flex-start; overflow-y: auto; transform: translateX(-100%); transition: transform .3s; z-index: 60; padding-bottom: 30px; }
  .nav.open { transform: none; box-shadow: 10px 0 30px rgba(0,0,0,.25); }
  .nav-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .nav-close { background: none; border: 0; color: var(--ink); }
  .menu { flex-direction: column; gap: 0; margin: 0 !important; }
  .menu > li > a, .sub-toggle { color: var(--ink); width: 100%; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .menu > li > a::after, .sub-toggle::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; background: var(--soft); border-radius: 0; }
  .has-sub.open .sub { display: block; }
  .nav-lang { display: flex; gap: 8px; padding: 16px 18px; }
  .nav-lang a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; }
  .nav-lang a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .nav-back.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 39; } /* header (40) altında: menü header içinde olduğundan karartma onun üstüne çıkmamalı */
  .page { grid-template-columns: 1fr; gap: 24px; padding-top: 30px; }
  .side { position: static; }
  .about { margin-top: -40px; padding: 30px 22px; }
  .svc { grid-template-columns: 1fr; gap: 20px; }
  .svc.rev .svc-img { order: 0; }
  .news { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 30px; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cover { padding: 50px 0 44px; }
  .row2 { grid-template-columns: 1fr; }
  .refs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ftr-top { grid-template-columns: 1fr; }
  .write { padding: 22px; }
  .sec { padding: 50px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* ---- Scroll animasyonları (IntersectionObserver; site.js ".in" ekler) ---- */
.js :where(.about, .sec-h, .svc-img, .svc-t, .news-swiper, .ref-swiper, .brand-swiper, .page-main > *, .side, .card, .refs .ref, .gallery li, .office, .write, .ftr-top > *) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.js .svc-img { transform: translateX(-48px); }
.js .svc-t { transform: translateX(48px); }
.js .svc.rev .svc-img { transform: translateX(48px); }
.js .svc.rev .svc-t { transform: translateX(-48px); }
.js .side { transform: translateX(-24px); }
.js .write { transform: translateX(32px); }
.js .gallery li { transform: scale(.94); }
/* Görünür hal: yön kurallarından (.svc.rev .svc-img gibi) daha güçlü olmalı */
html.js .in.in, html.js.rv-off :is(.about, .sec-h, .svc-img, .svc-t, .news-swiper, .ref-swiper, .brand-swiper, .page-main > *, .side, .card, .refs .ref, .gallery li, .office, .write, .ftr-top > *) { opacity: 1; transform: none; }
/* Kapak başlığı: sayfa açılışında */
.js .cover-sup, .js .cover h1 { animation: rvUp .9s cubic-bezier(.2,.7,.2,1) both; }
.js .cover h1 { animation-delay: .12s; }
.js .cover.has-img { animation: rvBg 1.6s ease-out both; }
@keyframes rvUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rvBg { from { background-size: 112%; } to { background-size: 100%; } }
/* Harita noktaları sırayla düşer */
.pin { animation: pinIn .6s cubic-bezier(.2,1.4,.4,1) both, pin 2.4s ease-out 1s infinite; animation-delay: var(--d, 0ms), calc(var(--d, 0ms) + 900ms); }
@keyframes pinIn { from { opacity: 0; transform: translateY(-18px) scale(.4); } to { opacity: 1; transform: none; } }
.leaflet-tooltip { animation: rvFade .5s both; animation-delay: var(--d, 0ms); }
@keyframes rvFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js :is(.about, .sec-h, .svc-img, .svc-t, .news-swiper, .ref-swiper, .brand-swiper, .page-main > *, .side, .card, .refs .ref, .gallery li, .office, .write, .ftr-top > *) { opacity: 1; transform: none; transition: none; }
  .js .cover-sup, .js .cover h1, .js .cover.has-img, .pin, .leaflet-tooltip { animation: none; }
}
