/* =========================================================
   CREATIVE ARCHITECTS — main.css
   Modern minimal stil, siyah/beyaz palet, ince tipografi
   ========================================================= */

/* ---- Reset ---- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, picture, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---- Tipografi ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600&display=swap');

:root {
  --c-black: #0a0a0a;
  --c-white: #ffffff;
  --c-bg: #ffffff;
  --c-fg: #0a0a0a;
  --c-muted: #6b6b6b;
  --c-line: #e5e5e5;
  --c-accent: #C8501E; /* cesur bakır/terra */
  --c-accent-deep: #9A3D14;
  --c-accent-soft: #F4E5DA;
  --ff: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 60px);
}

body {
  font-family: var(--ff);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-fg);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,h4 { font-weight: 200; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(40px, 6vw, 88px); }
h2 { font-size: clamp(28px, 4vw, 56px); }
h3 { font-size: clamp(20px, 2.4vw, 32px); }
h4 { font-size: 18px; font-weight: 400; }

p { font-weight: 300; max-width: 65ch; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--c-accent);
  display: inline-block;
}

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 10vw, 160px); }
.section--tight { padding-block: clamp(60px, 7vw, 100px); }

/* ---- Header / Nav ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  mix-blend-mode: difference;
  color: #fff;
}
.site-header.scrolled {
  mix-blend-mode: normal;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  color: var(--c-black);
  border-bottom: 1px solid var(--c-line);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 400; letter-spacing: 0.1em; font-size: 14px; text-transform: uppercase; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.site-header.scrolled .brand img.logo-white { display: none; }
.brand img.logo-black { display: none; }
.site-header.scrolled .brand img.logo-black { display: block; }

.nav { display: flex; gap: 36px; align-items: center; }
.nav a { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; position: relative; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 1px; width: 0;
  background: var(--c-accent); transition: width 0.3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.site-header.scrolled .nav a:hover, .site-header.scrolled .nav a.active { color: var(--c-accent); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 0; position: relative; z-index: 110; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 6px auto; transition: 0.3s var(--ease); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--c-black); color: var(--c-white);
    flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    transform: translateX(100%); transition: transform 0.4s var(--ease);
    z-index: 105;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 22px; color: #fff; }
  .nav a::after { background: #fff; }
  /* X butonu — nav açıkken görünür */
  .nav-toggle.open { position: fixed; top: 16px; right: 20px; z-index: 120; }
  .nav-toggle.open span { background: #fff !important; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---- Hero ---- */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  overflow: hidden; color: #fff;
  display: flex; align-items: flex-end; padding-bottom: clamp(60px, 8vh, 120px);
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  background: var(--c-black);
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: 0.78;
}
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}
.hero__inner { position: relative; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); width: 100%; }
.hero__eyebrow { color: rgba(255,255,255,0.85); margin-bottom: 18px; }
.hero__title { font-size: clamp(40px, 7vw, 110px); font-weight: 200; letter-spacing: -0.025em; max-width: 14ch; }
.hero__sub { margin-top: 20px; font-size: clamp(15px, 1.4vw, 18px); max-width: 50ch; opacity: 0.85; font-weight: 300; }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: #fff; opacity: 0.7;
}
.scroll-cue::after {
  content: ''; display: block; width: 1px; height: 30px; margin: 8px auto 0;
  background: #fff; animation: scrollCue 2s var(--ease) infinite;
}
@keyframes scrollCue {
  0%,100% { transform: scaleY(0.4); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* ---- Section Header ---- */
.sec-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 60px; gap: 40px; flex-wrap: wrap; }
.sec-head__title { max-width: 18ch; }
.sec-head__text { max-width: 50ch; color: var(--c-muted); }

/* ---- Project Grid ---- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.proj-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--c-line);
}
.proj-card--lg { grid-column: span 8; aspect-ratio: 4 / 3; }
.proj-card--md { grid-column: span 4; aspect-ratio: 3 / 4; }
.proj-card--sm { grid-column: span 6; aspect-ratio: 4 / 3; }
.proj-card--full { grid-column: span 12; aspect-ratio: 21 / 9; }

@media (max-width: 900px) {
  .proj-card--lg, .proj-card--md, .proj-card--sm, .proj-card--full {
    grid-column: span 12; aspect-ratio: 4 / 3;
  }
}

.proj-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
  filter: grayscale(15%);
}
.proj-card:hover img { transform: scale(1.04); filter: grayscale(0); }
.proj-card__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.65) 100%);
  opacity: 1;
}
.proj-card__cat { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 8px; font-weight: 500; }
.proj-card__title { font-size: clamp(18px, 1.8vw, 24px); font-weight: 300; letter-spacing: -0.01em; }
.proj-card__loc { font-size: 12px; opacity: 0.75; margin-top: 4px; }

/* ---- About strip ---- */
.about-strip {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: start;
}
.about-strip__num { font-size: clamp(60px, 8vw, 120px); font-weight: 200; letter-spacing: -0.03em; line-height: 1; color: var(--c-accent); }
.about-strip__lbl { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-muted); margin-top: 8px; }
.stats { display: flex; gap: 60px; flex-wrap: wrap; margin-top: 60px; }

