/* ==========================================================================
   Cemsa Demir — Kurumsal Web Sitesi
   Tek dosya tasarım sistemi. Harici bağımlılık yok (font/CDN/JS kütüphanesi).
   ========================================================================== */

/* ---------- Tasarım belirteçleri ---------- */
:root {
  --ink:        #0b0f14;
  --ink-2:      #141b23;
  --ink-3:      #1d262f;
  --paper:      #ffffff;
  --paper-2:    #f5f7f9;
  --paper-3:    #eceff3;

  --text:       #141a21;
  --text-soft:  #4d5a68;
  --text-mute:  #7c8794;
  --on-dark:    #e9eef4;
  --on-dark-soft:#9aa8b8;

  --accent:     #d4692a;
  --accent-600: #b9541c;
  --accent-200: #f6d9c6;
  --accent-50:  #fdf3ec;

  --line:       #dfe4ea;
  --line-dark:  rgba(255,255,255,.10);

  --radius:     4px;
  --radius-lg:  8px;

  --wrap:       1180px;
  --gap:        clamp(1.25rem, 3vw, 2.5rem);

  --shadow-sm:  0 1px 2px rgba(11,15,20,.06), 0 2px 8px rgba(11,15,20,.04);
  --shadow-md:  0 4px 12px rgba(11,15,20,.07), 0 12px 32px rgba(11,15,20,.07);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Sıfırlama ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.022em; font-weight: 700; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; }

/* ---------- Erişilebilirlik ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: #fff; padding: .75rem 1.25rem; font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Düzen ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--alt  { background: var(--paper-2); }

/* ---------- Başlık blokları ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-600); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); flex: none; }
.section--dark .eyebrow { color: #e9944f; }

.s-title { font-size: clamp(1.75rem, 3.6vw, 2.75rem); max-width: 22ch; }
.s-lede  { margin-top: 1rem; font-size: clamp(1rem, 1.4vw, 1.125rem); color: var(--text-soft); max-width: 62ch; }
.section--dark .s-lede { color: var(--on-dark-soft); }
.s-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .875rem 1.6rem; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 650; font-size: .95rem; letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-600); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.section--dark .btn--ghost,
.hero .btn--ghost,
.page-head .btn--ghost,
.cta-band .btn--ghost { border-color: var(--line-dark); color: var(--on-dark); }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-head .btn--ghost:hover,
.cta-band .btn--ghost:hover { border-color: var(--on-dark); background: rgba(255,255,255,.04); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Üst bar ---------- */
.topbar {
  background: var(--ink-2); color: var(--on-dark-soft);
  font-size: .8125rem; border-bottom: 1px solid var(--line-dark);
}
.topbar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 40px; }
.topbar__list { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; list-style: none; }
.topbar__list li { display: inline-flex; align-items: center; gap: .45rem; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; flex: none; opacity: .75; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 74px; }

/* Logotype (SVG yerine tipografik marka) */
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand__mark {
  width: 38px; height: 38px; flex: none; border-radius: 3px;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-600) 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: -.03em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--text); }
.brand__sub  { font-size: .625rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); }

/* Nav */
.nav { display: flex; align-items: center; gap: .25rem; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; }
.nav__link {
  display: block; padding: .55rem .9rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 550; font-size: .94rem; color: var(--text-soft);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--paper-2); }
.nav__link[aria-current="page"] { color: var(--accent-600); font-weight: 650; }

/* Menü içindeki CTA yalnızca mobil panelde görünür (masaüstünde header__cta kullanılır) */
.nav > .btn { display: none; }

.header__cta { display: inline-flex; align-items: center; gap: .55rem; }

