/* ============================================================
   Evloji — Marka Tasarım Sistemi (brand.css)
   Kurumsal kimlik: navy #0F172A · adaptif yeşil · Inter · caret
   "Bulut bir seçenek, zorunluluk değil."
   ============================================================ */

:root {
  /* ── Marka çekirdek ── */
  --navy:        #0F172A;
  --navy-2:      #1E293B;
  --green:       #15803D;  /* açık/beyaz zemin — matte, WCAG-AA */
  --green-vivid: #22C55E;  /* koyu/navy zemin + logo */
  --green-mid:   #16A34A;
  --green-light: #4ADE80;
  --green-soft:  #86EFAC;

  /* ── Açık tema (varsayılan) ── */
  --bg:          #FFFFFF;
  --surface:     #F8FAFC;
  --surface-2:   #F1F5F9;
  --border:      #E2E8F0;
  --text:        #0F172A;
  --text-body:   #334155;
  --text-muted:  #64748B;
  --text-faint:  #94A3B8;

  /* Zemine duyarlı vurgu — koyu bölümlerde override edilir */
  --accent:          var(--green);
  --accent-strong:   var(--green-mid);
  --accent-contrast: #FFFFFF;
  --on-surface:      var(--text);

  /* ── Tipografi ── */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* ── Ölçü / şekil ── */
  --container: 1160px;
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* ── Gölge ── */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.06);
  --shadow-md: 0 10px 30px rgba(15,23,42,.10);
  --shadow-lg: 0 30px 70px rgba(15,23,42,.16);
  --shadow-green: 0 14px 34px rgba(22,163,74,.28);

  --ring: 0 0 0 3px rgba(21,128,61,.22);
}

/* ── Koyu yüzeyler (hero, CTA, footer) — yeşil otomatik canlıya döner ── */
.surface-dark {
  --bg:          var(--navy);
  --surface:     var(--navy-2);
  --surface-2:   #243049;
  --border:      rgba(255,255,255,.10);
  --text:        #F8FAFC;
  --text-body:   #CBD5E1;
  --text-muted:  #94A3B8;
  --text-faint:  #64748B;
  --accent:          var(--green-vivid);
  --accent-strong:   var(--green-light);
  --accent-contrast: #06210F;
  --on-surface:      #F8FAFC;
  background: var(--navy);
  color: var(--text-body);
}

/* ============================================================
   Sıfırlama + temel
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { vertical-align: middle; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; }

::selection { background: var(--green-soft); color: var(--navy); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

/* ============================================================
   Yerleşim
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: currentColor;
}
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; margin: 0; }

.lead { font-size: 1.2rem; color: var(--text-muted); }

/* ============================================================
   Butonlar
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  line-height: 1; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 19px; height: 19px; }

.btn-primary {
  background: var(--accent); color: var(--accent-contrast);
  box-shadow: var(--shadow-green);
}
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-contrast); box-shadow: var(--shadow-lg); }

.btn-ghost {
  background: transparent; color: var(--on-surface);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(21,128,61,.05); }

.surface-dark .btn-ghost:hover { background: rgba(34,197,94,.12); }

.btn-lg { padding: 16px 30px; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* ============================================================
   Kartlar / yüzeyler
   ============================================================ */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-soft); }

.surface-dark .card { background: var(--surface); border-color: var(--border); box-shadow: none; }

/* İkon kutusu (Feather/Lucide outline) */
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 13px;
  background: rgba(21,128,61,.10); color: var(--accent);
  margin-bottom: 18px;
}
.surface-dark .icon-badge { background: rgba(34,197,94,.14); }
.icon-badge svg { width: 24px; height: 24px; }
.icon { width: 24px; height: 24px; stroke-width: 1.8; }

/* Pill / rozet */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 600;
  background: rgba(21,128,61,.10); color: var(--accent);
}
.surface-dark .pill { background: rgba(34,197,94,.12); color: var(--green-soft); }
.pill svg { width: 15px; height: 15px; }

/* ============================================================
   Logo (caret)
   ============================================================ */
.brand-logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; }
.brand-logo .mark { width: 34px; height: 34px; flex: none; }
.brand-logo .word {
  font-size: 1.32rem; font-weight: 700; letter-spacing: -.03em;
  color: var(--on-surface);
}

/* ============================================================
   Üst menü
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  height: 70px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
  margin-inline-start: auto;
}
.nav-links a {
  display: block; padding: 9px 14px; border-radius: var(--radius-sm);
  color: var(--text-body); font-weight: 500; font-size: .96rem;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; margin-inline-start: auto;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: 11px;
  color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-cta-inline { display: none; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { padding: 72px 0 36px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid var(--border);
}
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-links a { color: var(--text-body); font-size: .96rem; }
.footer-links a:hover { color: var(--accent); }
.footer-slogan { color: var(--text-muted); max-width: 320px; margin-top: 16px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 26px; flex-wrap: wrap;
  color: var(--text-faint); font-size: .9rem;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--surface-2); color: var(--text-body);
}
.footer-social a:hover { background: var(--accent); color: var(--accent-contrast); }
.footer-social svg { width: 19px; height: 19px; }

/* ============================================================
   Yardımcılar
   ============================================================ */
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stack-sm > * + * { margin-top: 10px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Yumuşak görünüm animasyonu */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: grid; position: absolute; top: 70px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 24px 18px; gap: 2px; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 12px 14px; }
  .nav-links.open .nav-cta-inline { display: block; }
  .nav-links.open .nav-cta-inline a { color: var(--accent); font-weight: 600; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-hero-row { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   Formlar
   ============================================================ */
.form-wrap { max-width: 660px; margin-inline: auto; }
.form-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--text); }
.form-label .req { color: var(--accent); }
.form-control {
  width: 100%; padding: 12px 14px;
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-control::placeholder { color: var(--text-faint); }
.form-control:focus {
  outline: none; border-color: var(--accent); background: var(--bg);
  box-shadow: 0 0 0 3px rgba(21,128,61,.15);
}
textarea.form-control { min-height: 132px; resize: vertical; }
.field-error { display: block; color: #DC2626; font-size: .85rem; margin-top: 6px; }
.input-validation-error { border-color: #DC2626 !important; }
.form-note { font-size: .85rem; color: var(--text-muted); margin-top: 14px; }

/* Bal küpü (honeypot) — gizli, botlar doldurur */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Bildirim kutuları */
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 22px; font-weight: 500; }
.alert svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.alert-success { background: rgba(21,128,61,.10); border: 1px solid rgba(21,128,61,.28); color: var(--green-mid); }
.alert-error   { background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.25); color: #DC2626; }

/* Footer bülten mini-formu */
.footer-news { margin-top: 14px; }
.footer-news .news-row { display: flex; gap: 8px; }
.footer-news input {
  flex: 1; min-width: 0; padding: 10px 13px; font-family: inherit; font-size: .92rem;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.footer-news input::placeholder { color: var(--text-faint); }
.footer-news input:focus { outline: none; border-color: var(--accent); }
.footer-news .btn { padding: 10px 16px; }
.footer-news small { display: block; margin-top: 8px; font-size: .82rem; }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}
