/* Reset & Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #0f172a; background: #f8fafc; }
img { max-width: 100%; display: block; }

/* Layout */
.container { width: min(1100px, 92%); margin-inline: auto; }
.section { padding: 72px 0; }
.section.alt { background: #eef2ff; }
.section-lead { color: #475569; margin-top: -8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: #ffffffd9; backdrop-filter: blur(8px); border-bottom: 1px solid #e2e8f0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #111827; font-weight: 700; }
.logo { width: 34px; height: 34px; }
.menu { display: flex; gap: 18px; align-items: center; }
.menu a { text-decoration: none; color: #111827; font-weight: 500; }
.menu .btn.small { padding: 8px 14px; font-size: 14px; }

.burger { display: none; flex-direction: column; gap: 4px; background: transparent; border: 0; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: #111827; }

/* Buttons */
.btn { display: inline-block; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 1px solid #1f2937; transition: .2s ease; }
.btn.primary { background: #4f46e5; border-color: #4f46e5; color: white; }
.btn.primary:hover { filter: brightness(0.95); }
.btn.ghost { background: white; color: #111827; }
.btn.ghost:hover { background: #f1f5f9; }

/* Hero */
.hero { padding: 64px 0 48px; background: linear-gradient(135deg, #eef2ff 0%, #ffffff 60%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; margin: 0 0 12px; }
.hero p { color: #334155; font-size: 17px; }
.accent { color: #4f46e5; }
.hero-cta { display: flex; gap: 12px; margin-top: 14px; }
.badges { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 12px; color: #475569; font-size: 14px; }

.hero-card { background: white; border: 1px solid #e2e8f0; border-radius: 20px; padding: 20px; box-shadow: 0 10px 20px rgba(2,6,23,0.06); }
.kpi { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; text-align: center; margin-bottom: 10px; font-weight: 700; color: #1f2937; }
.kpi .num { font-size: 22px; display: block; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: #334155; }
.checklist li { padding-left: 0; }

/* Cards Grid */
.grid.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.card { background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 18px; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 18px rgba(2,6,23,0.06); }
.card h3 { margin-top: 0; font-size: 19px; }
.card p { color: #475569; }

/* Features */
.grid.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.feature { background: white; border-radius: 16px; border: 1px solid #e5e7eb; padding: 18px; }
.feature h4 { margin: 0 0 6px; }

/* Testimonials */
.grid.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.tcard { background: white; border-left: 4px solid #4f46e5; padding: 18px; border-radius: 12px; color: #334155; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.contact-card { background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px; }
.contact-list { list-style: none; padding: 0; margin: 10px 0 18px; display: grid; gap: 8px; color: #334155; }
.map-embed iframe { width: 100%; height: 330px; border: 0; border-radius: 16px; }

/* Footer */
.site-footer { padding: 26px 0; background: #0f172a; color: #e2e8f0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-nav a { color: #e2e8f0; text-decoration: none; margin-left: 14px; }
.footer-nav a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid.cards { grid-template-columns: 1fr 1fr; }
  .grid.features { grid-template-columns: 1fr 1fr; }
  .grid.testimonials { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .menu { display: none; position: absolute; right: 4%; top: 62px; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; padding: 10px; border-radius: 12px; box-shadow: 0 10px 20px rgba(2,6,23,0.08); }
  .menu a { padding: 8px 12px; }
  .burger { display: flex; }
}

@media (max-width: 640px) {
  .grid.cards { grid-template-columns: 1fr; }
}


/* Referanslar görsel galerisi */
.ref-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.ref-gallery img {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 12px rgba(0,0,0,0.06);
}


/* --- Referans Galerisi: 3'lü grid + Lightbox --- */
.ref-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Her cihazda 3 sütun */
  gap: 10px;
  margin-top: 16px;
}
.ref-gallery img {
  width: 100%;
  height: 120px;             /* Düzgün ızgara görünümü için sabit yükseklik */
  object-fit: cover;         /* Kırpma ile hizalı görünüm */
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ref-gallery img:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(2,6,23,0.12);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(100%, 980px);
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.lightbox .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffffff;
  border: 0;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-weight: 700;
}


/* WhatsApp tuşu yeşil */
.btn.whatsapp,
.btn.ghost[href*="wa.me"],
.contact-actions .btn.ghost[href*="wa.me"] {
  background: #25D366 !important;
  border-color: #25D366 !important;
  color: #fff !important;
}
.btn.whatsapp:hover,
.btn.ghost[href*="wa.me"]:hover {
  filter: brightness(0.9);
}

/* Hizmetler kartları farklı renkler */
.grid.cards .card:nth-child(1) { background: #e0f2fe; } /* açık mavi */
.grid.cards .card:nth-child(2) { background: #ecfccb; } /* açık yeşil */
.grid.cards .card:nth-child(3) { background: #fef9c3; } /* açık sarı */
.grid.cards .card:nth-child(4) { background: #fee2e2; } /* açık kırmızı/pembe */
.grid.cards .card:nth-child(5) { background: #ede9fe; } /* açık mor */
.grid.cards .card:nth-child(6) { background: #fce7f3; } /* açık pembe */
.grid.cards .card { border: none; }


/* Küçük yanyana video satırı (Referanslar altı) */
.video-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 12px;
}
.video-row video {
  width: 320px;
  height: 180px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(2,6,23,0.12);
  border: 1px solid #e5e7eb;
  background: #000;
}
@media (max-width: 640px) {
  .video-row video { width: 300px; height: 168px; }
}


/* Sertifika kutusu */
.cert-box {
  display:flex;
  justify-content:center;
  margin-top:20px;
}
.certificate {
  max-width:600px;
  width:100%;
  border:4px solid #e5e7eb;
  border-radius:12px;
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
}


/* Referans listesi */
.ref-list {
  list-style: disc;
  margin: 20px auto;
  padding: 0 20px;
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.6;
}
.ref-list li { margin-bottom: 6px; }
