/* ==========================================================================
   Başar Mühendislik Danışmanlık — ana stil dosyası
   Renk ve ölçü değerleri :root altındaki değişkenlerden yönetilir.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-muted: #eef3f9;
  --surface: #ffffff;

  --ink: #0f1b2a;
  --ink-2: #435870;
  --ink-3: #6f8299;
  --line: #e3e9f1;

  --brand: #0e5fd8;
  --brand-dark: #0a47a6;
  --brand-soft: #e9f0fe;
  --accent: #f5a524;

  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;

  --shadow-s: 0 1px 2px rgba(15, 27, 42, .06), 0 2px 8px rgba(15, 27, 42, .04);
  --shadow: 0 4px 12px rgba(15, 27, 42, .06), 0 12px 32px rgba(15, 27, 42, .07);

  --container: 1160px;
  --header-h: 112px;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c141f;
    --bg-soft: #101a28;
    --bg-muted: #14202f;
    --surface: #111d2c;

    --ink: #eef4fb;
    --ink-2: #b6c5d7;
    --ink-3: #8598ae;
    --line: #22344a;

    --brand: #5596ff;
    --brand-dark: #7fb1ff;
    --brand-soft: #142743;

    --shadow-s: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 4px 12px rgba(0, 0, 0, .32), 0 16px 40px rgba(0, 0, 0, .28);
  }
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 .6em;
  letter-spacing: -.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: clamp(56px, 7vw, 100px) 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* --- Section başlıkları --------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .7em;
}
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 0; }

.lead { font-size: 1.12rem; color: var(--ink-2); }

/* --- Butonlar ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: .98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: #eef3fb; color: var(--brand-dark); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--shadow-s); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

/* flex:none — marka bloğu asla sıkışmasın, menünün üstüne binmesin */
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; flex: none; }
/* Logo JPEG olduğu için saydam değil; hafif yuvarlatıp bilinçli bir rozet
   gibi gösteriyoruz. Saydam PNG/SVG gelirse bu kural sadeleşebilir. */
.brand__mark { height: 66px; width: auto; flex: none; border-radius: 12px; }
.site-footer .brand__mark { height: 64px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name {
  font-weight: 800;
  font-size: 1.42rem;
  color: var(--ink);
  letter-spacing: -.015em;
  white-space: nowrap;
}
.brand__tag {
  font-size: .84rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 4px; }
/* Sayfa 1160px'te sabit olduğu için menüye düşen yer ekran genişledikçe
   artmıyor; nowrap olmadan "Ana Sayfa" her genişlikte iki satıra kırılıyordu. */
.nav a {
  padding: 9px 12px;
  border-radius: var(--radius-s);
  color: var(--ink-2);
  font-size: .96rem;
  font-weight: 600;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--bg-muted); }
.nav a.is-active { color: var(--brand); }

