/* =========================================================
   Baytar İnşaat — site stilleri
   Renkler logodaki bakır tonlarından türetildi.
   ========================================================= */
:root {
  --ink: #1F1D1B;
  --ink-2: #171614;
  --ink-3: #2A2826;
  --paper: #F6F3EF;
  --paper-2: #EFEAE4;
  --white: #FFFFFF;
  --text: #24221F;
  --text-2: #45403B;
  --muted: #5E5852;
  --muted-2: #8A817A;
  --on-dark: #F6F3EF;
  --on-dark-2: #C9C2BA;
  --on-dark-3: #B9B2AA;
  --line: #ECE6DF;
  --line-2: #D8CFC6;
  --line-3: #E2DBD3;
  --copper: #A54A38;
  --copper-hover: #C65A45;
  --copper-dark: #7E3527;
  --copper-light: #E8705A;
  --font-display: 'Archivo', 'Arial Narrow', sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1280px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--copper); }
a:hover { color: var(--copper-dark); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--copper-light); outline-offset: 3px; }

/* ---------- Ortak parçalar ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.28em; color: var(--copper); text-transform: uppercase; }
.eyebrow--light { color: var(--copper-light); }
.eyebrow-line { display: flex; align-items: center; gap: 14px; }
.eyebrow-line::before { content: ""; width: 48px; height: 2px; background: var(--copper-light); }
.section-title { margin-top: 18px; font-stretch: 106%; font-size: clamp(32px, 4vw, 52px); line-height: 1.08; color: var(--ink); }
.section-title--sm { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; }
.section-title--light { color: var(--on-dark); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head p { max-width: 440px; font-size: 17px; line-height: 1.65; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 30px;
  font: 600 16px/1 var(--font-body); letter-spacing: 0.02em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--copper); color: var(--white); }
.btn--primary:hover { background: var(--copper-hover); color: var(--white); }
.btn--ghost { border-color: rgba(246,243,239,0.35); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--copper-light); color: var(--copper-light); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; gap: 10px; }
.btn--sm svg { width: 16px; height: 16px; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; }

/* ---------- Üst menü ---------- */
.site-nav { position: relative; z-index: 20; color: var(--on-dark); }
.site-nav--solid { background: var(--ink); }
.site-nav--overlay { position: absolute; inset: 0 0 auto 0; }
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: 24px; letter-spacing: 0.04em; color: var(--on-dark); }
.brand__sub { font-size: 11px; letter-spacing: 0.42em; color: var(--on-dark-3); margin-top: 5px; }
.site-nav__links { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.site-nav__links a { color: #E9E4DE; text-decoration: none; }
.site-nav__links a:hover, .site-nav__links a[aria-current="page"] { color: var(--copper-light); }
.site-nav__actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: transparent; color: var(--on-dark); border: 1px solid rgba(246,243,239,0.35); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav__links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px var(--gutter) 20px;
    border-top: 1px solid rgba(246,243,239,0.12);
  }
  .site-nav__links a { padding: 14px 0; border-bottom: 1px solid rgba(246,243,239,0.1); font-size: 17px; }
  .site-nav.is-open .site-nav__links { display: flex; }
  .site-nav__phone-text { display: none; }
}

