/* ============================================================
   Elazığ Bilgisayarcı — Tasarım Sistemi
   Açık tema · indigo birincil · zümrüt ikincil · bento grid
   ============================================================ */

:root {
  /* Renkler */
  --bg: #F7F8FB;
  --bg-2: #EEF0F6;
  --surface: #FFFFFF;
  --surface-2: #F3F4F8;
  --surface-3: #E9EBF2;
  --border: rgba(26, 29, 43, 0.08);
  --border-strong: rgba(26, 29, 43, 0.14);
  --indigo: #4F46E5;
  --indigo-dark: #4338CA;
  --indigo-soft: rgba(79, 70, 229, 0.08);
  --indigo-glow: rgba(79, 70, 229, 0.20);
  --green: #10B981;
  --green-soft: rgba(16, 185, 129, 0.12);
  --green-glow: rgba(16, 185, 129, 0.22);
  --text: #1A1D2B;
  --text-2: #4B5165;
  --muted: #6B7280;
  --navy: #1A1D2B;

  /* Tipografi */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Ölçüler */
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --header-h: 68px;

  /* Efektler */
  --grid: rgba(26, 29, 43, 0.04);
  --blur: 18px;
  --shadow: 0 20px 50px -22px rgba(26, 29, 43, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Arka plan dokusu: ince grid + üst spotlight */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 45%, transparent 100%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 60% 45% at 16% -6%, rgba(79, 70, 229, 0.09), transparent 60%),
    radial-gradient(ellipse 50% 40% at 86% 4%, rgba(16, 185, 129, 0.08), transparent 60%);
  opacity: 0.05;
  pointer-events: none;
}

/* ---------------- Tipografi ---------------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { color: var(--text-2); }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-dark); }

::selection { background: var(--indigo); color: #fff; }

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

section { padding-block: clamp(3rem, 7vw, 5.5rem); }

.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--indigo); margin-bottom: 0.7rem;
}
.section-head .eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--indigo); }
.section-head h2 { margin-bottom: 0.6rem; }
.section-head p { font-size: 1.05rem; }

.grad { background: linear-gradient(100deg, var(--indigo), #7C3AED 55%, var(--green)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 8s ease infinite; }
@keyframes gradShift { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--text); }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--indigo), #7C3AED);
  box-shadow: 0 6px 16px -6px var(--indigo-glow);
}
.brand .logo svg { width: 19px; height: 19px; color: #fff; }
.brand small { display: block; font-size: 0.62rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 13px; border-radius: 9px;
  color: var(--text-2); font-size: 0.92rem; font-weight: 500;
  transition: color .18s, background .18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--indigo); background: var(--indigo-soft); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------------- Butonlar ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font-family: var(--font); font-size: 0.95rem; font-weight: 600; cursor: pointer;
  transition: transform .16s, box-shadow .16s, background .16s, border-color .16s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--indigo), var(--indigo-dark)); color: #fff; box-shadow: 0 10px 26px -10px var(--indigo-glow); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px var(--indigo-glow); transform: translateY(-1px); color: #fff; }
.btn-green { background: linear-gradient(135deg, var(--green), #059669); color: #fff; box-shadow: 0 10px 26px -10px var(--green-glow); }
.btn-green:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px var(--green-glow); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }

/* ---------------- Kartlar ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(26, 29, 43, 0.04);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(79, 70, 229, 0.35); box-shadow: 0 20px 44px -24px var(--indigo-glow); }

/* ---------------- Bento Grid ---------------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento > * { position: relative; overflow: hidden; padding: 26px; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
.bento .span-8 { grid-column: span 8; }
.bento .span-12 { grid-column: span 12; }

.bento .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--indigo-soft); color: var(--indigo); margin-bottom: 16px;
}
.bento .icon svg { width: 23px; height: 23px; }
.bento h3 { margin-bottom: 8px; font-size: 1.15rem; }
.bento p { font-size: 0.94rem; }
.bento .link { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--indigo); }
.bento .link svg { width: 15px; height: 15px; transition: transform .16s; }
.bento .link:hover svg { transform: translateX(3px); }

/* ---------------- Hero ---------------- */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 500;
  background: var(--indigo-soft); color: var(--indigo); border: 1px solid rgba(79, 70, 229, 0.22);
  margin-bottom: 1.3rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero .lead { font-size: 1.12rem; max-width: 560px; margin-bottom: 1.8rem; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .trust { display: flex; gap: 1.6rem; margin-top: 2rem; flex-wrap: wrap; }
.hero .trust .t { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-2); }
.hero .trust .t svg { width: 17px; height: 17px; color: var(--green); }

