/* site.css — Trabzon Teknokent · Kerem
   Palet: Karadeniz mürekkebi (koyu yeşil-mavi), kâğıt, turkuaz, bakır.
   Kurumun kendi rengi turkuaz; onu koruyup etrafına derinlik verdik. */

:root {
  --ink:      #06201f;   /* deniz mürekkebi — koyu zemin */
  --ink-2:    #0a2d2b;
  --paper:    #f3efe6;   /* sıcak kâğıt */
  --paper-2:  #e8e2d5;
  --teal:     #109189;   /* kurumun turkuazı, derinleştirilmiş */
  --teal-lo:  #0c6f69;
  --copper:   #a8491f;   /* tek sıcak vurgu */
  --muted:    #52655f;
  --muted-lo: #94a5a1;
  --line:     rgba(6, 32, 31, 0.14);
  --line-dk:  rgba(243, 239, 230, 0.16);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 64px);
}

/* Fraunces alt kümesi latin; Türkçe ğ/ş/ı latin-ext dosyasından gelir.
   Aynı aileye iki yüz tanımlayıp unicode-range ile ayırıyoruz. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/fraunces-vf-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/fraunces-normal-300900-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("fonts/fraunces-vf-italic-latin.woff2") format("woff2"); }

@font-face { font-family: "Geist"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/geist-normal-300-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/geist-normal-300-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/geist-normal-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/geist-normal-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/geist-normal-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/geist-normal-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/geist-normal-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/geist-normal-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/geist-mono-normal-500-latin.woff2") format("woff2"); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none; /* italik yüz yoksa tarayıcı sahte italik üretmesin */
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; margin: 0; font-variation-settings: "SOFT" 20, "WONK" 1; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- üst çubuk ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6, 32, 31, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dk);
  color: var(--paper);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 58px; }
