/* ERK Yapı — site stilleri
   Tasarım dili: kağıt zemin (#f4f2ee), lacivert (#1c2b3a), çelik mavi (#3f6f8f).
   Archivo = başlık, IBM Plex Sans = metin, IBM Plex Mono = etiket. */

:root {
  --paper: #f4f2ee;
  --paper-2: #fbfaf8;
  --ink: #1c2b3a;
  --ink-2: #4c5866;
  --muted: #6b7580;
  --muted-2: #8b8578;
  --line: #e2ded6;
  --line-2: #ddd8cf;
  --steel: #3f6f8f;
  --steel-light: #8fb2c9;
  --dark-line: #3a4c60;
  --dark-2: #26374a;

  --shell: 1200px;
  --gutter: 32px;
  --font-head: Archivo, "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

/* display:flex/grid veren kurallar tarayıcının [hidden] kuralını ezer.
   JS ile gizlenen her öğe (form, galeri kartları) bu yüzden bu satıra muhtaç. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

img { max-width: 100%; }
a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--paper); }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
  width: 100%;
}

/* ---------- Başlık / navigasyon ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 96px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.brand-name { display: flex; align-items: baseline; gap: 10px; }
.brand-erk { font-family: var(--font-head); font-weight: 700; font-size: 34px; letter-spacing: -0.01em; }
.brand-yapi { font-family: var(--font-head); font-weight: 500; font-size: 34px; letter-spacing: 0.16em; color: var(--steel); }
.brand-tagline { font-family: var(--font-head); font-weight: 500; font-size: 17px; letter-spacing: 0.05em; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper) !important;
  padding: 11px 20px; border-radius: 2px;
  font-size: 14.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--steel); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-2); border-radius: 2px;
  width: 46px; height: 42px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink);
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Ortak tipografi blokları ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel); margin: 0;
}
.eyebrow-light { color: var(--steel-light); }
.eyebrow-rule { display: flex; align-items: center; gap: 12px; color: var(--muted); margin-bottom: 26px; }
.eyebrow-rule::before { content: ""; width: 34px; height: 1px; background: #c9c3b8; flex: none; }

h2 { font-family: var(--font-head); font-weight: 600; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin: 14px 0 0; }
.section-title { margin-bottom: 44px; }
.section-note { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 42ch; margin: 0; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 52px; flex-wrap: wrap;
}

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band > .shell { padding-block: clamp(56px, 8vw, 88px); }
.band-alt { background: var(--paper-2); }
.band-plain { padding-block: clamp(56px, 8vw, 88px); }
.band-dark { background: var(--ink); color: var(--paper); border-color: var(--dark-line); }
.band-dark h2, .band-dark h3 { color: var(--paper); }
.band-dark .section-note { color: #b9c6d2; }

.link-arrow {
  font-size: 15px; font-weight: 600; color: var(--steel-light);
  border-bottom: 1px solid var(--dark-line); padding-bottom: 4px;
}
.link-arrow:hover { color: #fff; }

/* ---------- Butonlar ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px; border-radius: 2px;
  font-size: 15.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--steel); color: var(--paper-2) !important; }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper) !important; }
.btn-outline-light {
  width: fit-content; border-color: #4a5b6d; color: var(--paper) !important;
  padding: 14px 26px; font-size: 15px;
}
.btn-outline-light:hover { background: var(--dark-2); }
.btn-submit {
  background: var(--steel); color: var(--paper-2);
  padding: 17px 24px; width: 100%;
}
.btn-submit:hover { background: var(--ink); }
.btn-submit[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Hero ---------- */

.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  align-items: center;
  padding-block: clamp(48px, 7vw, 88px) clamp(48px, 6vw, 72px);
}
.hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(36px, 5.6vw, 60px); line-height: 1.04;
  letter-spacing: -0.025em; margin: 0 0 24px;
}
.hero-lede { font-size: clamp(16.5px, 1.4vw, 18.5px); line-height: 1.6; color: var(--ink-2); max-width: 52ch; margin: 0 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.audience-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px; max-width: 460px;
}
.audience-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.audience-list li::before { content: ""; width: 6px; height: 6px; background: var(--steel); flex: none; }

.frame { margin: 0; border: 1px solid var(--line-2); overflow: hidden; background: #e6e2db; }
.frame picture, .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame-hero { aspect-ratio: 4 / 5; }
.frame-square { aspect-ratio: 1 / 1; }
.frame-4x3 { aspect-ratio: 4 / 3; }
.hero-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }

/* ---------- Hizmetler ---------- */

.service-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
}
.service {
  background: var(--paper-2);
  box-shadow: 0 0 0 1px var(--line);
  padding: 30px 28px 32px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.15s ease;
}
.service:hover { background: var(--paper); }
.service-no { font-family: var(--font-mono); font-size: 12px; color: #a8a29a; }
.service h3 { font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; margin: 0; }
.service p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }

/* ---------- Süreç ---------- */

.step-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
}
.step { border-top: 2px solid var(--ink); padding-top: 22px; }
.step-no { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--steel); display: block; margin-bottom: 10px; }
.step h3 { font-family: var(--font-head); font-weight: 600; font-size: 19px; margin: 0 0 10px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }

/* ---------- Projeler ---------- */