/* Menü içindeki CTA yalnızca mobil açılır menüde görünür */
.nav > .btn { display: none; }
.nav > .btn.btn--primary { color: #fff; border-radius: 999px; }
.nav > .btn.btn--primary:hover { background: var(--brand-dark); }

/* flex:none — header daraldığında bu blok sıkışıp telefon numarasını
   iki satıra kırmasın. Yer yetmediğinde küçülecek olan buton (aşağıda). */
.header-cta { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 700;
  color: var(--ink);
  font-size: .96rem;
  white-space: nowrap;
  flex: none;
}
.header-phone:hover { color: var(--brand); }
.header-phone svg { width: 17px; height: 17px; flex: none; }

/* Hamburger'e geçtikten sonra marka bloğu ile telefon arasında yer daralıyor;
   "Teklif Alın" butonunu ölçülü küçültüyoruz ki numara tek satırda kalsın. */
@media (max-width: 900px) {
  .header-cta .btn { padding: 10px 16px; font-size: .9rem; }
  .header-cta { gap: 8px; }
}
@media (max-width: 700px) {
  .header-cta .btn { padding: 9px 13px; font-size: .86rem; }
  .header-phone { font-size: .9rem; }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

/* Büyütülen logo + marka adı ile yatay menü ~1040px altında sığmıyor,
   o yüzden hamburger'e geçiş eşiği burada. */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .nav > .btn { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 22px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 13px 12px; font-size: 1.03rem; }
  .nav .btn { margin-top: 10px; }
}
/* 620px: büyütülmüş marka bloğu + telefon + buton + hamburger bu genişliğin
   altında yan yana sığmıyor, header taşıyordu. Eşik 560'tan buraya çekildi. */
@media (max-width: 620px) {
  :root { --header-h: 84px; }
  .header-phone span { display: none; }
  /* "Danışmanlık" ibaresi markayı ayırt eden kısım — dar ekranda da kalsın,
     yerine logo ve marka adını ölçülü küçültüyoruz. */
  .brand { gap: 10px; }
  .brand__mark { height: 52px; }
  .brand__name { font-size: 1.08rem; }
  .brand__tag { font-size: .66rem; letter-spacing: .14em; }
}

/* 360px ve altı (eski/küçük telefonlar): marka bloğu, buton ve hamburger
   yan yana sığmıyordu; hepsini bir kademe daha küçültüyoruz. */
@media (max-width: 380px) {
  :root { --header-h: 76px; }
  .container { padding-inline: 16px; }
  .header-inner { gap: 10px; }
  .brand { gap: 7px; }
  .brand__mark { height: 40px; }
  .brand__name { font-size: .86rem; }
  .brand__tag { font-size: .56rem; letter-spacing: .08em; }
  .header-cta { gap: 4px; }
  .nav-toggle { width: 40px; height: 40px; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 82% -12%, var(--brand-soft), transparent 62%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  opacity: .35;
  mask-image: radial-gradient(760px 420px at 78% 8%, #000, transparent 72%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(56px, 7vw, 104px) 0;
}
.hero h1 { margin-bottom: .5em; }
.hero__lead { font-size: 1.14rem; max-width: 56ch; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 22px;
  box-shadow: var(--shadow-s);
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .16);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__points {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 10px;
}
.hero__points li {
  display: flex;
  gap: .7em;
  align-items: flex-start;
  font-size: .98rem;
  margin: 0;
}
.hero__points svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 2px; }

/* Fotoğraflar — hep sabit oranda kırpılır ki sayfa düzeni zıplamasın */
.photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-muted);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo--wide img { aspect-ratio: 16 / 9; }
.photo--card img { aspect-ratio: 16 / 10; }
.photo figcaption {
  padding: 9px 2px 0;
  font-size: .82rem;
  color: var(--ink-3);
}

/* Sahadan çekilmiş gerçek fotoğraflar. Bunlar stok görsel değil, kendi
   ölçümlerimizin kaydı; o yüzden kırpmadan, kendi en-boy oranıyla gösteriyoruz.
   aspect-ratio burada bilerek yazılmıyor: tarayıcı, img etiketindeki width/height
   değerlerinden oranı kendisi çıkarıyor ve görsel yüklenene kadar yerini ayırıyor. */
.photo--natural img { height: auto; object-fit: contain; }
/* Küçük çözünürlüklü fotoğrafların bulanıklaşacak kadar büyütülmesini engeller */
.photo--sm { max-width: 380px; }
/* Dikey çekilmiş iki fotoğrafı yan yana koymak için */
.photo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 430px) { .photo-duo { grid-template-columns: 1fr; } }

/* Sahadan çekilmiş kısa video. Fotoğraf kutularıyla aynı çerçeveyi kullanır.
   Otomatik oynatmıyoruz ve preload="metadata" veriyoruz: ziyaretçi videoyu
   başlatmadıkça dosya indirilmez, mobil veri boşa gitmez. */
.video { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-muted); }
.video video { width: 100%; height: auto; display: block; }
.video figcaption { padding: 9px 2px 0; font-size: .82rem; color: var(--ink-3); }
/* Dikey çekilmiş video sütunun tamamını kaplayıp sayfayı uzatmasın */
.video--sm { max-width: 340px; }

/* Hero görsel kartı */
.hero__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  padding: 26px;
}
.hero__panel h3 { font-size: 1.02rem; margin-bottom: 18px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li {
  display: flex;
  gap: .8em;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: .94rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.check-list svg { width: 20px; height: 20px; flex: none; color: var(--brand); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__panel { order: 2; }
}

/* --- İç sayfa başlığı ----------------------------------------------------- */
.page-hero {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--line);
  padding: clamp(44px, 6vw, 76px) 0 clamp(38px, 5vw, 62px);
}
.page-hero h1 { margin-bottom: .35em; }
.page-hero p { max-width: 66ch; font-size: 1.08rem; margin-bottom: 0; }

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
  padding: 0;
  margin: 0 0 18px;
  font-size: .88rem;
  color: var(--ink-3);
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5em; color: var(--ink-3); }

/* --- Rakam şeridi --------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--surface); padding: 26px 22px; text-align: center; }
.stat__num {
  display: block;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.stat__label { font-size: .88rem; color: var(--ink-3); font-weight: 600; }

/* Rakam kutusu bağlantı olduğunda (ana sayfadaki "25 Yıl" → Hakkımızda):
   mavi link rengi ve alt çizgi istemiyoruz, tıklanabilir olduğu üzerine
   gelince anlaşılsın. */