.brand { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.brand span { color: var(--teal); }
.top nav { margin-inline-start: auto; display: flex; gap: 22px; font-size: 14px; color: rgba(243,239,230,.72); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--paper); }
@media (max-width: 720px) { .top nav { display: none; } }
.top .cta { margin-inline-start: auto; }
@media (min-width: 721px) { .top .cta { margin-inline-start: 0; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 15px/1 var(--sans);
  padding: 11px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--teal-lo); color: #fff; text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.btn:hover { background: #0a5a55; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--paper); border: 1px solid var(--line-dk); }
.btn-ghost:hover { background: rgba(243,239,230,.08); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero .wrap { position: relative; padding-block: clamp(52px, 7vw, 88px) clamp(48px, 8vw, 92px); }
.hero h1 { font-size: clamp(38px, 7.4vw, 82px); max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--teal); font-variation-settings: "SOFT" 60, "WONK" 1; }
.hero .lead { max-width: 54ch; margin-top: 22px; color: rgba(243,239,230,.76); font-size: clamp(16px, 2vw, 19px); }
.hero .kicker { color: var(--muted-lo); margin-bottom: 20px; }

.ask { margin-top: 34px; max-width: 620px; }
.btn-call { font-size: 17px; padding: 16px 28px; gap: 12px; box-shadow: 0 10px 34px rgba(16,145,137,.28); }
.btn-call .pulse { width: 9px; height: 9px; border-radius: 50%; background: #7ce8b0; box-shadow: 0 0 0 0 rgba(124,232,176,.7); animation: nabiz 2s infinite; }
@keyframes nabiz { 70% { box-shadow: 0 0 0 9px rgba(124,232,176,0); } 100% { box-shadow: 0 0 0 0 rgba(124,232,176,0); } }
@media (prefers-reduced-motion: reduce) { .btn-call .pulse { animation: none; } }
.ask-alt { margin: 14px 0 0; font-size: 14.5px; color: rgba(243,239,230,.55); }
.ask-direkt { color: var(--teal); text-decoration: none; border-bottom: 1px solid rgba(16,145,137,.5); }
.ask-direkt:hover { color: var(--paper); border-color: var(--paper); }
.ornekler { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; max-width: 44ch; }
.ornekler li { font-size: 15px; color: rgba(243,239,230,.62); padding-inline-start: 16px; position: relative; }
.ornekler li::before { content: ""; position: absolute; inset-inline-start: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

/* görüşme kabuğu — tam ekran, sağlayıcının kendi sayfası iframe'de */
/* ⚠ backdrop-filter YOK: Safari'de blur katmanı, içindeki WebGL iframe'ini
   siyah render ediyor. Düz opak zemin kullanıyoruz. */
/* ⚠ `hidden` özniteliği herhangi bir `display` kuralına yenilir — bu satır
   olmadan kabuk sayfa açılır açılmaz her şeyin üstünü kapatır (siyah ekran). */
.gorusme[hidden] { display: none !important; }
.gorusme { position: fixed; inset: 0; z-index: 90; background: #041615; }
/* Tam ekran: çerçeve, kenar boşluğu, köşe yuvarlaması yok — görüntülü
   görüşme ekranı sayfanın tamamını kaplar (Defne'nin sayfası gibi). */
.gorusme-ic { position: absolute; inset: 0; background: #000; }
.gorusme iframe { width: 100%; height: 100%; border: 0; display: block; }
.gorusme-kapat { position: absolute; top: max(12px, env(safe-area-inset-top)); inset-inline-end: 12px; z-index: 2; font: 500 14px/1 var(--sans); padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(243,239,230,.28); background: rgba(6,32,31,.72); color: var(--paper); cursor: pointer; }
.gorusme-kapat:hover { background: rgba(6,32,31,.85); }
.ask form { display: flex; gap: 10px; background: rgba(243,239,230,.07); border: 1px solid var(--line-dk); border-radius: 14px; padding: 7px 7px 7px 18px; transition: border-color .2s ease; }
.ask form:focus-within { border-color: var(--teal); }
.ask input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0;
  color: var(--paper); font: 400 16px/1.4 var(--sans); padding: 12px 0;
}
.ask input::placeholder { color: rgba(243,239,230,.42); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  font: 400 14px/1 var(--sans); color: rgba(243,239,230,.78);
  background: transparent; border: 1px solid var(--line-dk); border-radius: 999px;
  padding: 9px 14px; cursor: pointer; transition: all .18s ease;
}
.chip:hover { border-color: var(--teal); color: var(--paper); }

/* ---------- sayaç bandı ---------- */
.counts { --muted: #9aaeaa; background: var(--ink-2); color: var(--paper); border-top: 1px solid var(--line-dk); }
.counts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-block: 40px 34px; }
@media (max-width: 760px) { .counts .wrap { grid-template-columns: repeat(2, 1fr); } }
.count b { display: block; font-family: var(--display); font-size: clamp(34px, 5vw, 52px); font-weight: 600; line-height: 1; color: var(--teal); font-variation-settings: "SOFT" 0, "WONK" 0; }
.count span { display: block; margin-top: 8px; font-size: 14px; color: rgba(243,239,230,.66); }
.count small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 3px; }
.counts .note { grid-column: 1 / -1; font-family: var(--mono); font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line-dk); padding-top: 14px; }

/* ---------- genel bölüm ---------- */
section { padding-block: clamp(56px, 8vw, 104px); }
.sec-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(28px, 4.4vw, 44px); margin-bottom: 14px; }
.sec-head p { color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.card { background: var(--paper); padding: 28px 26px 26px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0 0 14px; }
.card .ask-link { font: 500 14px/1 var(--sans); color: var(--teal-lo); background: none; border: 0; padding: 0; cursor: pointer; text-align: start; }
.card .ask-link:hover { color: var(--copper); }

/* ---------- firma dizini ---------- */
.dizin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.dizin-bar input {
  flex: 1 1 240px; min-width: 0; font: 400 15px/1 var(--sans);
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.dizin-bar input:focus { outline: 2px solid var(--teal); outline-offset: -1px; }
.filt { display: flex; flex-wrap: wrap; gap: 6px; }
.filt button {
  font: 400 13.5px/1 var(--sans); padding: 9px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
}
.filt button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.firma-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.firma { background: var(--paper); padding: 18px 20px; }
.firma b { display: block; font-size: 15.5px; font-weight: 500; letter-spacing: -0.005em; }
.firma i { font-style: normal; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-lo); display: block; margin-top: 5px; }
.firma p { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.firma p.bos { color: var(--muted); font-style: italic; }
.dizin-alt { margin-top: 16px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.more { margin-top: 18px; }

/* ---------- adımlar ---------- */
.adimlar { counter-reset: adim; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.adim { background: var(--paper); padding: 24px 26px; display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; }
.adim::before {
  counter-increment: adim; content: counter(adim, decimal-leading-zero);
  font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--teal);
  font-variation-settings: "SOFT" 0, "WONK" 0; line-height: 1.1;
}
.adim h3 { font-size: 18px; margin-bottom: 6px; }
.adim p { margin: 0; color: var(--muted); font-size: 15px; }
.adim small { font-family: var(--mono); font-size: 11px; color: var(--muted); display: block; margin-top: 8px; }
.adim-not { margin-top: 8px !important; font-size: 14px !important; color: var(--copper) !important; }
.tesvik .deger { font-size: 16px; line-height: 1.35; }
.tesvik small.sure { color: var(--ink); margin-bottom: 6px; }

/* ---------- teşvikler ---------- */
.tesvik-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tesvik { background: var(--paper); padding: 24px 24px 22px; }
.tesvik h3 { font-size: 17px; margin-bottom: 10px; }
.tesvik .deger { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--copper); font-variation-settings: "SOFT" 0, "WONK" 0; display: block; margin-bottom: 10px; }
.tesvik small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); line-height: 1.5; }

/* ---------- kaynak / dürüstlük ---------- */
.kaynak { background: var(--ink); color: var(--paper); border-radius: 18px; padding: clamp(28px, 4vw, 44px); }
.kaynak h2 { color: var(--paper); font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 16px; }
.kaynak p { color: rgba(243,239,230,.74); max-width: 68ch; }
.kaynak ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.kaynak li { padding-inline-start: 18px; position: relative; color: rgba(243,239,230,.74); font-size: 15.5px; }
.kaynak li::before { content: ""; position: absolute; inset-inline-start: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); }

/* ---------- alt ---------- */
footer { border-top: 1px solid var(--line); padding-block: 44px 56px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }
footer h2 { font: 500 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { border-color: var(--teal); color: var(--teal); }
footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* widget kendi kabuğunda; sayfa sadece yer açıyor */
#kerem-mount { min-height: 1px; }