.project-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px;
}
.project .frame { border-color: var(--dark-line); background: var(--dark-2); }
.project h3 { font-family: var(--font-head); font-weight: 600; font-size: 20px; margin: 20px 0 8px; }
.project-tags { font-family: var(--font-mono); font-size: 12.5px; color: var(--steel-light); margin: 0; }

/* ---------- Galeri ---------- */

.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  padding: 10px 20px; border-radius: 2px; cursor: pointer;
  font-family: var(--font-mono); font-size: 12.5px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.gallery-btn {
  all: unset;
  display: block; cursor: pointer; width: 100%;
  border: 1px solid var(--line-2); background: #e6e2db;
  position: relative; overflow: hidden;
}
/* height: auto şart — img etiketindeki height özniteliği tarayıcıda
   height:<n>px gibi davranır ve aspect-ratio'yu ezer; dikey fotoğraflar
   kırpılmadan tüm boyunca uzardı. */
.gallery-btn img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-btn:hover img { transform: scale(1.03); }
.gallery-caption {
  display: block; padding: 12px 14px;
  background: var(--paper-2);
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2);
}
.gallery-empty { font-size: 15px; color: var(--muted); margin: 24px 0 0; }

/* ---------- Bölgeler ---------- */

.regions { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.region-list { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.region-list li {
  border: 1px solid var(--line-2); background: var(--paper-2);
  padding: 11px 18px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2);
}

/* ---------- S.S.S. ---------- */

.faq {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.faq-item { background: var(--paper); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 4px;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(17px, 2vw, 19px); color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono); font-size: 18px; color: var(--steel); flex: none;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0; padding: 0 60px 28px 4px; max-width: 72ch; }

/* ---------- Teklif ---------- */

.quote { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: start; }
.quote-lede { font-size: 17px; line-height: 1.65; color: #b9c6d2; margin: 20px 0 36px; max-width: 44ch; }
.quote-contact { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.phone-xl {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.02em;
  color: var(--paper); font-variant-numeric: tabular-nums;
}
.phone-xl:hover { color: var(--steel-light); }

.quote-card { background: var(--paper); color: var(--ink); padding: 36px 34px; }
.quote-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15.5px; color: var(--ink);
  border: 1px solid var(--line-2); background: var(--paper-2);
  padding: 14px 16px; border-radius: 2px; outline: none;
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--steel); box-shadow: 0 0 0 2px rgba(63, 111, 143, 0.18); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #a6392f; }
.field-error { font-size: 13px; color: #a6392f; margin: 0; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--steel); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: 14px; margin: 0; min-height: 1.2em; color: var(--ink-2); }
.form-status[data-state="error"] { color: #a6392f; }

.quote-done { padding: 40px 0; text-align: center; }
.quote-done h3 { font-family: var(--font-head); font-weight: 600; font-size: 24px; margin: 0 0 12px; }
.quote-done p { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---------- Alt bilgi ---------- */

.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-inner {
  padding-block: 52px 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap;
}
.brand-footer .brand-erk, .brand-footer .brand-yapi { font-size: 30px; }
.brand-footer .brand-tagline { font-size: 16px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; color: var(--muted); }
.footer-phone { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-2); }
.footer-legal { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); padding-bottom: 40px; margin: 0; }

/* ---------- Lightbox ---------- */

.lightbox {
  border: none; padding: 0; background: transparent;
  max-width: min(1000px, 92vw); max-height: 92vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(18, 26, 35, 0.9); }
.lightbox img { display: block; width: 100%; max-height: 80vh; object-fit: contain; background: var(--dark-2); }
.lightbox-caption { font-family: var(--font-mono); font-size: 12.5px; color: var(--steel-light); margin: 14px 0 0; }
.lightbox-close {
  position: fixed; top: 12px; right: 16px;
  background: none; border: none; color: var(--paper);
  font-size: 34px; line-height: 1; cursor: pointer; padding: 4px 10px;
}

/* ---------- Duyarlı düzen ---------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 560px; }
  .regions, .quote { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }
  html { scroll-padding-top: 88px; }

  .header-inner { min-height: 76px; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .brand-erk, .brand-yapi { font-size: 26px; }
  .brand-tagline { font-size: 14px; }

  .site-nav {
    display: none;
    flex-direction: column; align-items: stretch;
    width: 100%; gap: 0;
    border-top: 1px solid var(--line);
    padding-block: 8px 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav-cta { justify-content: center; margin-top: 14px; border-bottom: none; }

  .section-head { margin-bottom: 36px; }
  .quote-card { padding: 28px 22px; }
  .faq-item p { padding-right: 4px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 480px) {
  .audience-list { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-caption { font-size: 11px; padding: 9px 10px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .nav-toggle, .gallery-filters, .lightbox, .btn { display: none !important; }
  body { background: #fff; }
}

/* ---------- Hukuki metin sayfaları ---------- */

.legal { max-width: 800px; }
.legal-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em;
  margin: 14px 0 44px;
}
.legal h2 {
  font-family: var(--font-head); font-weight: 600; font-size: 20px;
  letter-spacing: -0.01em; margin: 36px 0 10px;
}
.legal p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin: 0; }
.legal-back { margin-top: 48px !important; }
.legal-foot { padding-top: 32px; }

/* ---------- Turnstile ---------- */

.turnstile-slot { min-height: 65px; }
