/* ===== İNÇ — İlker Nedim Çakar | Mimarlık =====
   Sanat dili: sıcak kemik beyazı, çapraz geometri, tek derin gölge,
   geniş boşluk ve ince çizgi. (Referans: hero görseli)                */
:root {
  --bone: #faf7f2;
  --cream: #f2ede5;
  --sand: #cabfae;
  --sand-deep: #b7ab97;
  --ink: #35302a;
  --ink-soft: #776e60;
  --void: #2b2721;
  --line: #e2dbcd;
  --line-soft: #ece6da;
  --white: #fbf9f5;
  --max: 1240px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* hidden özniteliği sınıf kurallarını yensin (bkz. .show, .map-section) */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  font-family: "Jost", system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; letter-spacing: .005em; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.eyebrow {
  font-size: .68rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 400;
}

/* ===== Header ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .45s var(--ease), border-color .45s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(250, 247, 242, .88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
/* Yatay kilit: monogram | ince ayraç | isim */
.brand { display: flex; align-items: center; gap: .9rem; line-height: 1; }
.brand .mark { height: 42px; width: auto; }
.brand .sub {
  font-size: .54rem; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft);
  padding-left: .9rem; border-left: 1px solid var(--line); line-height: 1.6;
}
.nav { display: flex; gap: 2.6rem; }
.nav a { position: relative; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); transition: color .3s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--ink); transition: width .35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.3rem; color: var(--ink); cursor: pointer; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--bone); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
/* Görselin sol üstü zaten boş ve aydınlık — yalnızca metnin altını çok hafif açıyoruz */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(250,247,242,.72) 0%, rgba(250,247,242,.34) 34%, rgba(250,247,242,0) 58%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 78px; }
.hero .mark-big { width: clamp(160px, 26vw, 280px); height: auto; }
.hero-name { font-size: .74rem; letter-spacing: .42em; text-transform: uppercase; color: var(--ink-soft); margin: 1.6rem 0 .9rem; padding-left: .4em; }
.hero-line { font-family: "Cormorant Garamond", serif; font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.3; margin-bottom: 2.8rem; }
.hero-line i { font-style: normal; color: var(--sand-deep); padding: 0 .25rem; }

.hero-scroll { position: absolute; left: 50%; bottom: 2.2rem; z-index: 1; width: 1px; height: 54px; background: var(--line); overflow: hidden; }
.hero-scroll span { display: block; width: 1px; height: 18px; background: var(--ink-soft); animation: kaydir 2.4s var(--ease) infinite; }
@keyframes kaydir { 0% { transform: translateY(-20px); } 60%, 100% { transform: translateY(54px); } }

/* ===== Butonlar ===== */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink);
  padding-bottom: .55rem; border-bottom: 1px solid var(--ink);
  transition: gap .35s var(--ease), opacity .3s;
}
.btn:hover { gap: 1.2rem; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Bölümler ===== */
.section { padding: 8rem 0; }
.section-head { max-width: 660px; margin-bottom: 4rem; }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.12; margin-top: .9rem; }
.section-head .lead { color: var(--ink-soft); margin-top: 1.2rem; font-size: 1rem; max-width: 52ch; }

/* Hakkımızda */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 5rem; align-items: center; }
.about-img { aspect-ratio: 4/5; overflow: hidden; background: var(--sand); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.18; margin: .8rem 0 1.8rem; }
.about-text p { color: var(--ink-soft); margin-bottom: 1.3rem; }
.about-text p:first-of-type { color: var(--ink); }

/* Hizmetler — dolu blok yerine ince çizgili sade satırlar */
.services { background: var(--bone); }
.service-list { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem; align-items: start;
  padding: 2.6rem 0; border-bottom: 1px solid var(--line);
  transition: padding-left .45s var(--ease);
}
.service:hover { padding-left: .9rem; }
.service .no { font-family: "Cormorant Garamond", serif; font-size: 1rem; color: var(--sand-deep); letter-spacing: .1em; padding-top: .45rem; }
.service h3 { font-size: 1.7rem; line-height: 1.25; }
.service p { font-size: .95rem; color: var(--ink-soft); margin-top: .5rem; max-width: 62ch; }