.hero-visual { position: relative; }
.hero-visual .glow { position: absolute; inset: -30%; background: radial-gradient(circle, rgba(79, 70, 229, 0.14), transparent 60%); filter: blur(34px); z-index: -1; }
.hero-visual .panel {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow);
}
.hero-visual .panel .row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; color: var(--text-2); }
.hero-visual .panel .row:last-child { border-bottom: 0; }
.hero-visual .panel .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14); }

/* ---------------- Hizmet kartları ---------------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { padding: 24px; display: flex; flex-direction: column; }
.service-card .icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--indigo-soft); color: var(--indigo); margin-bottom: 14px; }
.service-card .icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 1.06rem; margin-bottom: 6px; }
.service-card p { font-size: 0.9rem; flex: 1; }
.service-card a.more, a.more { margin-top: 14px; font-size: 0.86rem; font-weight: 600; color: var(--indigo); display: inline-flex; align-items: center; gap: 5px; }

/* ---------------- Rozet / chip ---------------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.chip.indigo { background: var(--indigo-soft); color: var(--indigo); border-color: rgba(79, 70, 229, 0.22); }

/* ---------------- Breadcrumb ---------------- */
.breadcrumbs { font-size: 0.86rem; color: var(--muted); padding-block: 1.4rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--indigo); }
.breadcrumbs span { margin-inline: 8px; opacity: .5; }

/* ---------------- Hizmet sayfası gövdesi ---------------- */
.article-hero { padding-bottom: 2.5rem; }
.article-hero h1 { margin-bottom: 0.9rem; }
.article-hero .meta { color: var(--muted); font-size: 0.95rem; }
.article-hero .lead { font-size: 1.08rem; color: var(--text-2); max-width: 760px; }

.article-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; }
.article-content { max-width: 760px; }
.article-content h2 { margin: 2rem 0 0.8rem; font-size: 1.4rem; }
.article-content h3 { margin: 1.4rem 0 0.5rem; font-size: 1.05rem; color: var(--text); }
.article-content p { margin-bottom: 0.9rem; }
.article-content ul { margin: 0 0 1rem 1.3rem; color: var(--text-2); }
.article-content li { margin-bottom: 0.4rem; }
.article-content li::marker { color: var(--indigo); }

/* Kenar çubuğu */
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 16px; }
.sidebar .box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 1px 2px rgba(26, 29, 43, 0.04); }
.sidebar .box h4 { margin-bottom: 8px; font-size: 1rem; }
.sidebar .box p { font-size: 0.88rem; margin-bottom: 14px; }
.sidebar .contact-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.9rem; color: var(--text-2); }
.sidebar .contact-line svg { width: 17px; height: 17px; color: var(--indigo); flex: none; }

/* ---------------- FAQ ---------------- */
.faq { max-width: 760px; margin-top: 2.5rem; }
.faq details { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--surface); overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; font-size: 0.98rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--indigo); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details .a { padding: 0 18px 16px; color: var(--text-2); font-size: 0.94rem; }

/* ---------------- Form ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: span 2; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  font-family: var(--font); font-size: 0.95rem; transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }
.form-success { display: none; padding: 14px 16px; border-radius: 12px; background: var(--green-soft); border: 1px solid rgba(16, 185, 129, 0.3); color: #059669; font-weight: 600; margin-bottom: 16px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 0.82rem; color: var(--muted); }
.check input { width: auto; margin-top: 3px; }

/* ---------------- Footer (koyu lacivert kontrast) ---------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--navy); padding-block: 3rem 1.6rem; margin-top: 3rem; color: #CBD0DC; }
.site-footer a { color: #CBD0DC; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: #8B90A5; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { font-size: 0.9rem; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: 0.9rem; margin-top: 12px; max-width: 320px; color: #A6ABBd; }
.footer-parent { margin-top: 14px; font-size: 0.82rem; color: #8B90A5; }
.footer-parent b { color: #A5B4FC; }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: #8B90A5; }
.footer-bottom a { color: #8B90A5; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .article-body { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .bento .span-8, .bento .span-6 { grid-column: span 12; }
  .bento .span-4 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .service-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .bento .span-4 { grid-column: span 12; }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 22px; }
}

/* Erişilebilirlik */
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }

/* ---------------- Animasyonlar ---------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .badge, .hero h1, .hero .lead, .hero .actions, .hero .trust, .hero-visual {
  animation: fadeUp .65s cubic-bezier(.22, .61, .36, 1) both;
}
.hero h1 { animation-delay: .06s; }
.hero .lead { animation-delay: .14s; }
.hero .actions { animation-delay: .22s; }
.hero .trust { animation-delay: .3s; }
.hero-visual { animation-delay: .2s; }

.card, .bento > * { transition: transform .25s cubic-bezier(.22, .61, .36, 1), border-color .25s, box-shadow .25s; }
.card:hover, .bento > *:hover { transform: translateY(-4px); }

.btn, .chip { transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s; }
.btn:hover { transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
