/* ==========================================================================
   İDEON PROJE — Tasarım Sistemi
   Konsept: "İdeon" — fikirlerin birbirine bağlanıp bir yapıya dönüşmesi (düğüm/ağ motifi).
   Palet:  Krem (açık zemin) · Mürekkep (koyu zemin) · Sinyal Turuncusu (tek vurgu rengi)
   Tipografi: Fraunces (başlık, serif) · Manrope (gövde) · IBM Plex Mono (etiket/teknik notlar)
   ========================================================================== */

:root{
  /* Renkler */
  --graphite: #17160f;
  --graphite-soft: #211f16;
  --graphite-line: #38352a;
  --paper: #f6f2e8;
  --concrete: #eee7d6;
  --ink: #1a1810;
  --muted: #8a8574;
  --muted-dark: #b8ae96;
  --rust: #ff5a1f;
  --rust-dark: #db4713;
  --rust-light: #ff8a5c;
  --steel: #5c6b4a;
  --steel-light: #8a9470;
  --line: #e6dcc4;

  /* Tipografi */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Ölçü */
  --container-w: 1264px;
  --pad-inline: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4.5rem, 9vw, 7.5rem);
  --radius-sm: 10px;
  --radius-md: 20px;
  --shadow-card: 0 1px 2px rgba(23,22,15,0.05), 0 16px 36px -18px rgba(23,22,15,0.22);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

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

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; }

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

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

/* --- Yardımcı sınıflar --- */
.container{ max-width: var(--container-w); margin-inline: auto; padding-inline: var(--pad-inline); }
.section{ padding-block: var(--section-pad); }
.section--tight{ padding-block: clamp(3rem, 6vw, 4.5rem); }
.bg-paper{ background: var(--paper); }
.bg-concrete{ background: var(--concrete); }
.bg-graphite{ background: var(--graphite); color: var(--paper); }
.bg-graphite h1, .bg-graphite h2, .bg-graphite h3{ color: var(--paper); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.1rem;
}
.eyebrow::before{
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: currentColor;
}
.bg-graphite .eyebrow{ color: var(--rust-light); }

