/* Servan Zenderlioğlu – SZ Mimarlık */
:root {
  --red: #e51d23;
  --red-dark: #b8141a;
  --ink: #1d1d1f;
  --ink-2: #4a4a4f;
  --muted: #86868b;
  --line: #e2e2e4;
  --bg: #f4f4f5;
  --surface: #ffffff;
  --dark: #18181a;
  --dark-2: #232326;
  --radius: 4px;
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 600; letter-spacing: .01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo img { width: 300px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2); font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 12px; border-radius: var(--radius);
}
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); }
.lang { margin-left: 12px; padding-left: 16px; border-left: 1px solid var(--line); display: flex; gap: 2px; }
.lang a { font-size: 13px; padding: 6px 8px; }
.lang a.active { color: var(--ink); font-weight: 700; }
.menu-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink);
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; background: var(--dark); overflow: hidden; }
.hero-slides { position: relative; aspect-ratio: 16 / 7; max-height: 78vh; width: 100%; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slides img.is-active { opacity: 1; }
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
  color: #fff; padding: 64px 0 40px;
}
.hero-caption h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.hero-caption p { color: #d4d4d8; letter-spacing: .2em; text-transform: uppercase; font-size: clamp(12px, 1.4vw, 15px); margin: 6px 0 22px; }

.btn {
  display: inline-block; background: var(--red); color: #fff; padding: 12px 26px; border: 0; border-radius: var(--radius);
  font: 600 14px/1 var(--font); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.btn:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Sections */
.section { padding: 72px 0; }
.section-dark { background: var(--dark); color: #e4e4e7; }
.page-head { background: var(--dark); color: #fff; padding: 48px 0 40px; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.page-head h1::after { content: ""; display: block; width: 48px; height: 3px; background: var(--red); margin-top: 16px; }
.page-head .crumbs { font-size: 13px; color: #a1a1aa; margin-bottom: 10px; letter-spacing: .04em; }
.page-head .crumbs a { color: #d4d4d8; }
.eyebrow { color: var(--red); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }

/* Intro / about */
.intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 18px; color: var(--ink-2); }
.about { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; }
.about-text h2 { color: var(--red); font-size: 18px; font-style: italic; font-weight: 600; letter-spacing: .04em; }
.about-text p { font-size: 17px; color: var(--ink-2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.profile img { width: 100%; border-radius: var(--radius); margin-bottom: 16px; }
.profile h3 { margin: 0; font-size: 18px; }
.profile p { color: var(--muted); margin: 0; font-size: 14px; }
.side-link { display: flex; gap: 16px; align-items: center; margin-top: 16px; color: var(--ink); }
.side-link img { width: 72px; border: 1px solid var(--line); }
.side-link span { font-weight: 600; font-size: 14px; letter-spacing: .04em; }

/* Project grid */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: 500 13px/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; cursor: pointer;
}
.filters button:hover { border-color: var(--ink-2); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.project-card { display: block; background: var(--surface); color: var(--ink); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.project-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .thumb img { transform: scale(1.05); }
.project-card .meta { padding: 14px 16px 16px; border-top: 3px solid transparent; transition: border-color .2s; }
.project-card:hover .meta { border-top-color: var(--red); }
.project-card h3 { font-size: 16px; margin: 0 0 2px; letter-spacing: .03em; }
.project-card p { margin: 0; font-size: 13px; color: var(--muted); }
.project-card[hidden] { display: none; }

/* Project detail */
.project { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.project-info { position: sticky; top: 110px; }
.project-info dl { margin: 0; }
.project-info dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.project-info dt:first-child { margin-top: 0; }
.project-info dd { margin: 2px 0 0; font-size: 15px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); background: #ddd; }
.gallery a:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 20 / 13; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.03); }
.videos { margin-top: 32px; display: grid; gap: 16px; }
.videos iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.pager a:hover { color: var(--red); }
.pager small { display: block; color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.pager .next { text-align: right; margin-left: auto; }

/* News */
.article { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.article:last-child { border-bottom: 0; }
.article .scan img { border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.article .scan small { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; }
.article h2 { color: var(--red); font-size: 20px; }
.article .source { color: var(--muted); font-size: 14px; font-style: italic; }
.article .body p { color: var(--ink-2); }
.article .byline { font-weight: 600; color: var(--ink); }
.article .note { font-size: 13px; color: var(--muted); background: var(--surface); border-left: 3px solid var(--red); padding: 8px 12px; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.member { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: var(--radius); padding: 20px 22px; }
.member h3 { font-size: 17px; margin: 0 0 4px; }
.member p { margin: 0; color: var(--muted); font-size: 14px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.contact-info dl { margin: 0 0 24px; }
.contact-info dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-top: 18px; }
.contact-info dd { margin: 4px 0 0; }
.contact-info dd a { color: var(--ink); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: #ddd; }
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--ink-2); }
.form input, .form textarea {
  width: 100%; font: 15px/1.4 var(--font); padding: 11px 12px; border: 1px solid #cfcfd3; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: transparent; }
.form textarea { min-height: 150px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 12px 14px; border-radius: var(--radius); font-size: 15px; }
.form-status.ok { background: #e8f6ec; color: #17602f; }
.form-status.err { background: #fdecec; color: #8c1a1a; }

/* Footer */
.site-footer { background: var(--dark); color: #a1a1aa; padding: 48px 0 28px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { color: #d4d4d8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.site-footer .bottom { border-top: 1px solid #2e2e32; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.footer-brand { color: #fff; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.footer-brand span { color: var(--red); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10,10,12,.94);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.08); color: #fff; border: 0; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 26px; line-height: 1;
}
.lightbox button:hover { background: var(--red); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #a1a1aa; font-size: 13px; letter-spacing: .1em; }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound h1 { font-size: 72px; color: var(--red); font-weight: 300; margin: 0; }

/* Responsive */
@media (max-width: 960px) {
  .intro, .about, .project, .contact { grid-template-columns: 1fr; gap: 32px; }
  .project-info { position: static; order: -1; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--surface);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .lang { margin: 8px 0 0; padding: 0; border: 0; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { min-height: 68px; }
  .logo img { width: 210px; }
  .hero-slides { aspect-ratio: 4 / 3; }
  .section { padding: 48px 0; }
  .article { grid-template-columns: 1fr; gap: 20px; }
  .article .scan { max-width: 220px; }
  .form .row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