/* ---------- Ana sayfa banner ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); min-height: 780px; display: flex; align-items: center; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,19,18,0.82) 0%, rgba(20,19,18,0.55) 38%, rgba(20,19,18,0) 62%),
    linear-gradient(180deg, rgba(20,19,18,0.55) 0%, rgba(20,19,18,0) 22%);
}
.hero__content { position: relative; width: 100%; padding-top: 168px; padding-bottom: 168px; }
.hero__text { max-width: 620px; }
.hero h1 { margin-top: 28px; font-stretch: 108%; font-size: clamp(42px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.01em; color: var(--on-dark); }
.hero__lead { margin-top: 32px; max-width: 560px; font-size: 19px; line-height: 1.65; color: var(--on-dark-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
@media (max-width: 700px) {
  .hero { min-height: 640px; }
  .hero__shade { background: linear-gradient(0deg, rgba(20,19,18,0.88) 0%, rgba(20,19,18,0.55) 55%, rgba(20,19,18,0.45) 100%); }
  .hero__content { padding-top: 140px; padding-bottom: 120px; }
}

/* ---------- Rakamlar ---------- */
.stats { position: relative; margin-top: -64px; }
.stats__grid { background: var(--white); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); box-shadow: 0 24px 60px rgba(31,29,27,0.10); }
.stat { padding: 40px 36px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__value { font-family: var(--font-display); font-weight: 800; font-stretch: 110%; font-size: 64px; line-height: 1; color: var(--copper); }
.stat__label { margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.2em; color: var(--text); text-transform: uppercase; }
.stat__text { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
@media (max-width: 700px) { .stat { border-right: 0; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: 0; } }

/* ---------- Hakkımızda ---------- */
.about { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-top: 128px; padding-bottom: 112px; }
.about__head { flex: 1 1 340px; min-width: 0; }
.about__body { flex: 999 1 520px; min-width: 0; font-size: 18px; line-height: 1.75; color: var(--text-2); }
.about__body p + p { margin-top: 22px; }
.tags { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; list-style: none; }
.tags li { padding: 10px 18px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 600; color: var(--text-2); }

/* ---------- Hizmetler ---------- */
.services { background: var(--paper-2); }
.services .wrap { padding-top: 112px; padding-bottom: 112px; }
.service-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.service-card { background: var(--white); border: 1px solid var(--line-3); padding: 48px 44px; display: flex; flex-direction: column; gap: 20px; transition: border-color .2s; }
.service-card:hover { border-color: var(--copper-hover); }
.service-card__icon { width: 64px; height: 64px; background: var(--ink); color: var(--copper-light); display: flex; align-items: center; justify-content: center; }
.service-card__icon svg { width: 30px; height: 30px; }
.service-card__num { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; color: var(--muted-2); }
.service-card h3 { font-size: 30px; color: var(--ink); }
.service-card p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.process { list-style: none; padding-left: 0; margin-bottom: 0; margin-top: 88px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line-2); }
.process__step { padding: 32px 28px 0 0; }
.process__title { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: 0.08em; color: var(--copper); text-transform: uppercase; }
.process__step p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ---------- Proje kartları ---------- */
.projects { padding-top: 112px; padding-bottom: 112px; }
.project-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.project-grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.project-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.project-card:hover { color: inherit; }
.project-card__media { aspect-ratio: 4 / 3; background: var(--ink-3); overflow: hidden; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__row { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.project-card h3 { font-size: 22px; color: var(--ink); transition: color .2s; }
.project-card:hover h3 { color: var(--copper); }
.project-card__tag { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--copper); text-transform: uppercase; white-space: nowrap; }
.project-card__meta { margin-top: 8px; font-size: 15px; color: var(--muted); }
.empty-note { margin-top: 40px; padding: 40px; border: 1px dashed var(--line-2); color: var(--muted); text-align: center; }

/* ---------- İletişim ---------- */
.contact { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(45deg, rgba(232,112,90,0.05) 0px, rgba(232,112,90,0.05) 1px, transparent 1px, transparent 46px);
}
.contact .wrap { position: relative; padding-top: 112px; padding-bottom: 112px; display: flex; flex-wrap: wrap; gap: 64px; }
.contact__intro { flex: 1 1 380px; min-width: 0; }
.contact__intro p { margin-top: 24px; max-width: 460px; font-size: 18px; line-height: 1.7; color: var(--on-dark-2); }
.contact__intro .btn { margin-top: 40px; }
.contact__list { flex: 1 1 380px; min-width: 0; border-top: 1px solid rgba(246,243,239,0.18); }
.contact__item { padding: 32px 0; border-bottom: 1px solid rgba(246,243,239,0.18); display: flex; gap: 22px; align-items: flex-start; }
.contact__icon { color: var(--copper-light); padding-top: 2px; }
.contact__icon svg { width: 24px; height: 24px; }
.contact__label { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; color: var(--on-dark-3); }
.contact__value { margin-top: 10px; font-size: 19px; line-height: 1.6; color: var(--on-dark); }
.contact__value a { color: var(--on-dark); text-decoration: none; }
.contact__value a:hover { color: var(--copper-light); }
.contact__phone { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: 0.02em; }
.contact__social { display: flex; flex-wrap: wrap; gap: 20px; }
.contact__map { margin-top: 32px; aspect-ratio: 16 / 9; border: 1px solid rgba(246,243,239,0.12); background: var(--ink-3); }
.contact__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.4) contrast(1.05); }

/* ---------- Alt bilgi ---------- */
.site-footer { background: var(--ink-2); color: var(--on-dark-3); }
.site-footer .wrap { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; }
.site-footer .brand img { height: 30px; }
.site-footer .brand__name { font-size: 17px; }
.site-footer .brand__sub { margin-top: 0; font-size: 10px; letter-spacing: 0.38em; }
.site-footer .brand__text { flex-direction: row; align-items: center; gap: 12px; }