.section-head{ max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--wide{ max-width: 760px; }
.section-head p{ color: var(--muted); font-size: 1.05rem; }
.bg-graphite .section-head p{ color: var(--muted-dark); }

.display-xl{ font-size: clamp(2.6rem, 6vw, 4.75rem); }
.display-lg{ font-size: clamp(2.1rem, 4.4vw, 3.15rem); }
.display-md{ font-size: clamp(1.5rem, 2.6vw, 2rem); }

.muted{ color: var(--muted); }
.bg-graphite .muted{ color: var(--muted-dark); }

.mono-tag{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Butonlar --- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--rust); color: #fff; }
.btn-primary:hover{ background: var(--rust-dark); color: #fff; }
.btn-outline{ background: transparent; border-color: currentColor; color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--paper); }
.bg-graphite .btn-outline{ color: var(--paper); }
.bg-graphite .btn-outline:hover{ background: var(--paper); color: var(--graphite); }
.btn-ghost{ background: transparent; color: var(--rust); padding-inline: 0; border-radius: 0; }
.btn-ghost::after{ content: "→"; transition: transform .18s ease; }
.btn-ghost:hover::after{ transform: translateX(4px); }
.btn-sm{ padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn-block{ width: 100%; justify-content: center; }
.btn[disabled]{ opacity: 0.6; cursor: not-allowed; transform: none; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 100;
  background: rgba(23,22,15,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--graphite-line);
}
.site-header .container{
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand .logo-mark{ height: 34px; width: auto; }
.site-nav{ display: flex; align-items: center; gap: 2.4rem; }
.site-nav a{
  font-size: 0.92rem; font-weight: 500; color: var(--muted-dark);
  padding-block: 0.4rem; border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.site-nav a:hover, .site-nav a.active{ color: var(--paper); border-color: var(--rust); }
.nav-cta{ display: flex; align-items: center; gap: 1.4rem; }
.nav-toggle{
  display: none; background: none; border: 1px solid var(--graphite-line); color: var(--paper);
  width: 42px; height: 42px; border-radius: 999px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg{ width: 20px; height: 20px; }

@media (max-width: 900px){
  .site-nav{
    position: fixed; inset: 84px 0 0 0; background: var(--graphite);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1rem var(--pad-inline) 2rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .site-nav.is-open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .site-nav a{ width: 100%; padding-block: 0.9rem; border-bottom: 1px solid var(--graphite-line); }
  .nav-toggle{ display: inline-flex; }
  .nav-cta .btn-primary{ display: none; }
}

/* ==========================================================================
   HERO — İdeon Proje'de hero AÇIK zeminlidir (Katman temasının aksine)
   ========================================================================== */
.hero{
  background: var(--paper); color: var(--ink);
  position: relative; overflow: hidden;
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
}
.hero .container{
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center;
  position: relative; z-index: 2;
}
.hero-copy p.lede{ font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin-bottom: 2.2rem; }
.hero-actions{ display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual{ position: relative; }
.hero-visual svg{ width: 100%; height: auto; }

.hero-stats{
  position: relative; z-index: 2; border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 7vw, 5rem);
}
.hero-stats .container{
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto;
  align-items: stretch; padding-block: 2.2rem; gap: 0;
}
.hero-stat{ padding-inline: 1.5rem; border-left: 1px solid var(--line); }
.hero-stat:first-child{ border-left: none; padding-left: 0; }
.hero-stat .num{ font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
.hero-stat .lbl{ font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.35rem; }

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; opacity: 0.75; max-width: 340px; }
  .hero-stats .container{ grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
  .hero-stat:nth-child(3){ border-left: none; padding-left: 0; }
}

.section-divider{ display: block; width: 100%; line-height: 0; }
.section-divider svg{ width: 100%; height: auto; display: block; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-list{ border-top: 1px solid var(--line); }
.service-row{
  display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 1.75rem;
  padding-block: 2rem; border-bottom: 1px solid var(--line);
  transition: background-color .18s ease;
}
.service-row:hover{ background: var(--concrete); }
.service-icon{
  width: 56px; height: 56px; border-radius: var(--radius-md);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--rust); background: var(--paper);
}
.service-icon svg{ width: 28px; height: 28px; }
.service-row h3{ font-size: 1.35rem; margin-bottom: 0.3rem; }
.service-row p{ color: var(--muted); margin: 0; max-width: 60ch; }
.service-row .service-index{ font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); justify-self: end; }

@media (max-width: 720px){
  .service-row{ grid-template-columns: 56px 1fr; }
  .service-row .service-index{ display: none; }
}

.services-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
@media (max-width: 900px){ .services-grid{ grid-template-columns: 1fr; } }
.service-detail-card{ border: 1px solid var(--line); border-radius: var(--radius-md); padding: 2.4rem; background: var(--paper); }
.service-detail-card .service-icon{ margin-bottom: 1.5rem; }
.service-detail-card .service-index{ font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); display: block; margin-bottom: 0.8rem; }
.service-detail-card h3{ font-size: 1.4rem; }
.service-detail-card p{ color: var(--muted); }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.filter-pills{ display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filter-pill{
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.55rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  transition: all .16s ease;
}
.filter-pill:hover{ border-color: var(--ink); color: var(--ink); }
.filter-pill.active{ background: var(--ink); border-color: var(--ink); color: var(--paper); }

.projects-grid{
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.75rem; grid-auto-flow: dense;
}
.project-card{
  grid-column: span 3; position: relative; overflow: hidden; border-radius: var(--radius-md);
  background: var(--graphite); aspect-ratio: 4 / 3; box-shadow: var(--shadow-card);
}
.project-card.is-featured{ grid-column: span 4; }
.project-card.is-compact{ grid-column: span 2; }
.project-card img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover img{ transform: scale(1.045); }
.project-card .overlay{
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; color: var(--paper);
  background: linear-gradient(180deg, rgba(23,22,15,0) 40%, rgba(23,22,15,0.88) 100%);
}
.project-card .cat-tag{
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--rust-light); margin-bottom: 0.4rem; display: inline-block;
}
.project-card h3{ font-size: 1.3rem; margin-bottom: 0.2rem; }
.project-card .meta{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted-dark); }

@media (max-width: 980px){
  .projects-grid{ grid-template-columns: repeat(2, 1fr); }
  .project-card, .project-card.is-featured, .project-card.is-compact{ grid-column: span 1; }
}

.empty-state{ text-align: center; padding: 4rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-md); }

/* --- Proje detay --- */
.project-hero{ position: relative; }
.project-hero img{ width: 100%; height: clamp(320px, 52vw, 620px); object-fit: cover; }
.project-hero-meta{
  background: var(--graphite); color: var(--paper);
}
.project-hero-meta .container{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 2rem;
}
.project-hero-meta .item .lbl{ font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-dark); margin-bottom: 0.35rem; }
.project-hero-meta .item .val{ font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
@media (max-width: 720px){ .project-hero-meta .container{ grid-template-columns: repeat(2, 1fr); } }

.project-body{ display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 4rem; }
.project-body .desc{ font-size: 1.08rem; color: var(--ink); }
.project-body .desc p{ margin-bottom: 1.3em; }
.project-side{ border-left: 1px solid var(--line); padding-left: 2.5rem; }
.project-side h4{ font-size: 1rem; margin-bottom: 1rem; }
.project-side .btn{ margin-top: 1.5rem; }
@media (max-width: 900px){
  .project-body{ grid-template-columns: 1fr; }
  .project-side{ border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 2rem; }
}

.project-gallery{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.project-gallery img{ border-radius: var(--radius-md); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 720px){ .project-gallery{ grid-template-columns: 1fr 1fr; } }

.related-strip{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 900px){ .related-strip{ grid-template-columns: 1fr; } }

/* ==========================================================================
   PROCESS (Süreç) — gerçekten sıralı bir akış olduğu için numaralandırma kullanılır
   ========================================================================== */
.process-list{ display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.process-step{ border-top: 2px solid var(--line); padding-top: 1.4rem; }
.process-step .step-no{ font-family: var(--font-mono); font-size: 0.85rem; color: var(--rust); }
.process-step h4{ font-size: 1.05rem; margin: 0.6rem 0 0.5rem; }
.process-step p{ color: var(--muted); font-size: 0.92rem; margin: 0; }
@media (max-width: 980px){ .process-list{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .process-list{ grid-template-columns: 1fr; } }

/* ==========================================================================
   TEAM
   ========================================================================== */
.team-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem; }
.team-card img{ width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 1.1rem; filter: grayscale(0.1); }
.team-card h4{ font-size: 1.1rem; margin-bottom: 0.15rem; }
.team-card .role{ font-family: var(--font-mono); font-size: 0.72rem; color: var(--rust); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.7rem; display: block; }
.team-card p{ color: var(--muted); font-size: 0.92rem; }
@media (max-width: 980px){ .team-grid{ grid-template-columns: repeat(2, 1fr); } }

.values-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 900px){ .values-grid{ grid-template-columns: 1fr; } }
.value-card{ padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-md); }
.value-card .num{ font-family: var(--font-mono); color: var(--muted); font-size: 0.8rem; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band{ text-align: center; }
.cta-band .container{ max-width: 760px; }
.cta-band .btn{ margin-top: 2rem; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid{ display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; }
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }
.contact-info-item{ padding-block: 1.4rem; border-top: 1px solid var(--line); }
.contact-info-item:last-child{ border-bottom: 1px solid var(--line); }
.contact-info-item .lbl{ font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.35rem; }
.contact-info-item .val{ font-size: 1.05rem; }

.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px){ .form-row{ grid-template-columns: 1fr; } }
.form-group{ margin-bottom: 1.4rem; }
.form-group label{ display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }
.form-control{
  width: 100%; font-family: var(--font-body); font-size: 1rem; padding: 0.85rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink);
  transition: border-color .16s ease;
}
.form-control:focus{ border-color: var(--rust); outline: none; }
textarea.form-control{ resize: vertical; min-height: 140px; }
.field-error{ color: var(--rust-dark); font-size: 0.8rem; margin-top: 0.4rem; display: block; }
.validation-summary{ background: #ffe4d6; border: 1px solid var(--rust); color: var(--rust-dark); padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: 0.9rem; }
.alert-success{ background: #e7efe0; border: 1px solid var(--steel); color: #3d4a30; padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background: var(--graphite); color: var(--muted-dark); }
.footer-top{ display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--graphite-line); }
.footer-brand .logo-mark{ height: 30px; margin-bottom: 1.2rem; }
.footer-brand p{ max-width: 34ch; font-size: 0.92rem; }
.footer-col h5{ font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--paper); margin-bottom: 1.1rem; }
.footer-col li{ margin-bottom: 0.7rem; }
.footer-col a{ font-size: 0.92rem; transition: color .16s ease; }
.footer-col a:hover{ color: var(--paper); }
.footer-bottom{ display: flex; align-items: center; justify-content: space-between; padding-block: 1.5rem; font-size: 0.8rem; }
.footer-social{ display: flex; gap: 1rem; }
@media (max-width: 900px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .footer-bottom{ flex-direction: column; gap: 0.6rem; text-align: center; }
}
@media (max-width: 560px){ .footer-top{ grid-template-columns: 1fr; } }

/* ==========================================================================
   REVEAL ANIMATION (scroll-triggered, respects reduced-motion)
   ========================================================================== */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* --- Genel grid yardımcıları --- */
.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 900px){ .grid-2{ grid-template-columns: 1fr; gap: 2.5rem; } }
