/* Mert Çelik Konstrüksiyon — Kurumsal Tanıtım Sitesi
   Statik HTML/CSS/JS, e-ticaret yok. */

:root {
  --bg: #0f1319;
  --bg-alt: #12161c;
  --bg-card: #1d1e20;
  --border: #262b32;
  --text: #ffffff;
  --muted: #8ba3b8;
  --accent: #f97415;
  --accent-2: #ffb347;
  --cta-blue: #0052ff;
  --cta-text: #0f1319;
  --radius: 16px;
  --max-width: 1180px;
  --shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Sora", "DM Sans", sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--muted); }

a {
  color: inherit;
  text-decoration: none;
}

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

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

.eyebrow {
  display: inline-block;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--muted);
  color: #05070a;
}
.btn-primary:hover { background: #a3b8ca; }

.btn-white {
  background: #f8fafc;
  color: #05070a;
}
.btn-white:hover { background: #ffffff; }

.btn-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: var(--muted); color: var(--muted); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 19, 25, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo span { color: var(--accent); }

.logo-img {
  height: 46px;
  width: 46px;
  border-radius: 9px;
  object-fit: cover;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

nav.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--text);
}
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  font-size: 0.88rem;
  color: var(--muted);
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 1160px) {
  nav.main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    height: calc(100vh - 78px);
    height: calc(100dvh - 78px);
    overflow-y: auto;
    background: var(--bg);
    flex-direction: column;
    padding: 30px 24px;
    gap: 22px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    border-top: 1px solid var(--border);
  }
  nav.main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  nav.main-nav a { font-size: 1.1rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-phone { display: none !important; }
}

@media (min-width: 1161px) {
  .header-phone { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 110px;
  overflow: hidden;
  text-align: center;
}

.hero.has-image {
  background-size: cover;
  background-position: center 30%;
}
.hero.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 19, 25, 0.55) 0%, rgba(15, 19, 25, 0.88) 78%, var(--bg) 100%);
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; max-width: 780px; }

.hero:not(.has-image) {
  background: linear-gradient(180deg, #0f1319 0%, #12161c 100%);
}

.hero p.lead {
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-row { justify-content: center; }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
section.alt { background: var(--bg-alt); }

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

/* ---------- Cards grid (3-col) ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); }

.card .icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(139, 163, 184, 0.14);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.card .icon-badge svg { width: 26px; height: 26px; }

.card .tag {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.card p { margin-bottom: 0; font-size: 0.95rem; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  text-align: center;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

.stat-icon {
  width: 20px;
  height: 20px;
  margin: 0 auto 14px;
  color: var(--muted);
}
.stat-icon svg { width: 100%; height: 100%; }

.stat-num {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  font-weight: 500;
  color: var(--text);
}
.stat-label {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 8px;
}

/* ---------- Two column (CAD-to-metal / capacity highlight) ---------- */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); gap: 30px; } }

.stack-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stack-photo img {
  border-radius: var(--radius);
  margin-bottom: 32px;
  max-height: 480px;
  width: 100%;
  object-fit: cover;
}

.highlight-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.highlight-box .stat-num { font-size: clamp(2.4rem, 5.4vw, 3.2rem); }

/* ---------- CTA band (bold blue block) ---------- */
.cta-band {
  background: var(--cta-blue);
  text-align: center;
}
.cta-band .eyebrow { color: rgba(15, 19, 25, 0.6); }
.cta-band h2 { color: var(--cta-text); }
.cta-band p { color: rgba(15, 19, 25, 0.72); }
.cta-band .section-head { margin: 0 auto 8px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Projelerimiz grid ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 980px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .project-grid { grid-template-columns: minmax(0, 1fr); } }

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(150deg, #1d1d22, #101012);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}
.project-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.project-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #17171b;
  transition: transform 0.4s ease;
}
.project-card:hover .bg { transform: scale(1.06); }

.project-card .view-hint {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 19, 25, 0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.project-card:hover .view-hint { opacity: 1; transform: translateY(0); }
.project-card .view-hint svg { width: 16px; height: 16px; }

.project-card .overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 22px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 10%, rgba(0, 0, 0, 0.15) 75%, transparent 100%);
}

.project-card .overlay .num {
  font-family: "Sora", sans-serif;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 6px;
}

.project-card h3 {
  color: #fff;
  font-family: "Sora", sans-serif;
  text-transform: uppercase;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.project-card p {
  color: rgba(244, 244, 242, 0.78);
  font-size: 0.86rem;
  margin: 0;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.info-list {
  display: grid;
  gap: 20px;
}

.info-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-item .icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  background: rgba(249, 116, 21, 0.14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.info-item h4 {
  margin: 0 0 6px;
  font-family: "DM Sans", sans-serif;
  text-transform: none;
  font-size: 1rem;
}
.info-item p { margin: 0; font-size: 0.94rem; }
.info-item a { color: var(--text); }
.info-item a:hover { color: var(--accent); }

.map-box {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 340px;
}
.map-box iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(0.3) invert(0.92) contrast(0.9); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--bg);
  padding: 72px 0 28px;
  text-align: center;
}

.footer-grid {
  max-width: 480px;
  margin: 0 auto;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 34px;
}

.footer-grid h5 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-sublabel { font-weight: 600; margin-top: 8px; }
.footer-grid a { color: var(--text); font-size: 0.98rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid li:not(:has(a)) { color: var(--muted); font-size: 0.98rem; }

.footer-brand {
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.footer-tagline { max-width: 360px; margin: 0 auto; }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.82rem;
}
.footer-bottom .ticker {
  margin-top: 10px;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #3a4149;
  text-transform: uppercase;
}

/* ---------- Page hero (secondary pages, shorter) ---------- */
.page-hero { padding: 150px 0 70px; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }

/* ---------- Lightbox (Projelerimiz galerisi) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 7, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }

.lightbox-inner {
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  z-index: 3;
}

.lightbox-title {
  font-family: "Sora", sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 16px;
  padding: 0 48px;
}

.lightbox-stage {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 0;
}

.lightbox-img {
  max-width: 100%;
  max-height: 66vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  background: #000;
}

.lightbox-nav {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-nav:hover { border-color: var(--muted); }

.lightbox-counter {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.lightbox-thumbs {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  max-height: 90px;
  overflow-y: auto;
}

.lightbox-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
  opacity: 0.6;
}
.lightbox-thumb:hover { opacity: 0.9; }
.lightbox-thumb.active { opacity: 1; border-color: var(--accent); }

.lightbox-empty {
  color: var(--muted);
  text-align: center;
  margin: 40px 0 0;
  display: none;
}

@media (max-width: 640px) {
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-title { font-size: 1rem; padding: 0 40px; }
}
