/* ============================================================
   VİBA — Kurumsal Tasarım Sistemi
   Açık tema · Lacivert + mavi · Serif başlık / sans gövde
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Color */
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-soft-2: #eef3fa;
  --navy: #0b1b34;
  --navy-2: #112748;
  --ink: #10203a;
  --ink-2: #46566e;
  --ink-3: #7587a0;
  --accent: #2563eb;
  --accent-strong: #1b4fd1;
  --accent-deep: #1740a6;
  --accent-soft: #eaf1ff;
  --accent-soft-2: #dbe7ff;
  --line: #e3e9f2;
  --line-2: #d3dded;
  --white: #ffffff;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(16,32,58,.06), 0 1px 3px rgba(16,32,58,.05);
  --sh: 0 6px 18px -6px rgba(16,32,58,.14), 0 2px 6px -2px rgba(16,32,58,.08);
  --sh-lg: 0 24px 50px -18px rgba(16,32,58,.28), 0 8px 20px -10px rgba(16,32,58,.14);
  --sh-accent: 0 14px 30px -10px rgba(37,99,235,.45);

  /* Type */
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.display { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; }
h2.section-title { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.6; color: var(--ink-2); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

.muted { color: var(--ink-2); }
.text-accent { color: var(--accent); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.container-wide { max-width: 1340px; }
section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-sm { padding-block: clamp(48px, 6vw, 80px); }
.bg-soft { background: var(--bg-soft); }
.bg-soft-2 { background: var(--bg-soft-2); }
.bg-navy { background: var(--navy); color: #d8e2f0; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }

.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .82em 1.5em; border-radius: var(--r-sm);
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap; cursor: pointer; line-height: 1;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--sh-accent); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(37,99,235,.55); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--sh-sm); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-outline-light { border: 1px solid rgba(255,255,255,.3); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-lg { padding: 1em 1.9em; font-size: 1.05rem; }
.btn-link { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: .5em; }
.btn-link svg { width: 1.1em; height: 1.1em; transition: transform .2s ease; }
.btn-link:hover svg { transform: translateX(4px); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease;
}
.card-pad { padding: clamp(24px, 3vw, 36px); }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--line-2); }

.pill {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: .82rem; font-weight: 600; padding: .4em .9em; border-radius: 100px;
  letter-spacing: .01em;
}
.pill-soft { background: var(--bg-soft-2); color: var(--ink-2); }

/* Icon tile */
.icon-tile {
  width: 56px; height: 56px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-soft-2);
  flex: none;
}
.icon-tile svg { width: 28px; height: 28px; }
.icon-tile.navy { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============================================================
   HEADER / NAV  (injected by site.js)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px -12px rgba(16,32,58,.2); }
.nav { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.32rem; letter-spacing: .02em; color: var(--navy); }
.brand-sub { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  font-size: .95rem; font-weight: 500; color: var(--ink-2);
  padding: .55em .8em; border-radius: var(--r-xs); white-space: nowrap;
  transition: color .18s ease, background .18s ease; position: relative;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.lang-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 100px; overflow: hidden; }
.lang-toggle button { padding: .35em .7em; font-size: .78rem; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; transition: background .18s, color .18s; }
.lang-toggle button.active { background: var(--accent); color: #fff; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-xs); align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* mobile panel */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: rgba(255,255,255,.98); backdrop-filter: blur(8px);
  padding: 28px var(--gut); display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  border-top: 1px solid var(--line); overflow-y: auto;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { font-size: 1.15rem; font-weight: 500; padding: .7em 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-menu a.active { color: var(--accent); }
.mobile-menu .btn { margin-top: 18px; }

/* ============================================================
   FOOTER (injected by site.js)
   ============================================================ */
.site-footer { background: var(--navy); color: #aab9cf; padding-top: clamp(56px, 7vw, 90px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 52px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #6f82a0; }
.footer-legalname { color: #c3d0e2; font-weight: 600; margin-top: 18px; font-size: .95rem; line-height: 1.5; }
.footer-desc { margin-top: 12px; font-size: .92rem; line-height: 1.7; color: #8c9cb8; max-width: 34ch; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-contact li { font-size: .94rem; color: #9aaaC4; transition: color .18s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 16px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; color: #9aaac4; }
.footer-contact svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 26px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; font-size: .85rem; color: #7e8fab; }
.footer-bottom-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: #aab9cf; transition: all .2s ease; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); background: var(--bg-soft); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.3rem, 4.5vw, 3.4rem); }
.page-hero .lead { margin-top: 18px; max-width: 56ch; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--ink-3); margin-bottom: 22px; font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .5; }

/* ---------- Reveal animation (only active when html.anim is set) ---------- */
.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.anim .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .anim .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Decorative abstract graphics ---------- */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.grid-dots { background-image: radial-gradient(var(--line-2) 1.3px, transparent 1.3px); background-size: 22px 22px; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none; z-index: 0;
}

/* ---------- Utility ---------- */
.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 20px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-sm { gap: 12px; }
.gap { gap: 20px; }
.wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0; }
.center-text { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; }

/* ---------- Stat ---------- */
.stat-num { font-family: var(--serif); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--accent); letter-spacing: -.02em; }
.stat-label { font-size: .92rem; color: var(--ink-2); margin-top: 8px; font-weight: 500; }
.bg-navy .stat-label { color: #93a4c0; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: .8em 1em; transition: border-color .18s, box-shadow .18s; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { resize: vertical; min-height: 130px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-actions .btn-cta-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .cols-3 { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* hide elements pre-translation flash */
[data-tr]:empty { min-height: 1em; }
