/* ==========================================================================
   Marmara Kriminal - Genel Site Stili
   Renk paleti logodan alinmistir: kirmizi #CB0000, siyah #0B0B0B, yesil #046717
   ========================================================================== */

:root {
  --red: #c40808;
  --red-dark: #950505;
  --red-light: #fdecec;
  --black: #0b0b0c;
  --ink: #1b1c1f;
  --green: #046717;
  --green-light: #e9f5ec;
  --gray-50: #f7f7f8;
  --gray-100: #eeeef0;
  --gray-200: #e2e2e5;
  --gray-400: #9a9aa2;
  --gray-600: #63636b;
  --gray-800: #313136;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(11,11,12,.06), 0 1px 1px rgba(11,11,12,.04);
  --shadow-md: 0 8px 24px rgba(11,11,12,.10);
  --shadow-lg: 0 18px 45px rgba(11,11,12,.14);
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1180px;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--black);
  line-height: 1.25;
  margin: 0 0 .5em;
  font-weight: 700;
}
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.icon { width: 1em; height: 1em; display: inline-block; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* -------------------- Skip link (erisilebilirlik) -------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--red); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============================== HEADER ============================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 52px; width: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.15rem; letter-spacing: .02em; color: var(--black); }
.brand-text span { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px; font-weight: 600; font-size: .93rem; color: var(--gray-800);
  border-radius: var(--radius-sm); transition: color .15s, background .15s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--red); background: var(--red-light); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s;
  white-space: nowrap;
}
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--gray-200); color: var(--black); background: #fff; }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-ghost { color: var(--black); }
.btn-whatsapp { background: var(--green); color: #fff; }
.btn-whatsapp:hover { background: #035211; transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 8px 15px; font-size: .82rem; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--gray-200); border-radius: 8px;
  width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle .icon { width: 20px; height: 20px; }

/* Mobil menu varsayilan olarak gizli; sadece kucuk ekranlarda ve acikken gorunur (bkz. media query) */
.mobile-nav { display: none; }

/* ============================== HERO ============================== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, var(--red-light), transparent 60%), var(--white);
  border-bottom: 1px solid var(--gray-100);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding: 76px 20px 64px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); display: inline-block; }
.hero h1 { font-size: clamp(1.9rem, 3.2vw, 2.85rem); max-width: 18ch; }
.hero-sub { font-size: 1.08rem; color: var(--gray-600); max-width: 56ch; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-badge { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--gray-800); }
.hero-badge .icon { width: 18px; height: 18px; color: var(--green); flex: none; }

.hero-emblem {
  display: flex; align-items: center; justify-content: center; position: relative;
}
.hero-emblem img {
  width: min(360px, 100%); filter: drop-shadow(0 20px 40px rgba(11,11,12,.18));
}

/* ============================== SECTIONS ============================== */
.section { padding: 74px 0; }
.section-tight { padding: 54px 0; }
.section-alt { background: var(--gray-50); }
.section-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section-head p { color: var(--gray-600); font-size: 1.02rem; }

/* ---- Hizmetler grid ---- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.service-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column; height: 100%;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-icon {
  width: 62px; height: 62px; border-radius: 16px; background: var(--red-light); color: var(--red);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-icon .icon { width: 34px; height: 34px; }
.service-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service-card p { color: var(--gray-600); font-size: .93rem; margin-bottom: 16px; flex-grow: 1; }
.service-link { font-weight: 700; font-size: .88rem; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.service-link .icon { width: 14px; height: 14px; transition: transform .15s; }
.service-card:hover .service-link .icon { transform: translateX(3px); }

/* ---- Neden biz ---- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-card { text-align: center; padding: 8px; }
.why-icon {
  width: 62px; height: 62px; border-radius: 50%; background: var(--black); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.why-icon .icon { width: 28px; height: 28px; }
.why-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.why-card p { color: var(--gray-600); font-size: .89rem; margin: 0; }

/* ---- Surec / adimlar ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 22px 22px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-head);
  font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1.05rem;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { color: var(--gray-600); font-size: .88rem; margin: 0; }

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--black), #22090a 65%, var(--red-dark));
  color: #fff; border-radius: 22px; padding: 52px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.cta-banner h2 { color: #fff; margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-banner p { color: rgba(255,255,255,.78); max-width: 52ch; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-banner .btn-outline { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.cta-banner .btn-outline:hover { border-color: #fff; }

/* ---- SSS / Akordeon ---- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: .98rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--red); font-weight: 400; flex: none; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--gray-600); font-size: .93rem; }

/* ---- Sayfa header (ic sayfalar) ---- */
.page-header {
  background: var(--gray-50); border-bottom: 1px solid var(--gray-100);
  padding: 46px 0 34px;
}
.breadcrumbs { font-size: .82rem; color: var(--gray-600); margin-bottom: 10px; }
.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs a:hover { color: var(--red); }
.page-header h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0; }
.page-header p { color: var(--gray-600); margin: 10px 0 0; max-width: 60ch; }

/* ---- Icerik (prose) ---- */
.prose { font-size: 1.02rem; color: var(--ink); }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--black); }

