/* Webdiza — genel site stilleri.
 * Renkler :root değişkenlerinden gelir; panelden "Renkler" bölümünde değiştirildiğinde site.js bunları günceller. */
:root {
  --navy: #2D336B;
  --navy-d1: #262C5E;
  --navy-d2: #1F2450;
  --indigo: #7886C7;
  --lavender: #A9B5DF;
  --pink: #FFF2F2;
  --page: #FAFAFD;
  --page-rgb: 250, 250, 253;
  --accA: #4FB8FF;
  --accB: #6B5FC9;
  --surface: #FDFBFC;
  --soft: #EFF2FB;
  --muted: #5B6190;
  --muted2: #8A8FBF;
  --line: #ECEFFA;
}

html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Manrope', system-ui, sans-serif; color: var(--navy); background: var(--page); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: 'Outfit', system-ui, sans-serif; margin: 0; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--navy); }
* { box-sizing: border-box; }
[id] { scroll-margin-top: 92px; }
img { max-width: 100%; }

.wd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 700; font-size: 16px; padding: 14px 28px; cursor: pointer; border: none; font-family: 'Manrope', sans-serif; transition: transform .15s ease, box-shadow .15s ease; text-align: center; }
.wd-btn:hover { transform: translateY(-2px); }
.wd-btn-primary { background: linear-gradient(100deg, var(--accA) 0%, var(--indigo) 55%, var(--accB) 100%); color: #FFFFFF; box-shadow: 0 10px 24px rgba(45, 51, 107, 0.25); }
.wd-btn-primary:hover { color: #FFFFFF; }
.wd-btn-ghost { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; border: 1.5px solid rgba(255, 255, 255, 0.35); }
.wd-btn-ghost:hover { color: #FFFFFF; }
.wd-btn-dark { background: var(--navy); color: #FFFFFF; }
.wd-btn-dark:hover { color: #FFFFFF; }
.wd-btn[disabled] { cursor: default; transform: none; }
.wd-card { background: var(--page); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.wd-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo); }
.wd-nav-link { font-size: 15px; font-weight: 600; color: var(--navy); opacity: 0.75; }
.wd-nav-link:hover { opacity: 1; color: var(--indigo); }

/* ---- üst menü ---- */
.wd-nav { width: 100%; display: flex; justify-content: center; border-bottom: 1px solid #F1F2FA; position: sticky; top: 0; background: rgba(var(--page-rgb), 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 50; }
.wd-nav-inner { width: 100%; max-width: 1240px; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wd-nav-logo { display: block; line-height: 0; }
.wd-nav-links { display: flex; align-items: center; gap: 28px; }
.wd-nav-right { display: flex; align-items: center; gap: 12px; }
.wd-nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--navy); }

/* ---- sabit WhatsApp balonu ---- */
.wd-wa { position: fixed; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 9990; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wd-wa.wd-wa-right { right: 22px; flex-direction: row; }
.wd-wa.wd-wa-left { left: 22px; flex-direction: row-reverse; }
.wd-wa-btn { position: relative; width: 62px; height: 62px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.22); transition: transform .2s ease, box-shadow .2s ease; }
.wd-wa-btn::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; opacity: 0; animation: wd-wa-pulse 2.6s ease-out infinite; }
.wd-wa:hover .wd-wa-btn { transform: scale(1.08); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55), 0 2px 8px rgba(0, 0, 0, 0.25); }
.wd-wa-label { background: #FFFFFF; color: #1d2d44; font-family: 'Manrope', system-ui, sans-serif; font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 999px; box-shadow: 0 8px 22px rgba(20, 30, 60, 0.18); white-space: nowrap; transition: opacity .2s ease, transform .2s ease; }
.wd-wa-hover .wd-wa-label { opacity: 0; transform: translateX(8px); pointer-events: none; }
.wd-wa-left.wd-wa-hover .wd-wa-label { transform: translateX(-8px); }
.wd-wa-hover:hover .wd-wa-label, .wd-wa-hover:focus-visible .wd-wa-label { opacity: 1; transform: none; }
@keyframes wd-wa-pulse { 0% { transform: scale(1); opacity: .55; } 70% { transform: scale(1.55); opacity: 0; } 100% { transform: scale(1.55); opacity: 0; } }

/* ---- form ---- */
.wd-field { display: flex; flex-direction: column; gap: 6px; }
.wd-field label { font-size: 13px; font-weight: 700; color: var(--navy); }
.wd-input { padding: 12px 14px; border-radius: 10px; border: 1px solid #E1E4F5; font-size: 14px; font-family: inherit; background: #fff; color: var(--navy); width: 100%; }
.wd-input:focus { outline: 2px solid rgba(120, 134, 199, 0.45); outline-offset: 1px; border-color: var(--indigo); }
.wd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.wd-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.wd-check input { margin-top: 3px; }

.wd-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 99999; box-shadow: 0 10px 30px rgba(0,0,0,.25); }

/* ---- Matrix tanılama kutusu (#matrix-debug) ---- */
.wd-debug { position: fixed; left: 12px; top: 12px; z-index: 100000; background: rgba(0, 0, 0, .82); color: #8CFFB2; font: 12px/1.5 Consolas, monospace; padding: 10px 12px; border-radius: 8px; max-width: 360px; white-space: pre-wrap; }

/* ---- kart ızgaraları (sütun sayısı site.js'ten sınıfla gelir: wd-gc1..wd-gc4) ---- */
.wd-grid { display: grid; gap: 24px; }
.wd-gc1 { grid-template-columns: minmax(0, 1fr); }
.wd-gc2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wd-gc3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wd-gc4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---- mobil uyum ---- */
@media (max-width: 1024px) {
  .wd-gc4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .wd-nav-toggle { display: inline-flex; }
  .wd-nav-inner { flex-wrap: wrap; }
  .wd-nav-links { display: none; width: 100%; order: 5; flex-direction: column; align-items: flex-start; gap: 14px; padding: 10px 2px 6px; }
  .wd-nav.wd-open .wd-nav-links { display: flex; }
}
@media (max-width: 820px) {
  .wd-gc3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wd-gc4, .wd-gc2 { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 36px !important; }
  h2 { font-size: 26px !important; }
  .wd-nav-logo img { height: 52px !important; }
  .wd-wa-btn { width: 56px; height: 56px; }
  .wd-wa-hover .wd-wa-label { display: none; }
  .wd-wa { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .wd-wa.wd-wa-right { right: 16px; }
  .wd-wa.wd-wa-left { left: 16px; }
  .wd-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wd-btn { transition: none; }
  .wd-wa-btn::after { animation: none; }
}
