/* ==================================================================
   EMEA Technology | CODESYS Türkiye
   main.css — belirteçler, iskelet, başlık, alt bilgi, düğmeler,
   bloklar, SSS ve teklif bandı.

   ------------------------------------------------------------------
   TASARIM YÖNÜ — "sinematik endüstri"
   ------------------------------------------------------------------
   Rakip/ödüllü endüstri sitelerinde işi yapan şey tipografi değil,
   GÖRSEL. Bu sürümün omurgası:

   1. Tam taşan fotoğraf   — kahraman alan sayfa kenarına akar.
   2. Bento ızgara         — eşit kart dizisi yerine farklı boyda
                             hücreler; ikisi fotoğraflı.
   3. Aydınlık zemin       — beyaz taban, tek koyu dramatik bölüm.
   4. İri tipografi        — başlık mimarinin kendisi.
   5. Ölçülü hareket       — yalnızca görünüme girme; video/parallax yok.
   ================================================================== */

/* ---------- 1. Belirteçler --------------------------------------- */
:root {
  --bg:      #ffffff;
  --bg-2:    #f6f8fa;
  --bg-3:    #eef2f6;

  --ink:     #0b1a24;
  --ink-2:   #16303f;
  --body:    #4a5b68;
  --muted:   #78899a;
  --faint:   #a3b1be;

  --line:    #e4eaf0;
  --line-2:  #cfd9e2;

  --acc:      #009fe3;
  --acc-deep: #0079b4;
  --acc-wash: #e8f5fd;

  --ok:   #10794a;
  --warn: #9c6a08;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", Consolas, monospace;

  --shell: 1300px;
  --gap:   clamp(1rem, 1.8vw, 1.5rem);

  --r:    6px;
  --r-lg: 16px;

  --sh-1: 0 1px 2px rgba(11, 26, 36, .05);
  --sh-2: 0 8px 24px -12px rgba(11, 26, 36, .18);
  --sh-3: 0 24px 64px -28px rgba(11, 26, 36, .38);

  --ease: cubic-bezier(.22, .68, .35, 1);
}

/* ---------- 2. Sıfırlama ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 150px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--acc-deep); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--ink); }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.2rem; }
li { margin-bottom: .5em; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.16;
  font-weight: 700;
  margin: 0 0 .5em;
  text-wrap: balance;
  letter-spacing: -.035em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); line-height: 1.02; letter-spacing: -.048em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.8rem); line-height: 1.08; letter-spacing: -.042em; }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); letter-spacing: -.028em; }
h4 { font-size: clamp(1rem, 1.25vw, 1.1rem); letter-spacing: -.02em; font-weight: 600; }

strong, b { color: var(--ink); font-weight: 600; }

:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 3px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .8rem 1.3rem; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- 3. İskelet ------------------------------------------- */
.shell { width: min(100% - 2.6rem, var(--shell)); margin-inline: auto; }

.main { display: block; }

.band { padding: clamp(3.4rem, 6.5vw, 6.5rem) 0; position: relative; }
.band--tight { padding: clamp(2.4rem, 4vw, 3.6rem) 0; }
.band--panel { background: var(--bg-2); }
.band--grid  { background: var(--bg); }