a.stat { color: inherit; text-decoration: none; transition: background-color .18s ease; }
a.stat:hover, a.stat:focus-visible { background: var(--bg-soft); }
a.stat:hover .stat__num, a.stat:focus-visible .stat__num { color: var(--brand); }

@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --- Kart ızgarası -------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Hizmet kartları: sayı 3'ün katı olmayabilir, son satırdaki tek kart
   ortalansın diye grid yerine esnek dizilim kullanıyoruz. */
.grid--services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.grid--services > * { flex: 1 1 300px; max-width: calc(33.333% - 14px); }
@media (max-width: 980px) { .grid--services > * { max-width: calc(50% - 10px); } }
@media (max-width: 640px) { .grid--services > * { max-width: 100%; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card p:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .5em; }

a.card { color: inherit; display: block; }
a.card:hover,
.card--hover:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
a.card:hover h3 { color: var(--brand); }

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 25px; height: 25px; }

/* Yasal dayanak notu — hizmet kartlarının ve detay bloklarının altında */
.law-note {
  margin-top: 14px;
  padding: 11px 13px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: .85rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.law-note strong { color: var(--ink); }
.law-note p { margin: 0; }
.law-note p + p { margin-top: .5em; }

.card__more {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin-top: 14px;
  font-weight: 600;
  font-size: .93rem;
  color: var(--brand);
}
.card__more svg { width: 16px; height: 16px; transition: transform .18s ease; }
a.card:hover .card__more svg { transform: translateX(3px); }

/* --- Özellik listesi (Neden biz) ------------------------------------------ */
.feature { display: flex; gap: 16px; }
.feature__icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.feature__icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: 1.05rem; margin-bottom: .35em; }
.feature p { font-size: .96rem; margin-bottom: 0; }

/* --- Süreç adımları ------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: .95rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.03rem; }
.step p { font-size: .95rem; margin-bottom: 0; }

/* --- Hizmet detay blokları ------------------------------------------------ */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(34px, 4vw, 52px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.service-block:first-of-type { border-top: 0; padding-top: 0; }
@media (max-width: 860px) { .service-block { grid-template-columns: 1fr; } }

/* Izgara hücreleri varsayılan olarak içeriklerinden dar olamaz (min-width: auto).
   Kompanzasyon bölümündeki tablonun min-width'i 540px olduğu için hücre şişiyor
   ve sayfa telefonda yana kayıyordu. min-width: 0 demek, taşan içeriğin sayfayı
   değil kendi kutusunu (.table-wrap) kaydırmasını sağlar. */
.service-block > * { min-width: 0; }

.service-block h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }

