/* =========================================================
   İnka Mühendislik – site stilleri
   Palet: lacivert zemin, altın vurgu, beyaz logo.
   ========================================================= */
:root {
  --dark-900: #111a23;   /* logo zemini – lacivert */
  --dark-800: #1a2530;
  --dark-700: #26333f;
  --gold:     #9a6212;   /* açık zeminde altın metin/çizgi – beyaz zeminde AA kontrast */
  --gold-d:   #7d4f0e;
  --gold-l:   #e1a547;   /* logodaki kalem rengi – koyu zeminde vurgu ve buton */
  --cream:    #f6f4ef;
  --ink:      #1a2530;
  --muted:    #5b636b;
  --line:     #e6e1da;
  --white:    #ffffff;
  --wa:       #25d366;
  --wa-d:     #128c4a;

  --radius: 14px;
  --shadow: 0 12px 32px rgba(17, 26, 35, .10);
  --max: 1200px;
  --header-h: 76px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ===================== Temel ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.7;
  color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; color: var(--dark-900); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-l); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--dark-800); color: rgba(255, 255, 255, .82); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.section-head p { color: var(--muted); }
.section--dark .section-head p { color: rgba(255, 255, 255, .7); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--gold-l); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 500; background: var(--gold); color: var(--white);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ===================== Butonlar ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 .98rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold-l); color: var(--dark-900); }
.btn--gold:hover { background: #ecb661; }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--wa { background: var(--wa-d); color: var(--white); }
.btn--wa:hover { background: #0e7a3e; }
.btn--outline { border-color: var(--dark-800); color: var(--dark-800); }
.btn--outline:hover { background: var(--dark-800); color: var(--white); }
.btn--sm { padding: 11px 18px; font-size: .9rem; }

/* ===================== Üst menü ===================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; transition: background .25s, box-shadow .25s, height .25s;
}
.header.is-scrolled { background: rgba(17, 26, 35, .96); box-shadow: 0 4px 20px rgba(0, 0, 0, .2); backdrop-filter: blur(6px); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--white); }
.logo img { height: 46px; width: auto; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-link {
  display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none;
  color: rgba(255, 255, 255, .86); font-weight: 500; font-size: .95rem;
}
.nav-link:hover, .nav-link.is-active { color: var(--white); background: rgba(255, 255, 255, .1); }
.nav .btn { margin-left: 10px; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 10px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: var(--white); align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .logo img { height: 38px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--dark-900); padding: 12px 16px 24px; gap: 8px; box-shadow: 0 16px 30px rgba(0, 0, 0, .3);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav ul { flex-direction: column; }
  .nav-link { padding: 14px 12px; font-size: 1.05rem; }
  .nav .btn { margin: 8px 0 0; }
  .header.menu-open { background: var(--dark-900); }
}

/* ===================== Hero ===================== */
.hero {
  position: relative; min-height: min(100svh, 860px); display: flex; flex-direction: column; justify-content: center;
  color: var(--white); padding: calc(var(--header-h) + 48px) 0 0; background-color: var(--dark-900);
  background-image:
    linear-gradient(100deg, rgba(17, 26, 35, .95) 0%, rgba(17, 26, 35, .8) 48%, rgba(17, 26, 35, .45) 100%),
    var(--hero-img, none);
  background-size: cover; background-position: center;
  overflow: hidden; isolation: isolate;
}
/* Fotoğraf yoksa ince mühendislik ızgarası */
.hero--plain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(225, 165, 71, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(225, 165, 71, .08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(110deg, transparent 20%, #000 80%);
}
.hero-content { max-width: 760px; padding-bottom: 56px; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 6.2vw, 4.4rem); letter-spacing: -.01em; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--gold-l); }
.hero-text { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255, 255, 255, .85); max-width: 620px; margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.stats { position: relative; border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(17, 26, 35, .55); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stats li { padding: 26px 20px; border-right: 1px solid rgba(255, 255, 255, .1); }
.stats li:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--gold-l); line-height: 1.1; }
.stats span { font-size: .9rem; color: rgba(255, 255, 255, .75); }
@media (max-width: 600px) {
  .stats ul { grid-template-columns: repeat(3, 1fr); }
  .stats li { padding: 18px 8px; text-align: center; }
  .stats span { font-size: .75rem; line-height: 1.3; display: block; }
}

/* ===================== Hakkımızda ===================== */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.about-media { position: relative; isolation: isolate; margin: 0 18px 18px 0; }
.about-media::before {
  content: ""; position: absolute; inset: 22px -18px -18px 22px; border: 3px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.about-media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-placeholder img { width: 100%; height: auto; object-fit: contain; }
.about-placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--dark-800); display: grid; place-items: center; padding: 15%;
}
.about-text p { color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 28px; }
.person { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: var(--white); }
.person strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--dark-900); }
.person small { display: block; color: var(--muted); margin-bottom: 10px; }
.person a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gold); text-decoration: none; }
.person a:hover { text-decoration: underline; }
.person svg { width: 16px; height: 16px; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } .about-media { max-width: 460px; } }

