:root {
  --gold: #C9A227;
  --gold-light: #E0BF4A;
  --gold-dark: #A9871E;
  --navy: #1B2430;
  --navy-mid: #232F3E;
  --navy-soft: #4A5768;
  --white: #FFFFFF;
  --bg-alt: #F6F3EA;
  --line: #E4E0D3;
  --whatsapp: #22A05A;
  --whatsapp-dark: #1B8248;
  --radius: 8px;
  --radius-lg: 14px;
  --max-width: 1140px;
  --shadow-sm: 0 1px 2px rgba(27, 36, 48, 0.06), 0 2px 8px rgba(27, 36, 48, 0.05);
  --shadow-md: 0 6px 24px rgba(27, 36, 48, 0.10);
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
  /* Ekran dışına itmek yerine kırpıyoruz: -999px yerleşimi bazı tarayıcılarda
     sayfa genişliğini kirletiyordu. Odaklanınca tam görünür hâle geliyor. */
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { clip-path: none; }

:where(a, .btn, .sticky-btn):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Küçük satır içi ikonlar — harici ikon kütüphanesi yok, SVG gövdede gömülü. */
.ico {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
  flex: none;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 0 var(--gold);
  padding: 14px 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* Menü 5 maddeye çıkınca butonlar alt satıra kırılıyordu; sarma kapalı,
     dar alanda önce menü, sonra ikincil buton gizleniyor (aşağıdaki sorgular). */
  flex-wrap: nowrap;
}
.logo-link { display: block; flex: none; }
.logo { width: 264px; height: auto; }

.site-nav {
  display: flex;
  gap: 15px;
  margin-left: auto;
  margin-right: 4px;
  white-space: nowrap;
}
.site-nav a {
  color: var(--navy-soft);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus { color: var(--navy); border-bottom-color: var(--gold); }

.header-cta { display: flex; gap: 8px; flex: none; white-space: nowrap; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--whatsapp); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover, .btn-primary:focus { background: var(--whatsapp-dark); }

.btn-ghost { background: transparent; color: var(--navy); border-color: #C9CEd6; }
.btn-ghost:hover, .btn-ghost:focus { background: var(--navy); color: var(--white); border-color: var(--navy); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn-outline-light:hover, .btn-outline-light:focus { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn-lg { padding: 15px 26px; font-size: 1.02rem; }

/* Kişiye bağlı arama butonu: üstte ikon + isim, altta numara. */
.btn-kisi { flex-direction: column; gap: 1px; padding-top: 11px; padding-bottom: 12px; }
.btn-kisi-ust {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 700;
}
.btn-kisi-no { font-size: 1.14rem; letter-spacing: 0.5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 84px 0 68px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
/* Fotoğrafın üstünü koyulaştıran perde: metin kontrastı fotoğraf ne olursa olsun korunur. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(20, 27, 37, 0.95) 0%, rgba(20, 27, 37, 0.88) 42%, rgba(20, 27, 37, 0.62) 100%);
}
.hero-inner { max-width: 720px; margin-inline: auto; }
.eyebrow {
  display: inline-block;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid rgba(224, 191, 74, 0.45);
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.12);
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin: 0 0 18px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.hero-lead {
  font-size: 1.12rem;
  max-width: 620px;
  color: #DCE0E6;
  margin: 0 0 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 20px 0 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.trust-strip li {
  font-size: 0.86rem;
  color: #E8EAEE;
  font-weight: 600;
  padding: 5px 12px 5px 28px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  position: relative;
}
.trust-strip li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--gold-light);
  border-bottom: 2px solid var(--gold-light);
  transform: translateY(-70%) rotate(-45deg);
}

/* ---------- Bölüm başlıkları ---------- */
.section-eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 8px;
}
.section-lead {
  color: var(--navy-soft);
  margin: 0 0 32px;
  max-width: 640px;
  font-size: 1.02rem;
}

/* ---------- Hizmetler ---------- */
.services { padding: 72px 0; }
.services-alt { background: var(--bg-alt); }
.services h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
.card-grid {
  display: grid;
  /* 300px taban 3 sütun verir: 5 kalem 3+2, 6 kalem 3+3 — yetim kart kalmaz. */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gold);
}
.card:hover { box-shadow: var(--shadow-md); border-color: #D6CFB6; }
.card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  line-height: 1.35;
}
.card p { margin: 0; font-size: 0.93rem; color: var(--navy-soft); }

/* ---------- İşler bir bakışta ---------- */
/* Üç kutu, işlerin doğal öbekleri: tapu/devir, belge/rapor, proje. */
.lineup { padding: 66px 0; }
.lineup h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.panes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.pane {
  display: flex;
  align-items: center;
  background: linear-gradient(168deg, #F2F6FA 0%, #E7EDF3 100%);
  border: 1px solid #D3DCE5;
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 22px;
  min-height: 190px;
  box-shadow: var(--shadow-sm);
}
.pane-no {
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy-soft);
}
.pane ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.pane li {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 0.98rem;
  color: var(--navy);
  padding: 9px 0;
  border-bottom: 1px solid rgba(27, 36, 48, 0.10);
  line-height: 1.3;
}
.pane li:last-child { border-bottom: 0; }

/* ---------- İletişimdeki isimli numaralar ---------- */
.contact-people { list-style: none; margin: 0 0 6px; padding: 0; }
.contact-people li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.contact-people li:first-child { border-top: 1px solid rgba(255,255,255,0.14); }
.contact-people .kisi {
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
}
.contact-people .numara {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0.4px;
  /* Arama linki bu sayfadaki en değerli eylem: parmak için tam boy hedef. */
  display: flex;
  align-items: center;
  min-height: 48px;
  width: fit-content;
}
.contact-people .numara:hover, .contact-people .numara:focus { color: var(--gold-light); }

/* ---------- Neden biz ---------- */
.why { padding: 76px 0; }
.why-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.why h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  margin: 0 0 24px;
  letter-spacing: -0.3px;
}
.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.why-list li {
  padding-left: 20px;
  border-left: 3px solid var(--gold);
  color: var(--navy-soft);
}
.why-list strong {
  display: block;
  color: var(--navy);
  font-size: 1.04rem;
  margin-bottom: 4px;
}
.why-photo { margin: 0; }
.why-photo img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* ---------- Nasıl ilerliyoruz ---------- */
.steps { padding: 70px 0; background: var(--navy); color: var(--white); }
.steps .section-eyebrow { color: var(--gold-light); }
.steps h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  margin: 0 0 10px;
  color: var(--white);
  letter-spacing: -0.3px;
}
.steps .section-lead { color: #C4CBD4; }
.step-list {
  list-style: none;
  counter-reset: adim;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.step-list li {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
}
.step-no {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: #14181F;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.step-list h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--white); }
.step-list p { margin: 0; color: #C4CBD4; font-size: 0.95rem; }

/* ---------- Hakkımızda ---------- */
.about { padding: 74px 0; }
.about h2 {
  font-size: clamp(1.45rem, 2.9vw, 1.95rem);
  margin: 0 0 26px;
  letter-spacing: -0.3px;
  max-width: 780px;
  line-height: 1.28;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 46px;
  align-items: start;
}
.about-text p { margin: 0 0 16px; color: var(--navy-soft); font-size: 1.03rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--navy); }
.about-facts {
  list-style: none;
  margin: 0;
  padding: 22px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}
.about-facts li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(27,36,48,0.09);
}
.about-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.about-facts li:first-child { padding-top: 0; }
.fact-k {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.fact-v { font-size: 0.97rem; color: var(--navy); font-weight: 600; line-height: 1.4; }

/* ---------- Ofis galerisi ---------- */
.gallery {
  padding: 72px 0;
  background: var(--bg-alt);
}
.gallery h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.shot { margin: 0; }
.shot img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
.shot figcaption {
  margin-top: 10px;
  font-size: 0.87rem;
  color: var(--navy-soft);
  font-weight: 600;
}

/* ---------- İletişim ---------- */
.contact {
  background: var(--navy);
  color: var(--white);
  padding: 76px 0 96px;
}
.contact .section-eyebrow { color: var(--gold-light); }
.contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.contact h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  margin: 0 0 20px;
  color: var(--white);
  letter-spacing: -0.3px;
}
.contact-address { margin: 0 0 20px; color: #DCE0E6; }
.contact-note {
  display: inline-block;
  margin-top: 6px;
  color: var(--gold-light);
  font-weight: 700;
}
.contact-line { margin: 0 0 8px; font-size: 1.2rem; }
.contact-line a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.contact-line a:hover, .contact-line a:focus { color: var(--gold-light); }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

.contact-photo { margin: 0; }
.contact-photo img {
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  box-shadow: 0 10px 34px rgba(0,0,0,0.35);
}
.contact-photo figcaption {
  margin-top: 10px;
  font-size: 0.87rem;
  color: var(--gold-light);
  font-weight: 600;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #10161F;
  color: #97A0AD;
  padding: 34px 0 28px;
  text-align: center;
  font-size: 0.87rem;
  border-top: 3px solid var(--gold-dark);
}
.logo-footer {
  width: 232px;
  height: auto;
  margin: 0 auto 18px;
  /* Koyu zemin için ayrı dosya (assets/logo-acik.png) kullanılıyor: amblem ve
     "MIMARLIK DANISMANLIK" beyaz, "HİTİT" altın kalıyor. CSS filtresi yok —
     filtre markanın altın rengini de öldürüyordu. */
  opacity: 0.94;
}
.footer-line { margin: 0 0 6px; }
.footer-tel { display: flex; gap: 6px 22px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.footer-tel a {
  color: #D5DBE3;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}
.footer-tel a:hover, .footer-tel a:focus { color: var(--gold-light); }
.footer-copy { margin: 16px 0 0; font-size: 0.8rem; color: #6D7784; }

/* ---------- Mobil yapışkan iletişim çubuğu ---------- */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
  z-index: 50;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.22);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
.sticky-call { background: var(--navy); color: var(--white); }
.sticky-whatsapp { background: var(--whatsapp); color: var(--white); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1180px) {
  /* Yer daralınca önce "Hemen Ara" düşer: WhatsApp asıl dönüşüm butonu,
     telefon zaten iletişim bölümünde ve mobilde yapışkan çubukta. */
  .header-cta .btn-ghost { display: none; }
}

@media (max-width: 980px) {
  .site-nav { display: none; }
  .why-inner, .contact-inner, .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .why-photo img, .contact-photo img { max-height: 380px; }
}

@media (max-width: 768px) {
  .sticky-bar { display: flex; }
  /* Yapışkan çubuk 60px; sayfa sonundaki içeriğin altına girmemesi için
     güvenli alanı da ekleyerek boşluk bırakıyoruz (iPhone alt çubuğu). */
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .header-cta { display: none; }
  .site-header { position: static; padding: 12px 0; }
  /* Logo büyütüldü; dar ekranda taşmasın diye üst sınırı ekran genişliğine bağlıyoruz. */
  .logo { width: min(252px, 66vw); }
  .hero { padding: 56px 0 48px; }
  .lineup, .services, .gallery, .why, .steps, .about { padding: 52px 0; }
  .contact { padding: 52px 0 60px; }
  .wrap { padding: 0 18px; }
  .section-lead { margin-bottom: 26px; }
}

/* ---------- Mobil özen turu ---------- */
@media (max-width: 560px) {
  /* Gövde metnini bir tık büyütüyoruz: telefonda 0.93rem kart metni yoruyor. */
  .card p { font-size: 0.96rem; }
  .section-lead { font-size: 1rem; }
  .hero-lead { font-size: 1.06rem; }

  /* Dokunma hedefleri: parmak için en az 46px yükseklik. */
  .btn { padding: 14px 18px; min-height: 48px; }
  .btn-lg { padding: 16px 22px; min-height: 54px; font-size: 1.04rem; }
  .sticky-btn { padding: 16px 8px; min-height: 54px; }
  .site-nav a { padding: 10px 0; }

  /* Vitrin panelleri telefonda tek sütun; satırlar tıklanabilir hissi vermesin
     diye değil, okunabilir olsun diye ferahlatılıyor. */
  .panes { grid-template-columns: 1fr; gap: 14px; }
  .step-list { gap: 14px; }
  .step-list li { padding: 20px 18px; }
  .about-text p { font-size: 1.02rem; }
  .about-facts { padding: 18px 20px; }
  .pane { padding: 12px 18px; min-height: 0; }
  .pane li { font-size: 0.94rem; padding: 10px 0; }

  /* Numaralar telefonda asıl eylem: büyük, rahat dokunulur satırlar. */
  .contact-people li { padding: 14px 0; }
  .contact-people .numara { font-size: 1.42rem; min-height: 52px; }

  /* Fotoğraflar dik telefonda çok yer kaplamasın. */
  .why-photo img, .contact-photo img { max-height: 300px; }
  .shot img { aspect-ratio: 16 / 11; }

  .footer-tel { flex-direction: column; gap: 8px; }
  .footer-tel a { min-height: 48px; }
}

@media (max-width: 560px) {
  /* Rozet dar ekranda iki satira kirilip tikaniyordu: hapi birakip duz etikete donuyoruz. */
  .eyebrow {
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    margin-bottom: 10px;
  }
  /* Yatay perde dar ekranda fotografi tamamen yutuyordu: dikey perdeye geciyoruz,
     metnin arkasi koyu kaliyor ama alt tarafta dukkan okunuyor. */
  .hero::after {
    background: linear-gradient(180deg, rgba(20,27,37,0.94) 0%, rgba(20,27,37,0.88) 55%, rgba(20,27,37,0.72) 100%);
  }
  .hero-bg img { object-position: center 30%; }
}

@media (max-width: 480px) {
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: clamp(1.75rem, 8vw, 2.1rem); }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; }
  .trust-strip { gap: 8px; padding-top: 16px; }
  .trust-strip li { font-size: 0.82rem; }
  .contact-actions .btn { width: 100%; }
}