.spec {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.spec h4 {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.spec ul { margin: 0; padding-left: 1.1em; }
.spec li { font-size: .95rem; }
.spec + .spec { margin-top: 16px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.tag-row li { margin: 0; }
.tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: .82rem;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) { .tag { color: var(--brand); } }

/* --- Tesis şeması --------------------------------------------------------- */
.diagram-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 880px) { .diagram-grid { grid-template-columns: 1fr; } }

.diagram {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(16px, 3vw, 28px);
  box-shadow: var(--shadow-s);
}
.diagram svg { width: 100%; height: auto; display: block; }

/* Şemadaki çizgi ve yüzey renkleri */
.dg-line   { stroke: var(--ink-3); stroke-width: 1.6; fill: none; }
.dg-solid  { fill: var(--bg-muted); stroke: var(--ink-3); stroke-width: 1.6; }
.dg-wire   { stroke: var(--brand); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dg-earth  { stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; }
.dg-soft   { stroke: var(--line); stroke-width: 1.4; }
.dg-badge  { fill: var(--brand); }
.dg-num    { fill: #fff; font: 700 12px var(--font); text-anchor: middle; }

.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: lg; }
.legend li { margin: 0; }
.legend a,
.legend > li > span {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink-2);
  transition: border-color .16s ease, transform .16s ease;
}
.legend a:hover { border-color: var(--brand); transform: translateX(3px); }
.legend__num {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.legend__name { display: block; font-weight: 650; color: var(--ink); font-size: .96rem; }
.legend__desc { display: block; font-size: .86rem; color: var(--ink-3); }

/* --- Referanslar ---------------------------------------------------------- */
/* Tek referansla da dolu görünsün diye ortalanmış esnek dizilim kullanıyoruz;
   liste büyüdükçe kendiliğinden satıra yayılır. */
.ref-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.ref-list li { margin: 0; }

.ref {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 280px;
  padding: 20px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}
.ref__mark {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
/* Gerçek logo eklenince harf yerine o gösterilir; dosya yoksa
   JS onu gizler ve harf rozeti geri gelir. */
/* Referans logosu saydam değil, arkasında görsel var; hafif yuvarlatarak
   bilinçli bir rozet gibi gösteriyoruz. Saydam PNG/SVG gelirse bu sadeleşir. */
.ref__logo { max-height: 42px; width: auto; max-width: 150px; object-fit: contain; border-radius: 6px; }
.ref__name { font-weight: 700; color: var(--ink); font-size: 1.05rem; line-height: 1.3; }
.ref__meta { font-size: .88rem; color: var(--ink-3); }

/* --- Tablo ---------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; min-width: 540px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { background: var(--bg-soft); color: var(--ink); font-weight: 700; font-size: .88rem; }
tbody tr:last-child td { border-bottom: 0; }

/* --- SSS ------------------------------------------------------------------ */
.faq { display: grid; gap: 12px; max-width: 840px; margin-inline: auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 56px 19px 22px;
  font-weight: 650;
  color: var(--ink);
  position: relative;
  font-size: 1.01rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details[open] summary { color: var(--brand); }
.faq .faq__body { padding: 0 22px 20px; font-size: .97rem; }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* --- CTA bandı ------------------------------------------------------------ */
.cta {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  border-radius: var(--radius-l);
  padding: clamp(36px, 5vw, 60px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 62%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 60ch; margin-inline: auto; font-size: 1.05rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* --- İletişim ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 15px; margin: 0; }
.contact-list .ci {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.contact-list .ci svg { width: 21px; height: 21px; }
.contact-list .ci-label {
  display: block;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
}
.contact-list .ci-value { display: block; margin: 2px 0 0; font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.contact-list .ci-value a { color: var(--ink); }
.contact-list .ci-value a:hover { color: var(--brand); }

/* --- Form ----------------------------------------------------------------- */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-s);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .88rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .req { color: #dc2626; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}
.field .hint { font-size: .82rem; color: var(--ink-3); margin: 6px 0 0; }

.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .87rem; color: var(--ink-3); margin: 4px 0 20px; }
.form__consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--brand); }

.form__status {
  margin-top: 14px;
  padding: 12px 15px;
  border-radius: var(--radius-s);
  font-size: .92rem;
  display: none;
}

.form__status.is-success { color: #15803d; }
.form__status.is-error { color: #b91c1c; }

/* Yönetim panelinden oluşturulan hizmet detay sayfaları */
.service-detail-layout { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr); gap:3rem; align-items:start; }
.service-detail-layout .prose { font-size:1.04rem; line-height:1.8; }
.service-detail-layout .prose h2 { margin-top:2rem; }
.service-detail-layout .prose h2:first-child { margin-top:0; }
.service-detail-layout .prose li { margin:.55rem 0; }
.service-detail-layout aside { position:sticky; top:110px; }
.detail-image { width:100%; max-height:420px; object-fit:cover; border-radius:18px; box-shadow:0 18px 42px rgba(15,27,42,.13); margin-bottom:1.2rem; }
.contact-card { padding:1.5rem; border:1px solid #e3e9f1; border-radius:16px; background:#f6f8fb; }
.contact-card h3 { margin-top:0; }
.contact-card > a:last-child { display:block; margin-top:1rem; text-align:center; font-weight:750; }
.cta-band { display:flex; align-items:center; justify-content:space-between; gap:2rem; padding:2rem; border-radius:18px; background:#eef4fe; }
.cta-band h2 { margin:0 0 .35rem; }
.cta-band p { margin:0; }
@media (max-width: 800px) { .service-detail-layout { grid-template-columns:1fr; } .service-detail-layout aside { position:static; } .cta-band { align-items:flex-start; flex-direction:column; } }
.form__status.is-visible { display: block; }
.form__status.is-ok { background: #e8f7ee; color: #14663a; }
.form__status.is-err { background: #fdecec; color: #a02222; }
@media (prefers-color-scheme: dark) {
  .form__status.is-ok { background: #10301f; color: #7fe0a8; }
  .form__status.is-err { background: #35181a; color: #ffa3a3; }
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: clamp(44px, 5vw, 68px) 0 0;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 42px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h4 {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links li { margin: 0; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--brand); }
.site-footer .brand { margin: 0 0 14px; }
.footer-about p { color: var(--ink-3); font-size: .93rem; max-width: 38ch; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
  color: var(--ink-3);
}
.footer-bottom a { color: var(--ink-3); }
.footer-bottom a:hover { color: var(--brand); }

/* --- Sabit WhatsApp butonu ------------------------------------------------ */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .38);
  transition: transform .18s ease;
}
.fab:hover { transform: scale(1.06); color: #fff; }
.fab svg { width: 29px; height: 29px; }

/* --- Yardımcılar ---------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Görünür olunca yumuşak giriş.
   .js sınıfı yalnızca JavaScript çalışıyorsa eklenir; aksi halde içerik
   baştan görünür kalır. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
