/* Güneş Mimarlık İnşaat — site stilleri */
:root {
  --bg: #F4F4F1;
  --bg-2: #E7E6E0;
  --ink: #151515;
  --muted: #5E5E5A;
  --line: #D9D8D2;
  --accent: #B5541B;
  --accent-light: #E0885A;
  --dark-muted: #B9B9B2;
  --dark-line: #3A3A37;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap { max-width: 1360px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }

/* ---------- Tipografi ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.on-dark .eyebrow, .eyebrow--light { color: var(--accent-light); }
.display {
  font-family: var(--display); font-weight: 700; font-stretch: 85%;
  font-size: clamp(48px, 7vw, 112px); line-height: .92; letter-spacing: -.02em;
}
.section-title {
  font-family: var(--display); font-weight: 700; font-stretch: 85%;
  font-size: clamp(32px, 4.2vw, 60px); line-height: 1; letter-spacing: -.01em;
}
.lead { font-size: 19px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.head-stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; font-weight: 600; font-size: 16px; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn svg { flex: none; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #9A4515; color: #fff; }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: #333; color: var(--bg); }
.btn--light { background: var(--bg); color: var(--ink); font-family: var(--mono); font-weight: 500; font-size: 18px; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--ghost-light { border-color: var(--bg); color: var(--bg); }
.btn--ghost-light:hover { background: var(--bg); color: var(--ink); }
.link-underline { font-weight: 600; border-bottom: 2px solid currentColor; padding: 6px 0; }

/* ---------- Üst menü ---------- */
.site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header--overlay { position: absolute; top: 0; left: 0; right: 0; border-bottom: 0; color: #fff; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: inherit; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .06em; }
.brand__sub { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a:not(.nav__phone) { padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: currentColor; }
.site-header--overlay .nav a:hover { color: #fff; opacity: .8; }
.nav__phone {
  font-family: var(--mono); font-size: 14px; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
}
.nav__phone:hover { background: var(--accent); color: #fff; }
.site-header--overlay .nav__phone { background: #fff; color: var(--ink); }
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid currentColor; background: transparent;
  color: inherit; cursor: pointer; align-items: center; justify-content: center;
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); color: var(--ink); padding: 8px var(--gutter) 24px;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.nav__phone) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--line); }
  .site-header--overlay .nav a:hover { color: var(--accent); opacity: 1; }
  .nav__phone, .site-header--overlay .nav__phone { margin-top: 16px; align-self: flex-start; background: var(--ink); color: var(--bg); }
}

/* ---------- Kahraman (hero) ---------- */
.hero { position: relative; min-height: 860px; min-height: min(100svh, 920px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.hero--short { min-height: 760px; min-height: min(90svh, 780px); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.6) 0%, rgba(10,10,10,.05) 30%, rgba(10,10,10,.18) 55%, rgba(10,10,10,.85) 100%); }
.hero__in { position: relative; width: 100%; padding-bottom: 72px; padding-top: 140px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero__title { flex: 1 1 640px; min-width: 0; }
.hero__title .eyebrow { color: #fff; margin-bottom: 20px; display: block; }
.hero__side { flex: 0 1 380px; display: flex; flex-direction: column; gap: 20px; }
.hero__side p { font-size: 18px; color: #E9E9E4; }
.hero .crumbs, .hero .crumbs a { color: #fff; }

/* ---------- Ortak bölümler ---------- */
.section { padding-top: 120px; padding-bottom: 120px; }
.section--tight { padding-top: 96px; padding-bottom: 96px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.on-dark { background: var(--ink); color: var(--bg); }
.on-dark .muted { color: var(--dark-muted); }
.on-sand { background: var(--bg-2); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; }
.split--center { align-items: center; }
.split--end { align-items: end; }
.prose { display: flex; flex-direction: column; gap: 20px; font-size: 19px; }

/* İstatistik şeridi */
.stats { border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.stat { padding: 36px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__num { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; }
.stat__label { color: var(--muted); font-size: 15px; }

/* Proje kartları */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); gap: 56px 40px; }
.card { display: flex; flex-direction: column; gap: 18px; }
.card:nth-child(even) { margin-top: 96px; }
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.card__media { overflow: hidden; }
.card:hover .card__img { transform: scale(1.03); }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.card__title { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.card__loc { font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: uppercase; }
.card p { color: var(--muted); }
.card:hover .card__title { color: var(--accent); }
@media (max-width: 1240px) { .card:nth-child(even) { margin-top: 0; } }

/* Hizmet listesi */
.services { display: flex; flex-direction: column; }
.service { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.service:first-child { border-top-color: var(--ink); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service__no { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.service h3 { font-family: var(--display); font-size: 24px; font-weight: 700; margin-bottom: 6px; }

/* Çağrı bandı */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.cta__text { flex: 1 1 560px; display: flex; flex-direction: column; gap: 16px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Alt bilgi */
.site-footer { background: var(--ink); color: var(--dark-muted); border-top: 1px solid #2E2E2C; font-size: 14px; }
.site-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.site-footer__brand { font-family: var(--display); font-weight: 800; letter-spacing: .06em; color: var(--bg); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a:hover { color: #fff; }
.site-footer__contact { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); color: var(--bg); }

/* ---------- Sayfa başlıkları ---------- */
.page-head { padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 28px; }
.page-head__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.page-head__row .display { flex: 1 1 640px; }
.page-head__row > p { flex: 0 1 440px; }
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.wide-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wide-img--cine { aspect-ratio: 21 / 9; }

/* Bilgi kutuları */
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; align-content: start; border-top: 1px solid var(--ink); padding-top: 24px; }
.facts-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-bar dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.facts-bar dl > div { padding: 28px 24px; border-left: 1px solid var(--line); }
.facts-bar dl > div:first-child { padding-left: 0; border-left: 0; }
dt { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
dd { margin: 6px 0 0; font-size: 20px; font-weight: 500; }

/* Program tablosu */
.table-scroll { overflow-x: auto; }
.program { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 17px; }
.program thead th { text-align: left; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dark-muted); font-weight: 500; padding: 14px 16px; border-bottom: 1px solid var(--bg); }
.program th[scope="row"] { text-align: left; font-weight: 600; }
.program td, .program th[scope="row"] { padding: 20px 16px; border-bottom: 1px solid var(--dark-line); }
.program th:first-child, .program td:first-child { padding-left: 0; }
.program td:nth-child(2) { font-family: var(--mono); }
.program td:last-child { color: var(--dark-muted); }

/* Galeriler */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 24px; }
.gallery--small { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.shot { all: unset; cursor: zoom-in; display: flex; flex-direction: column; gap: 10px; }
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shot__media { overflow: hidden; background: var(--bg-2); }
.shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.03); }
.shot__cap { font-size: 14px; color: var(--muted); }
.on-dark .shot__cap { color: var(--dark-muted); }
.shot--plan img { aspect-ratio: 16 / 9; background: #fff; border: 1px solid var(--line); }
.shot--plan .shot__cap { font-family: var(--mono); font-size: 13px; }
.ratio-16x10 img { aspect-ratio: 16 / 10; }
.ratio-4x3 img { aspect-ratio: 4 / 3; }
.ratio-render img { aspect-ratio: 1024 / 584; }
.masonry { columns: 340px 3; column-gap: 24px; }
.masonry .shot { display: block; width: 100%; margin: 0 0 24px; break-inside: avoid; }
.masonry .shot img { aspect-ratio: auto; height: auto; }
.note { font-size: 14px; color: var(--muted); }

/* Konsept maddeleri */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px; }
.pillar { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--ink); padding-top: 20px; }
.pillar h2, .pillar h3 { font-family: var(--display); font-size: 26px; font-weight: 700; }
.pillar__no { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.pillar__big { font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1; color: var(--accent); }
ol.pillars { list-style: none; margin: 0; padding: 0; }

/* Doküman kartı */
.doc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); border: 1px solid var(--ink); }
.doc img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.doc__body { padding: 48px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.doc__body h2 { font-family: var(--display); font-weight: 700; font-size: 36px; line-height: 1.05; }
.doc__body .btn { align-self: flex-start; margin-top: 8px; }

/* Sonraki proje */
.next { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.next a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.next__label { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.next__title { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: clamp(32px, 5vw, 72px); line-height: 1; }

/* Projeler listesi */
.plist { display: flex; flex-direction: column; }
.prow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); }
.prow:first-child { border-top-color: var(--ink); }
.prow:last-child { border-bottom: 1px solid var(--line); }
.prow img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.prow__body { display: flex; flex-direction: column; gap: 20px; }
.prow__body h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.02; }
.prow:hover h2 { color: var(--accent); }
.prow__body p { color: var(--muted); max-width: 520px; }
.prow .facts { border: 0; padding: 0; margin-top: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prow dd { font-size: 15px; font-weight: 400; margin-top: 4px; }
.prow__more { margin-top: auto; font-weight: 600; }

/* İletişim */
.contact { display: flex; flex-wrap: wrap; gap: 72px; }
.contact__info { flex: 1 1 420px; display: flex; flex-direction: column; gap: 40px; }
.clist { margin: 0; display: flex; flex-direction: column; }
.clist > div { padding: 20px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.clist > div:first-child { border-top-color: var(--ink); }
.clist > div:last-child { border-bottom: 1px solid var(--line); }
.clist dd { margin: 0; font-size: 24px; overflow-wrap: anywhere; }
.form { flex: 1 1 520px; display: flex; flex-direction: column; gap: 20px; background: #fff; padding: 48px; border: 1px solid var(--line); }
.form h2 { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1.1; margin-bottom: 8px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; font-weight: 400; padding: 14px 16px;
  border: 1px solid #8A8A84; background: #fff; color: var(--ink); border-radius: 0; width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.form .btn { align-self: flex-start; }
.form__status { font-size: 15px; color: var(--muted); min-height: 1.6em; }

/* Görsel görüntüleyici */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,12,12,.95); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); object-fit: contain; }
.lightbox__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; color: var(--bg); }
.lightbox__cap { font-size: 15px; min-width: 220px; text-align: center; }
.lightbox__pos { font-family: var(--mono); color: var(--dark-muted); }
.lb-btn { width: 48px; height: 48px; border: 1px solid var(--bg); background: transparent; color: var(--bg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: var(--bg); color: var(--ink); }
.lb-btn--close { background: var(--bg); color: var(--ink); border: 0; }
body.lb-open { overflow: hidden; }

/* 404 */
.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; }

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .section--tight { padding-top: 64px; padding-bottom: 64px; }
  .hero__in { padding-bottom: 48px; }
  .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .facts-bar dl > div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts-bar dl > div:first-child { border-top: 0; }
  .doc__body, .form { padding: 28px; }
  .prow .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead, .prose { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card__img, .shot img { transition: none; }
}
