/* ============================================================
   İZMİR TESİSATÇISI — MODERN CSS RESET
   ============================================================ */

/* ── TEMEL RESET ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── HTML ─────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

/* ── BODY ─────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ── BAŞLIKLAR ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--color-text-dark);
  font-weight: 700;
}

/* ── MEDYA ────────────────────────────────────────────────── */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  object-fit: cover;
}

/* ── BAĞLANTILAR ──────────────────────────────────────────── */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

a:hover {
  text-decoration: none;
}

/* ── LİSTELER ─────────────────────────────────────────────── */
ul,
ol {
  list-style: none;
}

/* ── BUTONLAR ─────────────────────────────────────────────── */
button {
  border: none;
  cursor: pointer;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  line-height: inherit;
}

/* ── FORMLAR ──────────────────────────────────────────────── */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-light);
  opacity: 1;
}

/* ── TABLOLAR ─────────────────────────────────────────────── */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* ── YATAY ÇIZGI ──────────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ── ADDRESS ──────────────────────────────────────────────── */
address {
  font-style: normal;
}

/* ── FIELDSET ─────────────────────────────────────────────── */
fieldset {
  border: none;
}

/* ============================================================
   LAYOUT YARDIMCI SINIFLAR
   ============================================================ */

/* ── CONTAINER ────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ── SECTION ──────────────────────────────────────────────── */
.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--color-bg-light);
}

/* ============================================================
   YARDIMCI (UTILITY) SINIFLAR
   ============================================================ */

/* ── METİN HİZALAMA ───────────────────────────────────────── */
.text-center { text-align: center; }
.text-left   { text-align: left;   }
.text-right  { text-align: right;  }

/* ── DISPLAY ──────────────────────────────────────────────── */
.d-flex       { display: flex; }
.d-grid       { display: grid; }
.d-block      { display: block; }
.d-inline     { display: inline; }
.d-inline-flex{ display: inline-flex; }
.d-none       { display: none; }

/* ── FLEX YARDIMCILAR ─────────────────────────────────────── */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap { flex-wrap: wrap; }
.flex-col  { flex-direction: column; }

/* ── GAP ──────────────────────────────────────────────────── */
.gap-4  { gap: 4px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* ── MARGIN TOP ───────────────────────────────────────────── */
.mt-4  { margin-top: 4px;  }
.mt-8  { margin-top: 8px;  }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }

/* ── MARGIN BOTTOM ────────────────────────────────────────── */
.mb-4  { margin-bottom: 4px;  }
.mb-8  { margin-bottom: 8px;  }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }

/* ── PADDING ──────────────────────────────────────────────── */
.p-0  { padding: 0; }
.p-8  { padding: 8px; }
.p-16 { padding: 16px; }
.p-24 { padding: 24px; }

/* ── OVERFLOW ─────────────────────────────────────────────── */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* ── POSITION ─────────────────────────────────────────────── */
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed    { position: fixed; }

/* ── WIDTH / HEIGHT ───────────────────────────────────────── */
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ── GÖRSEL GİZLEME (erişilebilir) ───────────────────────── */
.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;
}

/* ── FONT AĞIRLIKLARI ─────────────────────────────────────── */
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ── RENKLENDİRME ─────────────────────────────────────────── */
.text-primary   { color: var(--color-primary);  }
.text-secondary { color: var(--color-secondary); }
.text-success   { color: var(--color-success);  }
.text-danger    { color: var(--color-danger);   }
.text-muted     { color: var(--color-text-light); }
.text-white     { color: #fff; }

/* ── BORDER RADIUS ────────────────────────────────────────── */
.rounded    { border-radius: var(--card-radius); }
.rounded-sm { border-radius: 6px; }
.rounded-lg { border-radius: 16px; }
.rounded-full { border-radius: 50%; }