/* ---- Hizmet detay ---- */
.service-detail { display: grid; grid-template-columns: 2fr 1fr; gap: 46px; align-items: start; }
.service-sidebar {
  background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 26px; position: sticky; top: 100px;
}
.service-sidebar h3 { font-size: 1.02rem; margin-bottom: 14px; }
.contact-mini { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.contact-mini a { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.contact-mini .icon { width: 17px; height: 17px; color: var(--red); flex: none; }
.other-services { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.other-services a {
  display: block; padding: 9px 10px; border-radius: 8px; font-size: .88rem; font-weight: 600; color: var(--gray-800);
}
.other-services a:hover { background: var(--white); color: var(--red); }
.other-services a.active { color: var(--red); background: var(--red-light); }

/* ---- Hizmetler ust (listeleme) sayfasi ---- */
.services-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---- Blog ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.blog-card-image { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-image.is-placeholder { background: var(--red-light); display: flex; align-items: center; justify-content: center; }
.blog-card-image.is-placeholder img { width: 40%; height: 40%; object-fit: contain; }
.blog-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-meta { color: var(--gray-400); font-size: .82rem; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.blog-card h3 { font-size: 1.08rem; margin-bottom: 10px; line-height: 1.35; }
.blog-card p { color: var(--gray-600); font-size: .93rem; margin-bottom: 16px; flex-grow: 1; }
.blog-link { font-weight: 700; font-size: .88rem; color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.blog-link .icon { width: 14px; height: 14px; transition: transform .15s; }
.blog-card:hover .blog-link .icon { transform: translateX(3px); }

.blog-detail-cover { width: 100%; max-height: 440px; overflow: hidden; border-radius: var(--radius); margin-bottom: 32px; }
.blog-detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-detail-cover.is-placeholder { background: var(--red-light); display: flex; align-items: center; justify-content: center; aspect-ratio: 21/9; }
.blog-detail-cover.is-placeholder img { width: 22%; height: auto; object-fit: contain; }
.blog-detail-meta { color: var(--gray-400); font-size: .9rem; margin-bottom: 6px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.blog-detail-meta .icon { width: 16px; height: 16px; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 1.2em 0; }
.prose blockquote { border-left: 3px solid var(--red); padding-left: 18px; color: var(--gray-600); font-style: italic; margin: 1.4em 0; }

.related-posts { margin-top: 60px; }
.related-posts h2 { margin-bottom: 22px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--gray-200); font-size: .9rem; font-weight: 600; color: var(--ink);
}
.pagination a:hover { border-color: var(--red); color: var(--red); }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .disabled { opacity: .4; pointer-events: none; }

.empty-state-block { text-align: center; padding: 60px 20px; color: var(--gray-600); }

/* ---- Iletisim ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 26px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-item .service-icon { flex: none; }
.contact-info-item h4 { margin: 0 0 4px; font-size: .98rem; }
.contact-info-item p, .contact-info-item a { margin: 0; color: var(--gray-600); font-size: .93rem; }
.contact-info-item a:hover { color: var(--red); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200); margin-top: 10px; }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

.form-card { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 30px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; color: var(--gray-800); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--gray-200);
  font-family: var(--font-body); font-size: .94rem; background: #fff; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--red);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .78rem; color: var(--gray-400); margin-top: 10px; }
.alert { padding: 14px 18px; border-radius: 10px; font-size: .92rem; margin-bottom: 18px; font-weight: 600; }
.alert-success { background: var(--green-light); color: var(--green); }
.alert-error { background: var(--red-light); color: var(--red-dark); }

/* ============================== FOOTER ============================== */
.site-footer { background: var(--black); color: rgba(255,255,255,.72); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 34px; padding-bottom: 42px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 48px; width: 48px; background: #fff; border-radius: 50%; padding: 6px; box-sizing: border-box; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.footer-brand strong { color: #fff; font-family: var(--font-head); font-size: 1.05rem; }
.site-footer p { font-size: .89rem; line-height: 1.7; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .89rem; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); }
.footer-social .icon { width: 16px; height: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 20px 0; font-size: .8rem; color: rgba(255,255,255,.5);
}
.footer-bottom a:hover { color: #fff; }

/* ============================== Floating WhatsApp ============================== */
.float-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  transition: transform .15s;
}
.float-wa:hover { transform: scale(1.08); }
.float-wa .icon { width: 28px; height: 28px; }

/* ============================== 404 ============================== */
.error-page { text-align: center; padding: 100px 20px; }
.error-page h1 { font-size: 5rem; color: var(--red); margin-bottom: 6px; }

/* ============================== Responsive ============================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-emblem { display: none; }
  .services-grid, .services-page-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .blog-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-outline.hide-mobile { display: none; }
  .header-inner { flex-wrap: nowrap; padding: 10px 16px; }
  .brand img { height: 40px; width: 40px; }
  .brand-text span { display: none; }
  .brand-text strong { font-size: 1rem; }
  .header-actions { gap: 6px; }
  .header-actions .btn-whatsapp { padding: 10px 12px; font-size: 0; }
  .header-actions .btn-whatsapp .icon { width: 20px; height: 20px; }
  body.nav-open .mobile-nav { display: flex; }
  .mobile-nav {
    display: none; position: fixed; inset: 0; z-index: 150; background: #fff;
    flex-direction: column; padding: 20px; gap: 4px; overflow-y: auto;
  }
  .mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
  .mobile-nav a { padding: 14px 8px; font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid var(--gray-100); }
  .mobile-nav .btn { margin-top: 18px; }
  .services-grid, .services-page-grid, .why-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .cta-banner { padding: 38px 22px; }
}
