/* ==========================================================================
   EMF PİSTON
   Çelik grisi + logo siyahı + marka turuncusu.
   Başlık: Archivo (geniş, damgalanmış metal). Gövde: IBM Plex Sans (teknik).
   Ölçüler ve parça kodları daima tabular rakamla dizilir.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..900&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  /* Marka */
  --orange: #F1592A;
  --orange-700: #C7431B;
  --orange-050: #FDEDE7;

  /* Logo siyahı ve türevleri */
  --ink: #1E1E1E;
  --ink-800: #2B2E31;
  --ink-600: #4B5157;

  /* Çelik grileri — kâğıt değil, işlenmiş metal */
  --steel-050: #F3F5F7;
  --steel-100: #E6EAEE;
  --line: #D6DBE1;
  --muted: #6E757D;
  --white: #FFFFFF;

  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --text: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1280px;
  --header-h: 88px;
  --gap: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-variation-settings: 'wdth' 112;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Üst bar ---------- */
.topbar { background: var(--ink); color: #B6BBC1; font-size: .82rem; }
.topbar .wrap { display: flex; gap: 1.5rem; align-items: center; min-height: 40px; flex-wrap: wrap; }
.topbar a { transition: color .15s; }
.topbar a:hover { color: var(--orange); }
.topbar .spacer { margin-left: auto; }
.lang-switch { display: flex; gap: 2px; }
.lang-switch a { padding: 3px 9px; font-weight: 600; letter-spacing: .04em; }
.lang-switch a.is-active { background: var(--orange); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand img { height: 56px; width: auto; }

.nav {
  margin-left: auto; display: flex; gap: 0; align-items: stretch;
  list-style: none; padding: 0; margin-block: 0;
}
.nav > li { position: relative; display: flex; }
.nav a {
  display: flex; align-items: center; padding: 0 .95rem;
  font-family: var(--display); font-variation-settings: 'wdth' 106;
  font-size: .95rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  transition: color .15s, box-shadow .15s;
}
.nav > li > a { min-height: var(--header-h); }
.nav a:hover { color: var(--orange); }
.nav > li > a:hover, .nav > li.is-active > a {
  color: var(--orange); box-shadow: inset 0 -3px 0 0 var(--orange);
}
.nav ul {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--orange);
  padding: .3rem 0; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: .16s;
}
.nav > li:hover > ul, .nav > li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.nav ul li { display: block; }
.nav ul a {
  display: block; padding: .6rem 1.1rem; min-height: 0;
  font-family: var(--text); font-size: .95rem; font-weight: 500;
  text-transform: none; letter-spacing: 0; box-shadow: none;
}
.nav ul a:hover { background: var(--steel-050); box-shadow: inset 3px 0 0 0 var(--orange); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; background: var(--orange); color: #fff;
  font-family: var(--display); font-variation-settings: 'wdth' 108;
  font-weight: 700; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase;
  border: 2px solid var(--orange); border-radius: 0;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--orange-700); border-color: var(--orange-700); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--on-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--on-dark:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* ---------- Sayfa başlığı ---------- */
.page-head {
  background: var(--ink); color: #fff;
  padding: 3.25rem 0 2.75rem; border-bottom: 4px solid var(--orange);
}
/* Arama paneli basligin uzerine bindiginde turuncu cizgi iki ucta yarim kalir */
.page-head--overlap { border-bottom-color: transparent; }
.page-head h1 { margin: 0; }
.page-head__sub { color: #B6BBC1; margin: .5rem 0 0; font-size: 1.05rem; }
.crumbs { font-size: .82rem; color: #8E959C; margin-bottom: .6rem; }
.crumbs a { transition: color .15s; }
.crumbs a:hover { color: var(--orange); }

/* ---------- İçerik ---------- */
.section { padding: 4.5rem 0; }
.section--tight { padding: 2.75rem 0; }
.prose p { margin: 0 0 1.15em; max-width: 68ch; }
.prose h2 { margin-top: 2.25rem; }
.prose ul { max-width: 68ch; }
.mt-2 { margin-top: 2.25rem; }
.mt-3 { margin-top: 3.25rem; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)); }

/* ---------- Katalog hücresi: ürün kartı ----------
   Yuvarlak köşe ve gölge yok. Seçim, katalogdaki bir satır gibi
   sol kenarda beliren turuncu şeritle gösterilir.                    */
/* min-width:0 → 1fr sütunlar içerik asgarisinin altına inebilsin;
   aksi halde "OM 401/402/403/404/407/409" gibi bölünemeyen jetonlar
   ızgarayı taşırıyor. */
.card {
  display: block; background: var(--white);
  border: 1px solid var(--line); border-radius: 0;
  position: relative; min-width: 0; transition: border-color .15s;
}
.card::before {
  content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px;
  width: 3px; background: var(--orange); opacity: 0; transition: opacity .15s;
}
.card:hover { border-color: var(--ink-600); }
.card:hover::before { opacity: 1; }

/* Cizimlerin en-boy orani cok degisken oldugu icin kutu sabit tutulur:
   min-height:0 icerigin kutuyu esnetmesini onler, gorsel ise object-fit ile
   kutuya sigdirilir. Boylece tum urun kartlari ayni yukseklikte olur. */
.card__media {
  --media-pad: 1.1rem;
  position: relative;
  background: var(--steel-050); aspect-ratio: 4/3; min-height: 0;
  display: grid; place-items: center; padding: var(--media-pad); overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* Gorsel akistan cikarilir: boylece kutunun yuksekligini etkilemez ve
   yuzde tabanli max-height, aspect-ratio ile belirlenen kesin yukseklige
   gore cozulur. Cizimlerin en-boy orani ne olursa olsun kutuya sigar. */
.card__media img {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: auto; height: auto;
  max-width: calc(100% - var(--media-pad) * 2);
  max-height: calc(100% - var(--media-pad) * 2);
  mix-blend-mode: multiply;
}
.card__body { padding: .85rem 1rem 1.05rem; }
.card__code {
  font-family: var(--display); font-variation-settings: 'wdth' 100;
  font-size: 1.2rem; font-weight: 700; letter-spacing: .01em;
  overflow-wrap: anywhere;
}
.card__meta {
  font-size: .82rem; color: var(--muted); line-height: 1.45;
  overflow-wrap: anywhere;
}
/* Iki satirlik sabit yer: motor adi 1 ya da 2 satir olsun, kart govdesi ayni kalir */
.card__meta--clip {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: .2rem; min-height: 2.9em;
}

.badge {
  display: inline-block; padding: .18rem .5rem; margin-bottom: .4rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; border-radius: 0;
  background: var(--steel-100); color: var(--ink-600);
}
.badge--01 { background: var(--orange-050); color: var(--orange-700); }
.badge--03 { background: #E3ECF9; color: #1B4E8F; }
.badge--07 { background: #E4F1E7; color: #23663A; }

.product-card .card__media { aspect-ratio: 1/1; }
.product-card .card__code { color: var(--ink); }
.card__glyph { width: 92px; height: 92px; color: #B3BAC2; transition: color .15s; }
.product-card:hover .card__glyph { color: var(--orange); }

/* ---------- Tablolar ---------- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  padding: .6rem .8rem; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
.spec-table tbody tr:nth-child(odd) { background: var(--steel-050); }
.spec-table th { width: 44%; font-weight: 600; color: var(--ink-600); font-size: .85rem; }
.spec-table td { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Sayfalama ---------- */
.pagination ul { display: flex; gap: 4px; list-style: none; padding: 0; margin: 2.5rem 0 0; flex-wrap: wrap; }
.pagination a {
  display: block; min-width: 40px; text-align: center; padding: .5rem .65rem;
  border: 1px solid var(--line); font-variant-numeric: tabular-nums;
  transition: border-color .15s, color .15s, background .15s;
}
.pagination a:hover { border-color: var(--ink); }
.pagination .is-active a { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .gap { padding: .5rem .3rem; color: var(--muted); }

/* ---------- Arama paneli: ölçü aleti gibi ---------- */
.search-panel-wrap { margin-top: -2.25rem; position: relative; z-index: 20; }
.search-panel {
  background: var(--white); border: 2px solid var(--ink);
  padding: 1.15rem 1.25rem 1.25rem; display: grid; gap: .9rem;
}
.search-panel__row { display: flex; gap: .85rem; align-items: flex-end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: .3rem; flex: 1 1 180px; min-width: 0; }
.field--grow { flex: 3 1 320px; }
.field--sm { flex: 0 1 158px; }
.field--xs { flex: 0 1 98px; }
.field > span { font-size: .74rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: .65rem .75rem;
  border: 1px solid var(--line); border-radius: 0;
  font: inherit; background: var(--white); color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: inset 0 -2px 0 0 var(--orange);
}
.field input[name="cap"], .field input[name="kod"] { font-variant-numeric: tabular-nums; }
.search-panel .btn { flex: 0 0 auto; align-self: stretch; padding-inline: 1.9rem; }

/* Cins sekmeleri */
.type-tabs { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 1.75rem; }
.type-tabs a {
  padding: .55rem 1.15rem; border: 1px solid var(--line); margin-right: -1px;
  font-family: var(--display); font-variation-settings: 'wdth' 104;
  font-size: .92rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  transition: background .15s, color .15s, border-color .15s;
}
.type-tabs a:hover { color: var(--orange); border-color: var(--ink-600); position: relative; z-index: 1; }
.type-tabs a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; position: relative; z-index: 1; }

.result-count { color: var(--muted); margin: 0 0 1.5rem; font-size: .92rem; }
.result-count strong { color: var(--ink); font-size: 1.2rem; font-weight: 600; }
.empty-state { color: var(--muted); padding: 2.5rem 0; }

/* Canlı öneri */
.suggest-wrap { position: relative; }
.suggest-list {
  position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 70;
  background: var(--white); border: 1px solid var(--ink);
  max-height: 340px; overflow-y: auto; display: none;
}
.suggest-list.is-open { display: block; }
.suggest-list a { display: block; padding: .6rem .85rem; border-bottom: 1px solid var(--line); }
.suggest-list a:last-child { border-bottom: 0; }
.suggest-list a:hover, .suggest-list a.is-active { background: var(--steel-050); box-shadow: inset 3px 0 0 0 var(--orange); }
.suggest-list .code { font-family: var(--display); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.suggest-list .meta { font-size: .82rem; color: var(--muted); }
.suggest-list .empty { padding: .7rem .85rem; color: var(--muted); font-size: .88rem; }

/* ---------- Ürün detay ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 3rem; align-items: start; }
.detail-media {
  background: var(--steel-050); border: 1px solid var(--line);
  padding: 2.25rem; display: grid; place-items: center; min-height: 320px;
}
.detail-media img { max-height: 420px; width: auto; cursor: zoom-in; mix-blend-mode: multiply; }
.detail-media .card__glyph { width: 150px; height: 150px; }
.detail-media__note { display: flex; align-items: center; gap: .8rem; margin: .85rem 0 0; color: var(--muted); font-size: .9rem; }
.detail-media__note .badge { margin: 0; }

.ring-table th, .ring-table td { width: auto; }
.ring-table thead th { font-size: .74rem; letter-spacing: .05em; color: var(--ink-600); }
.ring-thumb { height: 24px; width: auto; mix-blend-mode: multiply; }

.vehicles { font-weight: 600; margin: 0 0 .8rem; font-size: 1.05rem; overflow-wrap: anywhere; }
.app-list { columns: 3 210px; column-gap: 2.5rem; padding-left: 1.1rem; margin: 0 0 1rem; }
.app-list li { break-inside: avoid; margin-bottom: .25rem; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- Galeri ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 3px; }
.gallery-item { display: block; overflow: hidden; background: var(--steel-100); }
.gallery-item img {
  aspect-ratio: 4/3; object-fit: cover; width: 100%;
  transition: transform .4s ease, filter .3s; filter: saturate(.92);
}
.gallery-item:hover img { transform: scale(1.04); filter: saturate(1.05); }

/* Sertifika levhası */
.cert-card .card__media { --media-pad: .9rem; aspect-ratio: 3/4; background: var(--white); }
.cert-card .card__media img { mix-blend-mode: normal; }
/* Baslik uzunlugu degisse de sertifika kartlari ayni yukseklikte kalsin */
.cert-card .card__body {
  font-size: .85rem; line-height: 1.4; min-height: 4.2em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,22,24,.94); display: none; place-items: center; padding: 2rem; }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1.5rem; background: none; border: 0;
  color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer;
}

/* ---------- İletişim ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-table th { width: 32%; }
.contact-form { display: grid; gap: 1.1rem; }
.contact-form textarea { resize: vertical; min-height: 150px; }
.form-error { color: #B32419; font-size: .84rem; }
.form-ok { background: #E4F1E7; border-left: 4px solid #2E7D46; color: #1F5A32; padding: 1rem 1.15rem; margin-bottom: 1.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.map-embed { margin-top: 1.75rem; border: 1px solid var(--line); overflow: hidden; }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #A9AFB6; padding: 4rem 0 1.5rem; margin-top: 5rem;
  border-top: 4px solid var(--orange);
}
.site-footer h4 { color: #fff; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { transition: color .15s; }
.site-footer a:hover { color: var(--orange); }
.site-footer .grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.5rem; }
.site-footer p { margin: 0 0 .7rem; font-size: .92rem; line-height: 1.7; }
.site-footer .copy {
  border-top: 1px solid #34383C; margin-top: 3rem; padding-top: 1.35rem;
  font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-logo { height: 52px; width: auto; filter: brightness(0) invert(1); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .25rem 1.25rem 1.5rem; max-height: calc(100vh - var(--header-h));
    overflow-y: auto; display: none;
  }
  .nav.is-open { display: flex; }
  .nav > li { display: block; }
  .nav > li > a { min-height: 0; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav ul {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; border-left: 2px solid var(--line); padding: 0 0 .5rem 1rem; margin-left: .25rem;
  }
  .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .detail-media img { max-height: 300px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  body { font-size: 15px; }
  .section { padding: 3rem 0; }
  .page-head { padding: 2.25rem 0 2rem; }
  .site-footer { margin-top: 3rem; padding-top: 3rem; }
  .search-panel-wrap { margin-top: -1.5rem; }
  .field--sm, .field--xs { flex: 1 1 120px; }
  .search-panel .btn { width: 100%; }
}
@media (max-width: 480px) {
  .gallery-grid, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .app-list { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