/* ---------- Proje detay ---------- */
.p-hero { position: relative; min-height: 620px; background: var(--ink); color: var(--on-dark); overflow: hidden; display: flex; align-items: flex-end; }
.p-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.p-hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(20,19,18,0.88) 0%, rgba(20,19,18,0.35) 45%, rgba(20,19,18,0) 75%); }
.p-hero__content { position: relative; width: 100%; padding-bottom: 64px; }
.p-hero__back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #E9E4DE; text-decoration: none; font-size: 15px; font-weight: 600; }
.p-hero__back:hover { color: var(--copper-light); }
.p-hero__back svg { width: 18px; height: 18px; }
.p-hero .eyebrow-line { margin-top: 20px; }
.p-hero h1 { margin-top: 18px; font-stretch: 108%; font-size: clamp(38px, 5.5vw, 76px); line-height: 1.04; color: var(--on-dark); }
.p-hero__meta { margin-top: 14px; font-size: 18px; color: #D6CFC7; }

.facts { background: var(--white); display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-bottom: 1px solid var(--line-3); }
.fact { padding: 30px 28px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact__label { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--muted-2); }
.fact__value { margin-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.fact__dot { width: 10px; height: 10px; background: var(--copper); }
.fact__dot--progress { background: var(--copper-light); }
.fact__dot--plan { background: var(--muted-2); }

.p-about { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-top: 96px; padding-bottom: 24px; }
.p-about__head { flex: 1 1 320px; min-width: 0; }
.p-about__body { flex: 999 1 520px; min-width: 0; font-size: 18px; line-height: 1.75; color: var(--text-2); }
.p-about__body p + p { margin-top: 22px; }
.features { margin: 36px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; border-top: 1px solid var(--line-2); }
.features li { padding: 18px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 14px; align-items: center; font-size: 16px; color: var(--text-2); }
.features li::before { content: ""; width: 8px; height: 8px; background: var(--copper); flex: none; }

.gallery-section { padding-top: 72px; padding-bottom: 112px; }
.gallery-count { font-size: 15px; color: var(--muted); }
.gallery { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 16px; }
.gallery__item { position: relative; padding: 0; margin: 0; border: 0; background: var(--ink-3); overflow: hidden; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--first { grid-column: span 2; grid-row: span 2; }
@media (max-width: 640px) { .gallery__item--first { grid-column: auto; grid-row: auto; } .gallery { grid-auto-rows: 240px; } }

.cta { background: var(--ink); color: var(--on-dark); }
.cta .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-stretch: 106%; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; color: var(--on-dark); }
.cta p { margin-top: 14px; font-size: 17px; line-height: 1.65; color: var(--on-dark-2); }

.others { padding-top: 96px; padding-bottom: 112px; }
.others h2 { font-stretch: 106%; font-size: clamp(28px, 3vw, 40px); color: var(--ink); }
.others .project-grid { margin-top: 40px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,14,13,0.95); display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; color: #E9E4DE; font-size: 15px; letter-spacing: 0.08em; }
.lightbox__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 16px 32px; }
.lightbox__img { max-width: calc(100% - 152px); max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.lightbox__btn { flex: none; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(31,29,27,0.6); border: 1px solid rgba(246,243,239,0.3); color: var(--on-dark); cursor: pointer; transition: background .2s, border-color .2s; }
.lightbox__btn:hover { background: var(--copper); border-color: var(--copper); }
.lightbox__btn svg { width: 22px; height: 22px; }
@media (max-width: 640px) {
  .lightbox__stage { position: relative; padding: 0 0 24px; }
  .lightbox__img { max-width: 100%; }
  .lightbox__btn--nav { position: absolute; bottom: 24px; }
  .lightbox__btn--prev { left: 16px; } .lightbox__btn--next { right: 16px; }
}
body.no-scroll { overflow: hidden; }

/* ---------- Hata sayfası ---------- */
.error-page { padding-top: 140px; padding-bottom: 140px; text-align: center; }
.error-page .stat__value { font-size: 96px; }
.error-page p { margin: 20px auto 36px; max-width: 480px; color: var(--muted); font-size: 18px; }
address.contact__value { font-style: normal; }
.facts { margin: 0; }
.fact__value { margin: 0; }
.cta__text { flex: 1 1 480px; min-width: 0; }