/* Tek dramatik koyu bölüm — sayfanın nefes aldığı yer */
.band--deep {
  background: var(--ink);
  color: #b6c6d2;
}
.band--deep h1, .band--deep h2, .band--deep h3, .band--deep h4 { color: #fff; }
.band--deep .lede { color: #a3b7c5; }
.band--deep .eyebrow { color: #6fd0f7; }
.band--deep .eyebrow::before { background: var(--acc); }

/* ---------- 4. Bölüm başlıkları ---------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--acc-deep);
  margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--acc); flex: none; }

.lede { font-size: clamp(1.05rem, 1.3vw, 1.19rem); color: var(--muted); max-width: 58ch; }

.section-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 3.6vw, 3.4rem); }

/* Başlık + yandaki açıklama düzeni */
.section-head--split {
  max-width: none;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(1.4rem, 3vw, 4rem); align-items: end;
}
.section-head--split .eyebrow { grid-column: 1 / -1; }
.section-head--split h2 { margin-bottom: 0; }
.section-head--split .lede { margin: 0; padding-bottom: .35rem; }

/* ---------- 5. Düğmeler ------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: .97rem; font-weight: 600; letter-spacing: -.015em;
  padding: .92rem 1.7rem;
  border: 1.5px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease),
              color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--solid { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: var(--sh-2); }
.btn--solid:hover { background: var(--acc-deep); border-color: var(--acc-deep); color: #fff; box-shadow: var(--sh-3); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn--line { background: transparent; color: var(--acc-deep); border-color: var(--acc); }
.btn--line:hover { background: var(--acc-wash); }

.band--deep .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.band--deep .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.band--deep .btn--solid { background: var(--acc); border-color: var(--acc); color: #04202e; }
.band--deep .btn--solid:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Üst şerit, ana başlık ve menü kuralları assets/css/header.css icindedir. */

/* ---------- 8. Kırıntı ------------------------------------------- */
.crumbs { padding: 1.5rem 0 0; }
.crumbs__list {
  display: flex; flex-wrap: wrap; gap: .45rem;
  list-style: none; margin: 0; padding: 0;
  font-size: .86rem; color: var(--muted);
}
.crumbs__item { margin: 0; }
.crumbs__item + .crumbs__item::before { content: "/"; margin-right: .45rem; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--acc-deep); }

/* ---------- 9. Bloklar ve ızgaralar ------------------------------ */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); }

.panel {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.2vw, 2.1rem);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.panel:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-3px); }
.band--panel .panel { background: #fff; }

.panel__idx {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .73rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--acc-deep);
  margin-bottom: .95rem;
}
.panel__title { margin-bottom: .5em; }
.panel p { color: var(--body); font-size: .985rem; }
.panel p:last-child { margin-bottom: 0; }

/* ---------- 10. Etiket ------------------------------------------- */
.tag {
  display: inline-block;
  font-size: .82rem; font-weight: 500;
  padding: .3rem .8rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--body);
}
.tag--live { border-color: #a6d9c0; background: #eef8f3; color: var(--ok); }
.tag--warn { border-color: #e3cfa2; background: #fdf7ea; color: var(--warn); }

.taglist { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0 0 1.4rem; list-style: none; }
.taglist li { margin: 0; }

/* ---------- 11. Veri şeridi -------------------------------------- */
.datastrip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.datastrip--spaced { margin-top: clamp(1.8rem, 3vw, 2.8rem); }
.datastrip__cell { padding: 1.6rem 1.6rem 1.7rem; border-right: 1px solid var(--line); }
.datastrip__cell:last-child { border-right: 0; }
.datastrip__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3vw, 2.7rem); font-weight: 700;
  color: var(--ink); line-height: 1; margin-bottom: .5rem; letter-spacing: -.055em;
}
.datastrip__num span { color: var(--acc); font-size: .44em; font-weight: 600; letter-spacing: -.02em; }
.datastrip__cap { font-size: .84rem; color: var(--muted); margin: 0; font-weight: 500; }