@media (max-width: 800px) {
  .about-strip { grid-template-columns: 1fr; }
}

/* ---- Services ---- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--c-line); }
.service { padding: 60px 40px 60px 0; border-right: 1px solid var(--c-line); }
.service:last-child { border-right: 0; padding-right: 0; }
.service:not(:first-child) { padding-left: 40px; }
.service__num { font-size: 12px; color: var(--c-accent); letter-spacing: 0.2em; font-weight: 500; }
.service__title { font-size: 28px; font-weight: 300; margin: 16px 0 18px; letter-spacing: -0.01em; }
.service__text { font-size: 15px; color: var(--c-muted); line-height: 1.7; }

@media (max-width: 800px) {
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--c-line); padding: 40px 0; }
  .service:not(:first-child) { padding-left: 0; }
  .service:last-child { border-bottom: 0; }
}

/* ---- CTA Banner ---- */
.cta {
  background: var(--c-black); color: var(--c-white);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  text-align: center;
}
.cta h2 { max-width: 18ch; margin: 0 auto 28px; }
.cta p { max-width: 50ch; margin: 0 auto 40px; color: rgba(255,255,255,0.7); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px;
  border: 1px solid currentColor;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  background: transparent; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.btn:hover span { color: #fff; }
.btn--light { color: #fff; }
.btn--dark { color: var(--c-black); }
.btn--accent { color: #fff; background: var(--c-accent); border-color: var(--c-accent); }
.btn--accent:hover { background: var(--c-accent-deep); border-color: var(--c-accent-deep); }
.btn span { transition: color 0.3s var(--ease); }
.btn::after { content: '→'; font-size: 14px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--c-black); color: var(--c-white);
  padding: 80px var(--gutter) 30px;
  font-size: 14px;
}
.footer-grid {
  max-width: var(--max); margin-inline: auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-grid h5 { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 400; margin-bottom: 18px; color: rgba(255,255,255,0.6); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.85); transition: color 0.2s; }
.footer-grid a:hover { color: var(--c-white); }
.footer-brand img { width: 56px; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 14px; max-width: 38ch; line-height: 1.7; font-size: 14px; }
.footer-bottom { max-width: var(--max); margin: 30px auto 0; display: flex; justify-content: space-between; color: rgba(255,255,255,0.45); font-size: 12px; flex-wrap: wrap; gap: 12px; }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ---- Reveal animations ---- */
/* Default: görünür kalır (JS yüklenmese bile içerik okunabilir).
   JS yüklenirse ".reveal:not(.in)" üzerinden başlangıç animasyonu tetiklenir. */
.reveal { opacity: 1; transform: none; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js-loaded .reveal:not(.in) { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1 !important; transform: none !important; }
}

/* ---- Page header (interior pages) ---- */
.page-head {
  padding: 160px var(--gutter) 50px;
  background: var(--c-black); color: var(--c-white);
}
.page-head__inner { max-width: var(--max); margin-inline: auto; }
.page-head h1 { max-width: 18ch; margin-top: 12px; }
/* Page-head'i takip eden section'ın üst paddingi azaltıldı (ölü alan önleme) */
.page-head + .section { padding-top: clamp(40px, 5vw, 70px); }

/* ---- Project detail ---- */
.proj-hero { position: relative; height: 80vh; min-height: 500px; overflow: hidden; }
.proj-hero img { width: 100%; height: 100%; object-fit: cover; }

.proj-meta {
  display: grid; grid-template-columns: 1fr 2fr; gap: 80px;
  padding-block: clamp(60px, 8vw, 120px);
  border-bottom: 1px solid var(--c-line);
}
.proj-meta__list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
.proj-meta__row { }
.proj-meta__lbl { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 6px; }
.proj-meta__val { font-size: 16px; font-weight: 400; }

@media (max-width: 800px) {
  .proj-meta { grid-template-columns: 1fr; gap: 30px; }
}

.gallery-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
}
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3;
  transition: opacity 0.4s var(--ease); cursor: zoom-in;
}
.gallery-grid img:hover { opacity: 0.85; }
.gi-6 { grid-column: span 6; }
.gi-12 { grid-column: span 12; aspect-ratio: 21/9; }
.gi-4 { grid-column: span 4; }
.gi-8 { grid-column: span 8; }

@media (max-width: 800px) {
  .gi-6, .gi-4, .gi-8 { grid-column: span 12; }
}

/* ---- Lightbox ---- */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 200; display: none; align-items: center; justify-content: center; padding: 40px; }
.lb.open { display: flex; }
.lb img { max-width: 95%; max-height: 95vh; object-fit: contain; }
.lb__close { position: absolute; top: 24px; right: 30px; color: #fff; background: none; border: 0; font-size: 30px; cursor: pointer; }

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 720px; }
.form-grid label { grid-column: span 1; display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-muted); }
.form-grid label.full { grid-column: span 2; }
.form-grid input, .form-grid textarea {
  border: 0; border-bottom: 1px solid var(--c-line);
  padding: 12px 0; font-size: 16px; background: transparent; color: var(--c-fg);
  font-weight: 300;
}
.form-grid input:focus, .form-grid textarea:focus { outline: none; border-color: var(--c-black); }
.form-grid textarea { resize: vertical; min-height: 120px; font-family: inherit; }

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: span 1; }
}