/* Mobil menü */
.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: var(--radius); background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex: none;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: background .2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text);
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top:  6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 auto 0; top: var(--header-offset, 74px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .75rem clamp(1rem, 4vw, 2rem) 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    max-height: calc(100dvh - var(--header-offset, 74px)); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: .85rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav > .btn { display: inline-flex; margin-top: 1rem; width: 100%; }
  .header__cta .btn--primary { display: none; }
}
@media (max-width: 480px) {
  .brand__sub { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--on-dark);
  overflow: hidden; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 60% at 78% 8%, rgba(212,105,42,.30), transparent 60%),
    radial-gradient(ellipse 60% 50% at 8% 95%, rgba(80,110,145,.22), transparent 62%);
}
/* İnce çelik ızgara dokusu — tamamen CSS, ek istek yok */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 35%, transparent 100%);
}
.hero__in { padding-block: clamp(4rem, 11vw, 8rem); position: relative; }
.hero__title {
  font-size: clamp(2.2rem, 6vw, 4.15rem); letter-spacing: -.032em; max-width: 17ch;
}
.hero__title em { font-style: normal; color: #ef9750; }
.hero__lede { margin-top: 1.5rem; font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--on-dark-soft); max-width: 56ch; }
.hero .btn-row { margin-top: 2.25rem; }

.hero__stats {
  margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.75rem 2rem;
  list-style: none;
}
.hero__stats dt { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.hero__stats dd { margin: .3rem 0 0; font-size: .875rem; color: var(--on-dark-soft); }

/* ---------- Kartlar / ızgaralar ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
/* İki sütun sabit: çift sayıda kart hep dengeli dizilsin */
.grid--2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.card:hover { border-color: var(--accent-200); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__icon {
  width: 46px; height: 46px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--accent-50); color: var(--accent-600); margin-bottom: 1.15rem;
}
.card__icon svg { width: 23px; height: 23px; }
.card__title { font-size: 1.2rem; margin-bottom: .6rem; }
.card__text  { color: var(--text-soft); font-size: .95rem; }
.card__list  { list-style: none; margin-top: 1.15rem; display: grid; gap: .5rem; }
.card__list li {
  position: relative; padding-left: 1.4rem; font-size: .9rem; color: var(--text-soft);
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .58em; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
}
.section--alt .card { background: var(--paper); }

/* Ürün kategori kartı */
.pcard {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 1.9rem);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.pcard:hover { border-color: var(--accent-200); box-shadow: var(--shadow-sm); }
.pcard__head { display: flex; align-items: center; gap: .85rem; }
.pcard__num {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--accent-600);
  background: var(--accent-50); padding: .3rem .55rem; border-radius: 3px; flex: none;
}
.pcard__title { font-size: 1.1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.tags li {
  font-size: .8125rem; color: var(--text-soft);
  background: var(--paper-2); border: 1px solid var(--line);
  padding: .3rem .65rem; border-radius: 999px;
}

/* ---------- Özellik satırı (neden biz) ---------- */
.feature { display: flex; gap: 1.1rem; align-items: flex-start; }
.feature__icon {
  width: 40px; height: 40px; flex: none; border-radius: var(--radius); display: grid; place-items: center;
  background: rgba(212,105,42,.14); color: #ef9750;
}
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.feature p { font-size: .925rem; color: var(--on-dark-soft); }

/* ---------- Süreç adımları ---------- */
.steps { list-style: none; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.steps li { position: relative; padding-top: 2.6rem; border-top: 2px solid var(--line); counter-increment: step; }
.steps li::before {
  content: "0" counter(step); position: absolute; top: 1rem; left: 0;
  font-size: .8125rem; font-weight: 800; letter-spacing: .1em; color: var(--accent-600);
}
.steps h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.steps p  { font-size: .9rem; color: var(--text-soft); }

/* ---------- CTA bandı ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  color: var(--on-dark); border-radius: var(--radius-lg); overflow: hidden;
  padding: clamp(2.25rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.75rem;
}
.cta-band h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); max-width: 20ch; }
.cta-band p { margin-top: .6rem; color: var(--on-dark-soft); max-width: 46ch; font-size: .975rem; }

/* ---------- İletişim ---------- */
.contact-grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }

.info-list { list-style: none; display: grid; gap: 1.5rem; }
.info-list__item { display: flex; gap: 1rem; align-items: flex-start; }
.info-list__icon {
  width: 40px; height: 40px; flex: none; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--accent-50); color: var(--accent-600);
}
.info-list__icon svg { width: 19px; height: 19px; }
.info-list dt { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: .3rem; }
.info-list dd { margin: 0; font-size: 1rem; font-weight: 550; }
.info-list dd a { text-decoration: none; }
.info-list dd a:hover { color: var(--accent-600); text-decoration: underline; }
.info-list dd span { display: block; font-weight: 400; color: var(--text-soft); font-size: .925rem; }