/* Projeler */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem 1.8rem; }
.project-card { display: block; }
.project-card .ph { aspect-ratio: 3/4; overflow: hidden; background: var(--sand); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .5s; }
.project-card:hover img { transform: scale(1.04); }
.project-card .meta { padding-top: 1.1rem; border-top: 1px solid var(--line); margin-top: 1.1rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.project-card .meta h3 { font-size: 1.35rem; line-height: 1.25; }
.project-card .meta .cat { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.project-card .sub { font-size: .82rem; color: var(--ink-soft); margin-top: .25rem; }
.projects-empty { grid-column: 1/-1; text-align: center; padding: 4rem 0; color: var(--ink-soft); }
.projects-empty .serif { font-size: 1.9rem; color: var(--ink); display: block; margin-bottom: .4rem; }

/* Harita */
.map-section { background: var(--bone); }
.map-section[hidden] { display: none; }
.map-wrap { border: 1px solid var(--line); background: var(--cream); }
#projectMap { width: 100%; height: clamp(340px, 52vh, 520px); z-index: 0; }
.inc-pin span {
  display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0;
  background: var(--ink); border: 3px solid var(--bone); transform: rotate(-45deg);
  box-shadow: 0 6px 16px rgba(43,39,33,.3); transition: transform .25s var(--ease);
}
.inc-pin:hover span { transform: rotate(-45deg) scale(1.15); }
.map-pop { font-family: "Jost", sans-serif; min-width: 170px; }
.map-pop strong { font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.15rem; display: block; line-height: 1.2; }
.map-pop small { display: block; color: var(--ink-soft); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; margin: .2rem 0 .7rem; }
.map-pop a { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.leaflet-popup-content-wrapper { border-radius: 0; box-shadow: 0 10px 30px rgba(43,39,33,.16); }
.leaflet-popup-content { margin: .95rem 1.1rem; }
.leaflet-container { font-family: "Jost", sans-serif; background: var(--cream); }

/* İletişim */
.contact { position: relative; color: var(--white); }
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(43,39,33,.78), rgba(43,39,33,.28)); }
.contact .container { position: relative; z-index: 1; }
.contact .eyebrow { color: rgba(251,249,245,.7); }
.contact h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: .7rem 0 2.6rem; max-width: 15ch; line-height: 1.14; }
.contact-lines a, .contact-lines p { display: block; font-size: 1.2rem; margin-bottom: .7rem; letter-spacing: .02em; }
.contact-lines a { transition: opacity .3s; }
.contact-lines a:hover { opacity: .75; text-decoration: underline; text-underline-offset: 6px; }

/* Footer */
.site-footer { background: var(--void); color: rgba(251,249,245,.55); padding: 2.6rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .78rem; letter-spacing: .08em; }
.site-footer .mark { height: 30px; width: auto; opacity: .92; }
/* Geliştirici künyesi — sağ altta, sessiz */
.site-footer .dev {
  font-size: .66rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(251,249,245,.38); transition: color .3s;
}
.site-footer .dev b { font-weight: 400; letter-spacing: .3em; }
.site-footer .dev:hover { color: rgba(251,249,245,.85); }

/* Görünürlük animasyonu */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 3rem; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 78px 0 auto 0; background: var(--bone); flex-direction: column; gap: 0;
    padding: 1rem 1.25rem 2rem; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .45s var(--ease);
  }
  .nav.open { transform: none; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .nav-toggle { display: block; }
  .brand { gap: .7rem; }
  .brand .mark { height: 34px; }
  .brand .sub { padding-left: .7rem; font-size: .5rem; letter-spacing: .26em; }

  /* Hero: dikey ekranda görseli kırpmak yerine metnin altına bant olarak al */
  .hero { min-height: auto; display: block; padding-top: 78px; }
  .hero-media { position: relative; height: 58vw; min-height: 240px; }
  .hero-media img { object-position: 72% center; }
  .hero-media::after { background: linear-gradient(180deg, rgba(250,247,242,.25), rgba(250,247,242,0) 40%); }
  .hero-inner { padding: 3.2rem 0 3.4rem; }
  .hero-line { margin-bottom: 2.2rem; }
  .hero-scroll { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .project-grid { grid-template-columns: 1fr; gap: 3rem; }
  .service { grid-template-columns: 56px 1fr; gap: 1rem; padding: 2rem 0; }
  .section { padding: 5rem 0; }
  .section-head { margin-bottom: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span { animation: none; }
}