/* ---- Filter bar ---- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 50px; }
.filter-bar button {
  padding: 10px 18px; border: 1px solid var(--c-line); background: transparent;
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filter-bar button:hover, .filter-bar button.active { background: var(--c-accent); color: var(--c-white); border-color: var(--c-accent); }

/* ---- Two col content ---- */
.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); }
.two-col p { margin-bottom: 1em; color: var(--c-muted); font-size: 16px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* ---- Misc ---- */
hr.line { border: 0; border-top: 1px solid var(--c-line); margin: 0; }
.center { text-align: center; }
.muted { color: var(--c-muted); }


/* =========================================================
   PREMIUM TASARIM RAFİNESİ
   Subtle gelişimler — temel layout korunarak premium his
   ========================================================= */

/* ---- Eyebrow'lara ince accent çizgi ---- */
.eyebrow { position: relative; padding-left: 28px; }
.eyebrow::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 20px; height: 1px; background: var(--c-accent);
  transform: translateY(-50%);
}
.hero__eyebrow::before { background: var(--c-accent); width: 24px; }

/* ---- Hero: yavaş ken-burns zoom + daha derin gradient ---- */
.hero__media img {
  animation: heroZoom 20s ease-out forwards;
  transform-origin: center center;
}
@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero__media::after {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.1) 30%,
    rgba(0,0,0,0.1) 60%,
    rgba(0,0,0,0.7) 100%
  );
}
.hero__title {
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}

