:root {
  --bg: #ffffff;
  --soft: #f5f7fb;
  --card: #ffffff;
  --ink: #0e1a2b;
  --muted: #5a6678;
  --line: #e2e7ef;
  --brand: #0b3a82;
  --brand-2: #1d5fd6;
  --brand-ink: #ffffff;
  --brand-soft: #eaf0fb;
  --ok: #0f7b4f;
  --radius: 12px;
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Alt bilgi her zaman ekranın dibinde */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main { flex: 1 0 auto; }
body > main.wrap { width: 100%; }
.home main { display: flex; flex-direction: column; }
.home .hero { flex: 1; display: flex; align-items: center; border-bottom: 0; }
.home .hero .wrap { width: 100%; }

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Klavye ile gezinirken odak her zaman görünsün */
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Üst bar */
.top { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: .45em; font-size: 20px; letter-spacing: .1em; line-height: 1; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 800; color: var(--brand); }
.brand span { font-weight: 400; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink); padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.nav .btn { margin-inline-start: 8px; padding: 9px 16px; }
.nav a.btn[aria-current="page"] { box-shadow: none; border-radius: 8px; }

/* Düğmeler */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: var(--brand-ink);
  padding: 13px 22px; border-radius: 8px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--brand);
}
.btn:hover { text-decoration: none; background: #082d66; }
.nav a.btn, .nav a.btn:hover { color: var(--brand-ink); }
.btn.ghost { background: var(--bg); color: var(--brand); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); background: var(--bg); }

/* Ana sayfa: giriş */
.hero { background: linear-gradient(180deg, var(--soft), var(--bg)); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 96px; padding-bottom: 96px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--brand-2); margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -.02em; color: var(--ink); max-width: 720px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Bölümler */
.section { padding: 80px 0; }
.section.alt { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 620px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 10px; letter-spacing: -.01em; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }
.section-head .eyebrow { margin-bottom: 10px; }

/* Hizmetlerimiz kartları */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; color: var(--brand); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* İletişim formu */
.form { display: grid; gap: 16px; max-width: 640px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.form label small { font-weight: 400; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg);
  border: 1px solid #c9d2df; border-radius: 8px; padding: 11px 12px; width: 100%;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { border-color: var(--brand-2); }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
.form .check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--brand); }
.form .btn { justify-self: start; cursor: pointer; font-family: inherit; }
/* Tuzak alan: ekranda ve ekran okuyucuda görünmez */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* KVKK metni ve bilgi sayfaları */
.prose { max-width: 760px; padding-top: 32px; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }
.prose p { margin: 0; color: var(--muted); }
.blank { color: var(--ink); background: var(--brand-soft); border-radius: 4px; padding: 0 6px; }
.notice { padding-top: 72px; }
.notice h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 36px); }
.notice p { color: var(--muted); margin: 0 0 28px; }


/* Uygulamalarımız sayfası */
.page-head { background: linear-gradient(180deg, var(--soft), var(--bg)); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 56px; padding-bottom: 40px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 40px); margin: 0 0 8px; letter-spacing: -.02em; }
.page-head p { margin: 0; color: var(--muted); font-size: 17px; }

.app-head { display: flex; align-items: center; gap: 16px; margin: 44px 0 22px; }
.app-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.app-logo { height: 64px; width: auto; display: block; }
.app-title .tag { margin-left: 0; }
.app-head p { margin: 0; color: var(--muted); font-size: 15px; }
.app-head p b { color: var(--ink); font-weight: 600; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-soft); border-radius: 99px; padding: 2px 10px; margin-left: 8px; vertical-align: 3px; }

.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dl a, .dl .soon {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 12px 26px;
  color: var(--ink); background: var(--bg); text-align: center;
}
.dl a:hover { text-decoration: none; border-color: var(--brand-2); }
.dl .soon { cursor: default; }
.dl .soon svg, .dl .soon span { opacity: .45; }
.dl .soon small { margin-top: 4px; padding: 9px 14px; border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 13.5px; font-weight: 600; line-height: 1.25; border: 1px solid var(--line); }
.dl a svg, .dl .soon svg { width: 38px; height: 38px; color: var(--brand); }
.dl a span, .dl .soon span { font-weight: 700; font-size: 17px; }
.dl a small {
  margin-top: 4px; padding: 9px 14px; border-radius: 8px;
  background: #0b5ce0; color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.25;
  box-shadow: 0 6px 14px -6px rgba(11, 92, 224, .6); transition: background .15s;
}
.dl a:hover small { background: #0a4cbb; }

/* Alt bilgi */
.foot { margin-top: 80px; border-top: 1px solid var(--line); background: var(--soft); font-size: 14.5px; color: var(--muted); }
.foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.foot a:hover { color: var(--brand); }
.foot .legal .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: 13.5px; }
.home .foot { margin-top: 0; }
.foot .langs a { text-decoration: none; }
.foot .langs a[aria-current] { color: var(--ink); font-weight: 600; }

/* Arapça: sağdan sola. Logo her zaman soldan sağa yazılır, Arapçada harf aralığı olmaz */
.brand { direction: ltr; }
[dir="rtl"] .eyebrow, [dir="rtl"] .section-head .eyebrow { letter-spacing: 0; }
[dir="rtl"] body, [dir="rtl"] .form label { line-height: 1.75; }

@media (max-width: 860px) {
  .hero .wrap { padding-top: 64px; padding-bottom: 64px; }
  .section { padding: 56px 0; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  /* Telefonda menü logonun altına iner */
  .top .wrap { height: auto; flex-wrap: wrap; row-gap: 8px; padding-top: 14px; padding-bottom: 10px; }
  .nav { width: 100%; gap: 2px; margin-inline-start: -8px; }
  .nav .nav-home { display: none; }
  .nav a { padding: 6px 8px; font-size: 14px; }
  .nav .btn { margin-inline-start: auto; padding: 7px 12px; font-size: 14px; }
  section[id] { scroll-margin-top: 104px; }
  .form .row { grid-template-columns: 1fr; }
  .brand { font-size: 16px; letter-spacing: .06em; }
  .dl { gap: 10px; }
  .app-logo { height: 40px; }
  .dl a, .dl .soon { padding: 20px 6px 18px; gap: 8px; }
  .dl a svg, .dl .soon svg { width: 30px; height: 30px; }
  .dl a span, .dl .soon span { font-size: 15px; }
  .dl a small, .dl .soon small { padding: 7px 6px; font-size: 12px; }
}
