/* ============================================
   MALATYA LASTİK · Ana Stiller (Yön A — Kurumsal Güven)
   main.css — Değişkenler, reset, tipografi, butonlar
   ============================================ */

:root {
  /* Arka planlar */
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-2: #fafbfd;

  /* Lacivert kurumsal palet */
  --navy: #0a2540;
  --navy-2: #0d2e4d;
  --accent: #1763b3;
  --accent-hover: #12508f;
  --accent-soft: #e8f1fb;

  /* Çizgiler */
  --line: #e3e8ee;
  --line-2: #cfd8e3;

  /* Yazı */
  --ink: #0f1923;
  --text: #1c2733;
  --text-soft: #4a5868;
  --text-mute: #6b7888;

  /* Aksiyon renkleri */
  --red: #dc2626;
  --red-hover: #b91c1c;
  --green: #16a34a;
  --green-hover: #128a3e;
  --blue: #2563eb;
  --gold: #c79a3a;

  /* Tipografi */
  --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Köşeler */
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  /* Gölgeler */
  --shadow-sm: 0 1px 3px rgba(10,37,64,.08);
  --shadow: 0 10px 30px -12px rgba(10,37,64,.18);
  --shadow-lg: 0 24px 50px -18px rgba(10,37,64,.3);

  /* Konteyner */
  --container: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* —— SVG ikon —— */
svg.ic, .ic {
  width: 1em; height: 1em;
  vertical-align: -.125em;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* —— Başlıklar —— */
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; letter-spacing: -.3px; line-height: 1.2; }

/* —— Butonlar —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; font-family: inherit;
  border: none; cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn svg { font-size: 1.2em; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }

.btn-call { background: var(--red); color: #fff; }
.btn-call:hover { background: var(--red-hover); transform: translateY(-1px); }

.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: var(--green-hover); transform: translateY(-1px); }

.btn-outline { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }

.btn-ghost { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* —— Bölüm başlıkları —— */
section.pad { padding: 76px 0; }
@media (max-width: 768px){ section.pad { padding: 52px 0; } }

.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sec-head.left { text-align: left; margin-left: 0; }
.sec-label {
  display: inline-block; color: var(--accent);
  font-size: 13px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 12px;
}
.sec-head h2 { font-size: 34px; margin-bottom: 14px; }
.sec-head p { color: var(--text-soft); font-size: 17px; }
@media (max-width: 768px){ .sec-head h2 { font-size: 26px; } }

/* —— Breadcrumb —— */
.breadcrumb { font-size: 13px; color: var(--text-mute); margin-bottom: 16px; display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb span.cur { color: var(--text); font-weight: 600; }

/* —— Badge/etiket —— */
.badge-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-soft); color: var(--accent);
  padding: 5px 13px; border-radius: 20px; font-size: 13px; font-weight: 700;
}

/* —— Yardımcılar —— */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden { display: none; }

/* —— Skip link (erişilebilirlik) —— */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 18px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ============================================
   GÖRSEL TAŞMA & CLS ÖNLEME (global)
   ============================================ */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Blog kapak ve içerik görselleri sabit oran (CLS yok) */
.post-card img { aspect-ratio: 16/10; object-fit: cover; }
.post-cover { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-body img { border-radius: 10px; }
/* Lazy-load placeholder yüksekliği korunur */
img[loading="lazy"] { background: var(--bg-soft); }