/* ---- Proje kartlarına sofistike hover ---- */
.proj-card { cursor: pointer; }
.proj-card img {
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
  filter: grayscale(20%) brightness(0.95);
}
.proj-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0) brightness(1);
}
.proj-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.4) 70%,
    rgba(0,0,0,0.85) 100%
  );
  transition: background 0.5s var(--ease);
}
.proj-card:hover .proj-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.5) 65%,
    rgba(0,0,0,0.92) 100%
  );
}
.proj-card__cat {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 10px;
}
.proj-card__cat::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--c-accent);
  transition: width 0.4s var(--ease);
}
.proj-card:hover .proj-card__cat::after { width: 100%; }
.proj-card__title {
  transition: transform 0.5s var(--ease);
}
.proj-card:hover .proj-card__title {
  transform: translateY(-3px);
}

/* ---- Section divider: ince çizgi + sıcak accent nokta ---- */
.section-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 0;
}
.section-divider::before,
.section-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--c-line);
}
.section-divider__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent);
}

/* ---- Tipografi rafinesi ---- */
h1 { letter-spacing: -0.03em; }
h2 { letter-spacing: -0.022em; }
.hero__title { letter-spacing: -0.035em; line-height: 1.05; }

/* ---- Service kartlarında üst-bordo accent çizgi (hover) ---- */
.service {
  position: relative;
  transition: padding-top 0.35s var(--ease);
}
.service::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0;
  height: 2px; background: var(--c-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service__num {
  transition: color 0.3s var(--ease);
}

/* ---- Stat numaraları için ince accent dot ---- */
.about-strip__num {
  position: relative;
  display: inline-block;
}
.about-strip__num::after {
  content: ''; position: absolute; right: -14px; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent); opacity: 0.7;
  transform: translateY(-50%);
}

/* ---- Buton rafinesi (subtle gölge + hover lift) ---- */
.btn {
  transition: background 0.3s var(--ease),
              border-color 0.3s var(--ease),
              color 0.3s var(--ease),
              transform 0.25s var(--ease),
              box-shadow 0.3s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 80, 30, 0.18);
}
.btn::after {
  transition: transform 0.3s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }

/* ---- Reveal animasyonu daha sofistike easing ---- */
.reveal { transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                       transform 1s cubic-bezier(0.16, 1, 0.3, 1); }

/* ---- Footer links: hover'da soldan accent gelir ---- */
.footer-grid a {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.3s var(--ease), color 0.2s;
}
.footer-grid a:hover {
  padding-left: 14px;
  color: var(--c-accent) !important;
}
.footer-grid a::before {
  content: '→'; position: absolute; left: -4px; top: 0;
  opacity: 0; transition: opacity 0.3s var(--ease), left 0.3s var(--ease);
  color: var(--c-accent);
}
.footer-grid a:hover::before {
  opacity: 1; left: 0;
}

/* ---- Proje detay galerisinde fotoğraflara gölge ---- */
.gallery-grid img {
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.gallery-grid img:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* ---- Page-head: alt kenara ince accent çizgi ---- */
.page-head { position: relative; }
.page-head::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 60px; height: 2px; background: var(--c-accent);
  transform: translateX(-50%);
}

/* ---- Sayfa başında scroll-cue daha ince ---- */
.scroll-cue {
  font-weight: 400;
  opacity: 0.75;
}
.scroll-cue::after {
  background: linear-gradient(180deg, var(--c-accent), transparent);
}

/* ---- Mobil rafinasyonları ---- */
@media (max-width: 768px) {
  .eyebrow { padding-left: 0; }
  .eyebrow::before { display: none; }
  .about-strip__num::after { right: -10px; width: 5px; height: 5px; }
  .page-head::after { width: 40px; }
}


/* =========================================================
   MOBİL ÖZEL DÜZELTMELERİ (iPhone & Android)
   iOS Safari uyumluluğu, üst üste geçmeleri engelleme
   ========================================================= */