/* ===================== Hizmetler ===================== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden;
}
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold); transition: width .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { width: 100%; }
.card-icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: var(--dark-800); color: var(--gold-l); margin-bottom: 20px; }
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ===================== Projeler ===================== */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -16px 0 32px; }
.filter {
  font: 500 .9rem var(--font-body); padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
}
.filter[aria-pressed="true"] { background: var(--dark-800); border-color: var(--dark-800); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { margin: 0; }
.project[hidden] { display: none; }
.project-btn {
  display: block; width: 100%; padding: 0; border: 0; background: var(--dark-800); font: inherit; text-align: left;
  cursor: zoom-in; border-radius: var(--radius); overflow: hidden; position: relative; color: var(--white);
}
.project-btn img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.project-btn:hover img, .project-btn:focus-visible img { transform: scale(1.05); }
.project-caption {
  position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px;
  background: linear-gradient(to top, rgba(17, 26, 35, .95), transparent);
}
.project-caption strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.project-caption .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; color: rgba(255, 255, 255, .82); }
.project-caption .meta span { display: inline-flex; align-items: center; gap: 4px; }
.project-caption svg { width: 14px; height: 14px; }
.badge {
  position: absolute; top: 14px; left: 14px; font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: rgba(17, 26, 35, .8); color: var(--white); backdrop-filter: blur(4px);
}
.badge--devam { background: var(--gold); }
.count { position: absolute; top: 14px; right: 14px; font-size: .75rem; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); display: inline-flex; gap: 5px; align-items: center; }
.count svg { width: 14px; height: 14px; }
.empty {
  text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); padding: 48px 20px; color: var(--muted);
}
.projects-more { text-align: center; margin-top: 40px; }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center;
  background: rgba(10, 12, 14, .95); padding: 72px 16px 88px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); text-align: center; }
.lightbox img { max-height: 74vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: var(--white); margin-top: 14px; font-size: .95rem; }
.lightbox figcaption small { display: block; color: rgba(255, 255, 255, .7); margin-top: 4px; max-width: 760px; margin-inline: auto; }
.lb-ig { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--gold-l); font-weight: 600; font-size: .9rem; }
.lb-ig[hidden] { display: none; }
.lb-ig svg { width: 16px; height: 16px; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: var(--white); display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: .9rem; }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; } }

/* ===================== Neden Biz ===================== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-item {
  padding: 30px 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1); border-top: 3px solid var(--gold-l);
}
.why-item .num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--gold-l); line-height: 1; margin-bottom: 16px; }
.why-item h3 { font-size: 1.1rem; }
.why-item p { margin: 0; font-size: .95rem; color: rgba(255, 255, 255, .75); }
.regions { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.regions span:first-child { color: rgba(255, 255, 255, .7); margin-right: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(225, 165, 71, .5); color: var(--white); font-size: .92rem; }
.chip svg { width: 15px; height: 15px; color: var(--gold-l); }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ===================== SSS ===================== */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative;
  font-family: var(--font-head); font-weight: 600; color: var(--dark-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--gold); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ===================== İletişim ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 56px); }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--dark-800); color: var(--gold-l); }
.ci svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; }
.contact-list a { font-weight: 600; text-decoration: none; color: var(--dark-900); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold); text-decoration: underline; }
.contact-list .sub { display: block; font-size: .88rem; color: var(--muted); }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--line); background: var(--cream); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 600; color: var(--gold); }
.map-link svg { width: 16px; height: 16px; }

.form { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form h3 { font-size: 1.35rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 13px 14px; border-radius: 10px;
  border: 1.5px solid #c9c2b8; background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(154, 98, 18, .18); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.form-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.form-actions .btn { width: 100%; }
@media (max-width: 420px) { .form-actions { grid-template-columns: 1fr; } }
.form-status { margin: 14px 0 0; font-weight: 600; font-size: .94rem; }
.form-status:empty { display: none; }
.form-status.ok { color: #1b7a3a; }
.form-status.err { color: #b3261e; }

/* ===================== Footer ===================== */
.footer { background: var(--dark-900); color: rgba(255, 255, 255, .72); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer a:hover { color: var(--gold-l); text-decoration: underline; }
.footer .logo img { height: 54px; margin-bottom: 14px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.social a:hover { background: var(--gold); color: var(--white); }
.social svg { width: 19px; height: 19px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: .86rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===================== Hızlı iletişim kısayolları ===================== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: var(--white); display: grid; place-items: center; isolation: isolate;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: pulse 2.4s infinite; z-index: -1; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

/* Mobilde alt sabit çubuk: Ara · WhatsApp · Yol Tarifi */
.action-bar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  body { padding-bottom: 64px; }
  .action-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset: auto 0 0 0; z-index: 150;
    background: var(--dark-900); border-top: 1px solid rgba(255, 255, 255, .1);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 64px;
    color: var(--white); text-decoration: none; font-size: .78rem; font-weight: 600;
  }
  .action-bar a + a { border-left: 1px solid rgba(255, 255, 255, .08); }
  .action-bar svg { width: 22px; height: 22px; }
  .action-bar .ab-wa { background: var(--wa-d); }
}

/* Kaydırınca beliren içerik */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