/* Form */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: .45rem; }
.field label { font-size: .8125rem; font-weight: 650; color: var(--text-soft); }
.field label .req { color: var(--accent-600); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--text);
  padding: .8rem .95rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-50);
}
.form__consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .85rem; color: var(--text-soft); }
.form__consent input { width: 17px; height: 17px; margin-top: .2rem; flex: none; accent-color: var(--accent); }
.form__note { font-size: .8125rem; color: var(--text-mute); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 1rem 1.15rem; border-radius: var(--radius); font-size: .925rem; border: 1px solid; }
.alert--ok   { background: #edf7f0; border-color: #bfe3cc; color: #1c5c33; }
.alert--err  { background: #fdf0ee; border-color: #f2c7bf; color: #8a2d1c; }

.map { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- İçerik tipografisi (kurumsal sayfa) ---------- */
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.15rem; }
.prose p { color: var(--text-soft); font-size: 1.0625rem; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 2.75rem; margin-bottom: .9rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin-top: 1rem; list-style: none; display: grid; gap: .6rem; }
.prose ul li { position: relative; padding-left: 1.55rem; color: var(--text-soft); }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px;
  background: var(--accent); border-radius: 1px; transform: rotate(45deg);
}

.pull {
  border-left: 3px solid var(--accent); padding: .25rem 0 .25rem 1.5rem; margin: 2rem 0;
  font-size: 1.15rem; font-weight: 550; color: var(--text); line-height: 1.5;
}

/* ---------- Sayfa başlığı (iç sayfalar) ---------- */
.page-head {
  background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate;
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 100% at 85% 0%, rgba(212,105,42,.26), transparent 65%);
}
.page-head__in { padding-block: clamp(3rem, 7vw, 5rem); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); max-width: 20ch; }
.page-head p { margin-top: 1rem; color: var(--on-dark-soft); max-width: 58ch; font-size: clamp(1rem, 1.4vw, 1.125rem); }

/* Breadcrumb */
.crumbs { font-size: .8125rem; margin-bottom: 1.25rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.crumbs a { color: var(--on-dark-soft); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li[aria-current] { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: rgba(255,255,255,.3); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-soft); font-size: .925rem; }
.footer__top {
  display: grid; gap: clamp(2rem, 5vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  padding-block: clamp(3rem, 6vw, 4.25rem);
}
.footer__brand { max-width: 34ch; }
.footer .brand__name { color: #fff; }
.footer .brand__sub  { color: var(--on-dark-soft); }
.footer__about { margin-top: 1.1rem; font-size: .9rem; line-height: 1.7; }
.footer h3 {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; margin-bottom: 1.1rem;
}
.footer ul { list-style: none; display: grid; gap: .6rem; }
.footer a { text-decoration: none; transition: color .18s var(--ease); }
.footer a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid var(--line-dark); padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between;
  font-size: .8125rem;
}
.footer__bottom p { color: var(--text-mute); }

/* ---------- 404 ---------- */
.err { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.err__code { font-size: clamp(4.5rem, 14vw, 8.5rem); font-weight: 800; letter-spacing: -.05em; color: var(--accent); line-height: 1; }

/* ---------- Görünüm animasyonu ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Yazdırma ---------- */
@media print {
  .header, .topbar, .footer, .burger, .cta-band, .map { display: none !important; }
  body { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
