/* Apple tarzı: bol boşluk, büyük kalın başlıklar, beyaz / açık gri bölümler, mavi bağlantılar */
:root {
  --beyaz: #ffffff;
  --gri: #f5f5f7;
  --yazi: #1d1d1f;
  --soluk: #6e6e73;
  --mavi: #0071e3;
  --mavi-yazi: #0066cc;
  --cizgi: #d2d2d7;
  --yesil: #25d366;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--beyaz);
  color: var(--yazi);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.022em;
}
img { max-width: 100%; display: block; }
a { color: var(--mavi-yazi); text-decoration: none; }
a:hover { text-decoration: underline; }
.kap { max-width: 980px; margin: 0 auto; padding: 0 22px; }

/* Üst çubuk: ince, yarı saydam */
header { position: sticky; top: 0; z-index: 40; background: rgba(251,251,253,.8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
header .kap { height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.marka { font-size: 19px; font-weight: 600; color: var(--yazi); letter-spacing: -.02em; }
.marka:hover { text-decoration: none; }
.menu { display: flex; gap: 28px; }
.menu a { font-size: 12px; color: rgba(0,0,0,.8); letter-spacing: -.01em; }
.menu a:hover { color: #000; text-decoration: none; }
.menu a[aria-current="page"] { color: #000; font-weight: 600; }

/* Bölümler */
.bolum { padding: 80px 0; text-align: center; }
.bolum.gri { background: var(--gri); }
.ust-yazi { font-size: 21px; font-weight: 600; color: var(--soluk); margin: 0 0 6px; letter-spacing: .01em; }
h1, h2 { font-weight: 600; margin: 0; letter-spacing: -.015em; }
h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.06; }
h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; }
h3 { font-size: 28px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.01em; line-height: 1.14; }
.giris-yazi { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4; color: var(--yazi); max-width: 760px; margin: 20px auto 0; font-weight: 400; }
.soluk { color: var(--soluk); }
.yazi { max-width: 680px; margin: 16px auto 0; font-size: 19px; color: var(--soluk); }

.baglantilar { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.dugme { display: inline-block; background: var(--mavi); color: #fff; padding: 11px 22px; border-radius: 980px; font-size: 17px; border: 0; cursor: pointer; }
.dugme:hover { background: #0077ed; text-decoration: none; }
.dugme.yesil { background: var(--yesil); color: #0b2e17; }
.ok::after { content: " ›"; }

/* Büyük görsel (bölüm içinde) */
.buyuk-gorsel { margin: 48px auto 0; border-radius: 28px; width: 100%; max-height: 560px; object-fit: cover; }

/* İkili kutular */
.ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 1240px; margin: 0 auto; padding: 12px; }
.kutu { background: var(--gri); border-radius: 28px; padding: 56px 32px 0; text-align: center; overflow: hidden; display: flex; flex-direction: column; }
.kutu p { color: var(--soluk); font-size: 19px; margin: 0 auto 28px; max-width: 420px; }
.kutu img { margin-top: auto; border-radius: 20px 20px 0 0; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Galeri */
.galeri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.galeri img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }

/* Metin kartı (diğer sayfalar) */
.kart { background: var(--beyaz); border-radius: 28px; padding: 36px; text-align: left; }
.bolum.gri .kart { background: var(--beyaz); }

/* İletişim */
.iletisim { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; text-align: left; }
.iletisim dl { margin: 0; }
.iletisim dt { font-weight: 600; margin-top: 18px; }
.iletisim dd { margin: 2px 0 0; color: var(--soluk); }
.harita { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: 28px; background: var(--beyaz); }

/* Alt kısım */
footer { background: var(--gri); color: var(--soluk); font-size: 12px; padding: 20px 0 32px; }
footer .kap { border-top: 1px solid var(--cizgi); padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer .menu { gap: 18px; }
footer .menu a { color: var(--soluk); }

/* WhatsApp balonu */
.wa { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--yesil); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.wa svg { width: 30px; height: 30px; fill: #fff; }
.wa:hover { text-decoration: none; }

@media (max-width: 760px) {
  .bolum { padding: 56px 0; }
  .ikili, .iletisim { grid-template-columns: 1fr; }
  .kutu { padding: 44px 24px 0; }
  .galeri { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .galeri img { border-radius: 14px; }
  .menu { gap: 16px; }
  .buyuk-gorsel { border-radius: 20px; margin-top: 36px; }
  .kart { padding: 26px; }
}

/* Büyük fotoğraf görüntüleyici */
.galeri img { cursor: zoom-in; transition: transform .2s ease; }
.galeri img:hover { transform: scale(1.02); }
dialog.buyut { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
dialog.buyut::backdrop { background: rgba(0,0,0,.88); }
dialog.buyut img { position: absolute; inset: 0; margin: auto; max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); border-radius: 18px; object-fit: contain; }
dialog.buyut button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
dialog.buyut button:hover { background: rgba(255,255,255,.28); }
dialog.buyut .kapat { top: 18px; right: 18px; }
dialog.buyut .onceki { left: 18px; top: 50%; transform: translateY(-50%); }
dialog.buyut .sonraki { right: 18px; top: 50%; transform: translateY(-50%); }
dialog.buyut .sayac { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: 13px; }

/* Formlar sayfası: solda bilgi, sağda form kartı */
.form-duzen { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; text-align: left; max-width: 1040px; }
.form-bilgi { position: sticky; top: 72px; }
.form-bilgi h2 { font-size: 28px; text-align: left; margin-bottom: 12px; }
.form-bilgi p { color: var(--soluk); margin: 0 0 14px; }
.form-bilgi ol { margin: 0 0 22px; padding-left: 20px; color: var(--soluk); }
.form-bilgi li { margin-bottom: 6px; }
.form-kart { background: var(--beyaz); border-radius: 28px; padding: 8px; overflow: hidden; max-width: 720px; }
.form-kart iframe { border-radius: 22px; }

@media (max-width: 760px) {
  dialog.buyut img { max-width: calc(100vw - 24px); max-height: calc(100vh - 140px); border-radius: 12px; }
  dialog.buyut .onceki, dialog.buyut .sonraki { top: auto; bottom: 8px; transform: none; }
  .form-duzen { grid-template-columns: 1fr; }
  .form-bilgi { position: static; }
  .form-kart { border-radius: 20px; padding: 4px; }
}

/* Ana sayfa giriş: karlı evlerin soluk karakalem çizimi arka planda */
.kapak { position: relative; isolation: isolate; padding: 120px 0 110px; overflow: hidden; }
.kapak::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/img/kar-cizim.jpg") center 60% / cover no-repeat; }
.kapak::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(255,255,255,.78), rgba(255,255,255,.25) 70%, rgba(255,255,255,0)),
              linear-gradient(to bottom, rgba(255,255,255,0) 75%, #fff); }
@media (max-width: 760px) { .kapak { padding: 80px 0 72px; } }

/* Menü: bağlantılar bölünmesin. Telefonda üst çubuk iki satır: üstte pawst., altta bütün menü (hiçbiri gizlenmez) */
.menu a { white-space: nowrap; }
@media (max-width: 760px) {
  header .kap { height: auto; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 8px; padding-bottom: 8px; }
  header .menu { justify-content: space-between; gap: 8px; }
  header .menu a { font-size: 13px; padding: 4px 0; }
}

/* Kendi kayıt formumuz */
.form-kart .kayit, .form-kart .tesekkur { padding: 28px; }
.kayit h3 { font-size: 21px; margin: 28px 0 14px; }
.kayit h3:first-child { margin-top: 0; }
.alan { margin-bottom: 18px; }
.alan > label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.alan small { display: block; color: var(--soluk); font-size: 13px; margin-top: 4px; }
.zorunlu { color: #d70015; }
.ikili-alan { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.kayit input:not([type=radio]):not([type=checkbox]), .kayit select, .kayit textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--yazi); background: #fff;
  border: 1px solid var(--cizgi); border-radius: 12px; padding: 11px 12px; letter-spacing: normal; }
.kayit textarea { resize: vertical; }
.kayit input:focus, .kayit select:focus, .kayit textarea:focus { outline: none; border-color: var(--mavi); box-shadow: 0 0 0 3px rgba(0,113,227,.18); }
.kayit.denendi :invalid:not(fieldset) { border-color: #d70015; }
.secenekler { display: flex; flex-wrap: wrap; gap: 8px; }
.secenek { position: relative; }
.secenek input { position: absolute; opacity: 0; }
.secenek span { display: inline-block; padding: 9px 16px; border: 1px solid var(--cizgi); border-radius: 980px; cursor: pointer; font-size: 15px; }
.secenek input:checked + span { background: var(--yazi); color: #fff; border-color: var(--yazi); }
.secenek input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,113,227,.3); }
.kayit.denendi .secenekler:has(input:invalid) span { border-color: #d70015; }
/* İlişki tablosu */
.matris { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); border: 1px solid var(--cizgi); border-radius: 12px; overflow: hidden; font-size: 14px; }
.m-bas { background: var(--gri); padding: 8px 4px; text-align: center; font-weight: 600; font-size: 13px; }
.m-satir { padding: 10px; border-top: 1px solid var(--cizgi); background: #fff; }
.m-hucre { display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--cizgi); cursor: pointer; }
.m-hucre input { width: 18px; height: 18px; accent-color: var(--mavi); }
.m-etiket { display: none; }
.kayit.denendi .matris:has(input:invalid) { border-color: #d70015; }
.onay { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--soluk); margin: 22px 0 16px; }
.onay input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--mavi); flex: none; }
.hata { color: #d70015; background: #fff2f2; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.kayit .dugme { width: 100%; }
.kayit .dugme:disabled { opacity: .6; cursor: wait; }
.tesekkur { text-align: center; }
.tesekkur h3 { font-size: 28px; margin: 12px 0 8px; }
.tesekkur p { color: var(--soluk); }

@media (max-width: 760px) {
  .form-kart .kayit, .form-kart .tesekkur { padding: 20px; }
  .ikili-alan { grid-template-columns: 1fr; }
  .ikili-alan > select + select { margin-top: 10px; }   /* Dışarı çıkma, Mama: alt alta iki seçim (30.11) */
  /* Telefonda ilişki tablosu (30.11): her satırın 4 seçeneği TEK satırda, eşit genişlikte bölmeli düğme; seçili dolu */
  .matris { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border: 0; border-radius: 0; overflow: visible; }
  .matris .m-bas { display: none; }
  .m-satir { grid-column: 1 / -1; border: 0; padding: 12px 0 2px; font-weight: 600; background: none; }
  .m-hucre { position: relative; border: 1px solid var(--cizgi); border-radius: 10px; padding: 9px 2px; font-size: 13px; letter-spacing: -.02em; text-align: center; white-space: nowrap; }
  .m-hucre input { position: absolute; opacity: 0; pointer-events: none; }
  .m-hucre:has(input:checked) { background: var(--yazi); border-color: var(--yazi); color: var(--beyaz); font-weight: 600; }
  .m-hucre:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(0,113,227,.3); }
  .kayit.denendi .m-hucre:has(input:invalid) { border-color: #d70015; }
  html[data-theme="dark"] .matris .m-satir { background: none; }
  html[data-theme="dark"] .kayit.denendi .m-hucre:has(input:invalid) { border-color: #ff453a; }
  .m-etiket { display: inline; }
}

/* Aydınlatma metni */
.metin h2 { text-align: left; font-size: 21px; margin: 28px 0 8px; }
.metin p, .metin li { color: var(--yazi); font-size: 16px; line-height: 1.6; }
.metin ul { padding-left: 20px; }
footer a { color: var(--soluk); text-decoration: underline; }

/* Aydınlatma metni penceresi */
dialog.kvkk-pencere { border: 0; padding: 0; border-radius: 24px; width: min(720px, calc(100vw - 32px)); max-height: min(80vh, 760px); display: none; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.kvkk-pencere[open] { display: flex; }
dialog.kvkk-pencere::backdrop { background: rgba(0,0,0,.45); }
.kvkk-ust { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--cizgi); font-size: 17px; }
.kvkk-kapat { border: 0; background: var(--gri); width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--yazi); }
.kvkk-govde { overflow-y: auto; padding: 4px 24px 24px; }
.kvkk-govde h2 { font-size: 18px; }
.kvkk-govde p, .kvkk-govde li { font-size: 15px; }
.cf-turnstile { margin: 6px 0 14px; min-height: 65px; }
@media (max-width: 360px) {
  header .kap { padding-left: 16px; padding-right: 16px; }
  header .menu a { font-size: 12px; }
}

/* GÖRÜNÜM (proje sahibi 30.11): Açık / Koyu / Sistem seçici (public/tema.js) ve koyu renkler.
   Renkler değişkenlerden çevrilir; sabit yazılmış açık renkler aşağıda tek tek. */
.tema-secici { display: inline-flex; gap: 2px; padding: 2px; border-radius: 980px; background: var(--gri); flex: none; }
.tema-secici button { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 980px; background: transparent; color: var(--soluk); cursor: pointer; padding: 0; }
.tema-secici button svg { width: 14px; height: 14px; }
.tema-secici button:hover { color: var(--yazi); }
.tema-secici button[aria-pressed="true"] { background: var(--beyaz); color: var(--yazi); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
header .kap { position: relative; }
@media (max-width: 760px) { header .tema-secici { position: absolute; right: 16px; top: 7px; } }

html[data-theme="dark"] {
  --beyaz: #000000;
  --gri: #161617;
  --yazi: #f5f5f7;
  --soluk: #a1a1a6;
  --mavi: #0a84ff;
  --mavi-yazi: #2997ff;
  --cizgi: #424245;
}
html[data-theme="dark"] header { background: rgba(22,22,23,.8); border-bottom-color: rgba(255,255,255,.1); }
html[data-theme="dark"] .menu a { color: rgba(255,255,255,.8); }
html[data-theme="dark"] .menu a:hover, html[data-theme="dark"] .menu a[aria-current="page"] { color: #fff; }
html[data-theme="dark"] footer .menu a { color: var(--soluk); }
html[data-theme="dark"] .tema-secici button[aria-pressed="true"] { background: #3a3a3c; box-shadow: none; }
html[data-theme="dark"] .dugme:hover { background: #409cff; }
html[data-theme="dark"] .bolum.gri .kart, html[data-theme="dark"] .kart, html[data-theme="dark"] .form-kart { background: #1d1d1f; }
html[data-theme="dark"] .kapak::before { filter: invert(1) brightness(.75); }
html[data-theme="dark"] .kapak::after { background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(0,0,0,.78), rgba(0,0,0,.3) 70%, rgba(0,0,0,0)), linear-gradient(to bottom, rgba(0,0,0,0) 75%, #000); }
html[data-theme="dark"] .kayit input:not([type=radio]):not([type=checkbox]), html[data-theme="dark"] .kayit select, html[data-theme="dark"] .kayit textarea, html[data-theme="dark"] .m-satir { background: #2c2c2e; }
html[data-theme="dark"] .secenek input:checked + span { color: #000; }
html[data-theme="dark"] .zorunlu { color: #ff453a; }
html[data-theme="dark"] .kayit.denendi :invalid:not(fieldset), html[data-theme="dark"] .kayit.denendi .secenekler:has(input:invalid) span, html[data-theme="dark"] .kayit.denendi .matris:has(input:invalid) { border-color: #ff453a; }
html[data-theme="dark"] .hata { color: #ff6961; background: rgba(255,69,58,.15); }
html[data-theme="dark"] dialog.kvkk-pencere { background: #1d1d1f; color: var(--yazi); }