/* ---- iOS Safari fix: mix-blend-mode bozuk render olabiliyor ---- */
@media (max-width: 900px) {
  .site-header {
    mix-blend-mode: normal;
    background: rgba(255,255,255,0);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 16px 20px;
  }
  .site-header.scrolled {
    background: rgba(255,255,255,0.96);
    color: var(--c-black);
  }
  /* Sayfa başında (scrolled değilken) — yalnızca anasayfa hero üstünde */
  .site-header:not(.scrolled) {
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 100%);
  }
  .brand { gap: 8px; font-size: 12px; letter-spacing: 0.08em; }
  .brand img { width: 28px; height: 28px; }
  .brand span { display: none; } /* küçük telefonlarda sadece logo */
}

@media (min-width: 481px) and (max-width: 900px) {
  .brand span { display: inline; font-size: 11px; }
}

/* ---- Mobil: section paddingleri sıkıştır ---- */
@media (max-width: 768px) {
  :root { --gutter: 20px; }
  .section { padding-block: 56px; }
  .section--tight { padding-block: 40px; }

  /* Section header */
  .sec-head { margin-bottom: 36px; gap: 16px; }
  .sec-head__title { max-width: none; }
  .sec-head__text { max-width: none; font-size: 14px; }

  /* Page-head (iç sayfa başlıkları) — küçültüldü */
  .page-head { padding: 80px 20px 32px; }
  .page-head h1 { font-size: 26px !important; line-height: 1.2; max-width: none; margin-top: 8px; }
  .page-head .eyebrow { font-size: 10px; }

  /* Tipografi */
  h1 { font-size: 32px !important; line-height: 1.15; }
  h2 { font-size: 26px !important; line-height: 1.2; }
  h3 { font-size: 20px !important; }
  body { font-size: 15px; }
  p { font-size: 15px; max-width: none; }

  /* Hero */
  .hero { min-height: 520px; height: 88vh; padding-bottom: 70px; }
  .hero__title { font-size: 38px !important; line-height: 1.1; max-width: none; }
  .hero__sub { font-size: 14px; }
  .hero__eyebrow { font-size: 10px; margin-bottom: 14px; }
  .scroll-cue { display: none; }

  /* Project grid — tek sütun */
  .proj-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .proj-card,
  .proj-card--lg, .proj-card--md, .proj-card--sm, .proj-card--full {
    grid-column: 1 / -1 !important;
    aspect-ratio: 4 / 3 !important;
  }
  .proj-card__overlay { padding: 18px; }
  .proj-card__title { font-size: 17px; }
  .proj-card__cat { font-size: 10px; margin-bottom: 6px; }
  .proj-card__loc { font-size: 11px; }

  /* Filter bar */
  .filter-bar { gap: 6px; margin-bottom: 28px; overflow-x: auto; padding-bottom: 4px; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar button { padding: 8px 14px; font-size: 11px; white-space: nowrap; flex-shrink: 0; }

  /* About strip / two-col yapılar */
  .about-strip { grid-template-columns: 1fr; gap: 24px; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
  .two-col p { font-size: 15px; }

  /* Services 3 sütun → tek sütun */
  .services { grid-template-columns: 1fr; border-top: 0; }
  .service { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--c-line); }
  .service:not(:first-child) { padding-left: 0; }
  .service:last-child { border-bottom: 0; }
  .service__title { font-size: 22px; margin: 12px 0 14px; }
  .service__text { font-size: 14px; }

  /* Stats */
  .stats { gap: 24px 32px; margin-top: 32px; }
  .stats > div { flex: 1 1 calc(50% - 16px); min-width: 120px; }
  .about-strip__num { font-size: 52px !important; }
  .about-strip__lbl { font-size: 11px; }

  /* CTA */
  .cta { padding: 60px 20px; }
  .cta h2 { font-size: 26px !important; }
  .cta p { font-size: 14px; }
  .btn { padding: 14px 24px; font-size: 11px; }

  /* Footer 4 sütun → 2 sütun, sonra 1 sütun */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 40px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { font-size: 11px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .site-footer { padding: 50px 20px 24px; }
  .footer-brand img { width: 44px; }
  .footer-brand p { font-size: 13px; }

  /* Proje detay sayfası */
  .proj-hero { height: 50vh; min-height: 320px; }
  .proj-meta { grid-template-columns: 1fr; gap: 24px; padding-block: 50px; }
  .proj-meta__list { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .proj-meta__lbl { font-size: 10px; }
  .proj-meta__val { font-size: 14px; }

  /* Galeri */
  .gallery-grid { gap: 8px; }
  .gallery-grid img,
  .gi-12, .gi-6, .gi-4, .gi-8 { grid-column: 1 / -1 !important; aspect-ratio: 4/3; }

  /* Form */
  .form-grid { gap: 16px; max-width: none; }
  .form-grid label.full,
  .form-grid label { grid-column: 1 / -1 !important; }
  .form-grid input, .form-grid textarea { font-size: 16px; padding: 10px 0; } /* iOS zoom önler */
  .form-grid button { width: 100%; }

  /* Hizmetler içindeki büyük foto'lar — daha kısa */
  .two-col img { aspect-ratio: 4/3 !important; }

  /* Hakkımızda Vizyon/Misyon iki sütun → tek */
  section .proj-grid[style*="1fr 1fr"] { grid-template-columns: 1fr !important; gap: 0 !important; }
  section .reveal[style*="border-right"] { padding: 32px 0 !important; border-right: 0 !important; border-bottom: 1px solid var(--c-line); }
  section .reveal[style*="padding: 60px 0 60px 60px"] { padding: 32px 0 !important; }
  section .reveal h3[style*="font-size: 28px"] { font-size: 22px !important; }

  /* Hizmetler süreç (4 sütun → 2 sütun) */
  section .proj-grid[style*="repeat(4"] { grid-template-columns: 1fr 1fr !important; gap: 20px !important; }

  /* Tamamlanan projeler 2 sütun → tek */
  section .proj-grid[style*="grid-template-columns: 1fr 1fr"][style*="40px 60px"] { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Lightbox */
  .lb { padding: 16px; }
  .lb__close { top: 14px; right: 16px; font-size: 26px; }

  /* İletişim sayfası */
  .contact-wrap { grid-template-columns: 1fr !important; gap: 40px !important; }
  .contact-wrap h2 { font-size: 24px !important; margin-bottom: 24px !important; }
  .contact-block { margin-bottom: 22px; }
  .contact-block--phone .contact-block__val a { font-size: 19px !important; }
  .contact-block--mail .contact-block__val a { font-size: 14px !important; word-break: break-all; }
  .contact-block__val { font-size: 14px; }

  /* Harita */
  section iframe[title*="Ofis Konumu"] { height: 320px !important; }
  section[style*="height: 460px"] { height: 320px !important; }
}

/* ---- Çok küçük telefonlar (iPhone SE vs.) ---- */
@media (max-width: 380px) {
  .hero__title { font-size: 32px !important; }
  h1 { font-size: 28px !important; }
  h2 { font-size: 22px !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid > div:first-child { grid-column: 1; }
  .stats > div { flex: 1 1 100%; }
  .proj-meta__list { grid-template-columns: 1fr; }
  .filter-bar button { padding: 7px 12px; font-size: 10px; }
}

/* ---- iOS Safari spesifik düzeltmeler ---- */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari'da 100vh adres çubuğunu hesaba katmaz */
  .hero { height: 88vh; min-height: -webkit-fill-available; }
  /* Smooth scroll iOS'ta tutarsız çalışıyor */
  html { scroll-behavior: auto; }
  /* iOS form input zoom'u önlemek için font-size: 16px kritik */
  input, textarea, select { font-size: 16px !important; }
}