.band--deep .datastrip { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.band--deep .datastrip__cell { border-right-color: rgba(255,255,255,.12); }
.band--deep .datastrip__num { color: #fff; }
.band--deep .datastrip__cap { color: #93a8b8; }

/* ---------- 12. SSS ---------------------------------------------- */
.qa-block { margin-top: clamp(2.6rem, 4vw, 3.8rem); }
.qa-block__title { margin-bottom: 1.3rem; }
.qa-list { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }

.qa-item { border-bottom: 1px solid var(--line); }
.qa-item:last-child { border-bottom: 0; }
.qa-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1.3rem;
  padding: 1.2rem 1.5rem;
  cursor: pointer; list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.3vw, 1.13rem); font-weight: 600; letter-spacing: -.028em;
  color: var(--ink);
  transition: background .16s var(--ease);
}
.qa-item__q::-webkit-details-marker { display: none; }
.qa-item__q:hover { background: var(--bg-2); }
.qa-item[open] .qa-item__q { background: var(--bg-2); }

.qa-item__sign { position: relative; flex: none; width: 14px; height: 14px; }
.qa-item__sign::before, .qa-item__sign::after {
  content: ""; position: absolute; background: var(--acc); border-radius: 2px;
  transition: transform .2s var(--ease);
}
.qa-item__sign::before { top: 6px; left: 0; width: 14px; height: 2px; }
.qa-item__sign::after  { left: 6px; top: 0; width: 2px; height: 14px; }
.qa-item[open] .qa-item__sign::after { transform: scaleY(0); }

.qa-item__a { padding: 0 1.5rem 1.4rem; max-width: 80ch; }
.qa-item__a p { color: var(--body); margin: 0; }

/* ---------- 13. Teklif bandı — fotoğraflı koyu blok -------------- */
.cta-rail {
  position: relative;
  margin-top: clamp(2.8rem, 4vw, 4rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    linear-gradient(105deg, var(--ink) 38%, rgba(11, 26, 36, .82) 62%, rgba(11, 26, 36, .55) 100%),
    url("../img/genis-hat.jpg") center/cover no-repeat;
}
.cta-rail__inner { padding: clamp(2rem, 4vw, 3.4rem); max-width: 60ch; }
.cta-rail__kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #6fd0f7; margin: 0 0 1rem;
}
.cta-rail__kicker::before { content: ""; width: 20px; height: 2px; background: var(--acc); }
.cta-rail__title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.3rem); font-weight: 700;
  color: #fff; line-height: 1.1; margin: 0 0 .75rem; letter-spacing: -.042em;
}
.cta-rail__text { color: #b0c2ce; margin: 0 0 1.8rem; }
.cta-rail__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.cta-rail .btn--solid { background: var(--acc); border-color: var(--acc); color: #04202e; }
.cta-rail .btn--solid:hover { background: #fff; border-color: #fff; color: var(--ink); }
.cta-rail .btn--ghost { color: #fff; border-color: rgba(255,255,255,.34); }
.cta-rail .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* ---------- 14. Alt bilgi ---------------------------------------- */
.foot { background: var(--ink); color: #93a8b8; padding: clamp(3.2rem, 5vw, 4.6rem) 0 1.9rem; font-size: .95rem; }
.foot a { color: #c4d4e0; }
.foot a:hover { color: #fff; }

.foot__top {
  display: grid; gap: clamp(1.7rem, 3vw, 2.8rem);
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}
.foot__logo { margin: 0 0 .55rem; }
.foot__logo img { width: 168px; height: auto; }
.foot__claim { font-size: .78rem; color: #6fd0f7; margin: 0 0 1.1rem; letter-spacing: .09em; font-weight: 500; }
.foot__pitch { color: #8ba1b2; font-size: .93rem; max-width: 38ch; }
.foot__social { display: flex; gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.foot__social li { margin: 0; }
.foot__social a {
  font-family: var(--font-display); font-size: .81rem; font-weight: 600; letter-spacing: .04em;
  border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 2px;
}
.foot__social a:hover { border-color: var(--acc); }

.foot__title {
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 600; color: #fff; letter-spacing: -.02em;
  margin: 0 0 1.1rem; padding-bottom: .6rem;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.foot__list, .foot__contact { list-style: none; padding: 0; margin: 0; }
.foot__list li, .foot__contact li { margin-bottom: .55rem; }
.foot__list a { font-size: .93rem; }

.foot__office { margin-bottom: 1.1rem; }
.foot__office-label { display: block; font-size: .76rem; font-weight: 600; color: #6fd0f7; letter-spacing: .07em; margin-bottom: .3rem; }
.foot__address { font-style: normal; color: #8ba1b2; font-size: .91rem; line-height: 1.6; }
.foot__strong { color: #fff; font-weight: 600; }

.foot__bottom {
  padding-top: 1.7rem;
  display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; align-items: baseline;
  color: #7c92a4; font-size: .85rem;
}
.foot__bottom p { margin: 0; }
.foot__note { max-width: 62ch; color: #6d8496; font-size: .81rem; }

/* ---------- 15. Yüzen arama düğmesi ------------------------------ */
.callback {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 70;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.35rem;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  box-shadow: var(--sh-3);
}
.callback:hover { background: var(--acc-deep); color: #fff; }
.callback__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); flex: none; }

/* ---------- 16. Görünüme girme ----------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }

/* ---------- 17. Duyarlılık --------------------------------------- */
@media (max-width: 1040px) {
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
  .foot__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .datastrip__cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .datastrip__cell:last-child { border-bottom: 0; }
  .foot__top { grid-template-columns: 1fr; }
  .callback__text { display: none; }
  .callback { padding: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
