/* ============================================================
   BAKASAN KAĞIT — Kurumsal Site
   Marka renk sistemi (logodan türetildi):
   Beyaz zemin · Altın/bronz #AB9668 · Lacivert #1E3A6E
   Koyu bölümler lacivert tonları · Başlık #22304A
   ============================================================ */

:root {
  --primary:      #ab9668;   /* bakasan altın/bronz */
  --primary-dark: #92805a;
  --navy:         #1e3a6e;   /* bakasan lacivert */
  --navy-deep:    #16294d;
  --accent:       var(--navy);
  --title:        #22304a;
  --text:         #6f7683;
  --dark:         #1c2b4a;   /* koyu bölüm — lacivert */
  --darker:       #142038;
  --light:        #f7f5f1;   /* hafif sıcak açık zemin */
  --white:        #ffffff;
  --line:         #e9e5dd;

  --font-head: "Cabin", Arial, Helvetica, sans-serif;
  --font-body: "Lato", Arial, Helvetica, sans-serif;

  --container: 1222px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }

::selection { background: var(--primary); color: #fff; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px;
}
h1,h2,h3,h4,h5 { font-family: var(--font-head); color: var(--title); line-height: 1.25; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 14px; letter-spacing: .02em; padding: 12px 28px;
  border-radius: 3px; border: none; cursor: pointer;
  transition: all .25s ease; text-align: center;
}
.btn-lg { padding: 15px 36px; font-size: 15px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30,58,110,.35); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--title); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--dark); color: #bbb; font-size: 12.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 1rem; }
.topbar-right { display: flex; gap: 1.4rem; }
.topbar a { color: #ccc; transition: color .2s; }
.topbar a:hover { color: var(--primary); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.header-inner { display: flex; align-items: center; gap: 2.5rem; height: 90px; }
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand-img { height: 66px; width: auto; display: block; }
/* Şeffaf header'da logo okunsun diye beyaz plaka */
.brand { padding: 3px 16px; border-radius: 10px; }
body.hdr-clear:not(.hdr-solid) .brand { background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.18); }
.brand-icon {
  width: 34px; height: 42px; flex: none;
  background: var(--primary);
  clip-path: polygon(18% 0, 92% 22%, 60% 100%, 0 78%);
  position: relative;
}
.brand-icon::after {
  content: ""; position: absolute; right: 2px; bottom: 4px;
  width: 14px; height: 18px; background: var(--navy); border-radius: 50%;
  transform: rotate(-18deg);
}
.brand-block { display: flex; flex-direction: column; line-height: 1; }
.brand-text {
  font-family: var(--font-head); font-weight: 700; font-size: 1.7rem;
  color: var(--primary); letter-spacing: .01em;
}
.brand-text b { color: var(--navy); font-weight: 700; }
.brand-sub {
  font-family: var(--font-head); font-weight: 600; font-size: 8.5px;
  letter-spacing: .18em; color: var(--title); margin-top: 4px;
}
.brand-sub.light { color: #9aa5ba; }

.nav { display: flex; gap: 2rem; }
.nav li { display: contents; list-style: none; } /* WordPress wp_nav_menu uyumu */
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--title); text-transform: uppercase; letter-spacing: .03em;
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--primary); transition: width .25s ease;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--title); border-radius: 2px; }

/* ---------- Açılır menü (Kurumsal alt menüsü) ---------- */
.nav-item { position: relative; }
/* Üst link diğer menü öğeleriyle aynı hizada dursun */
.nav-item > a { display: inline-block; }
.nav-item .caret { font-size: 10px; margin-left: 3px; }
.sub-menu {
  position: absolute; top: 100%; left: -18px; min-width: 190px; z-index: 1001;
  background: var(--white); border-top: 3px solid var(--primary);
  box-shadow: 0 14px 30px rgba(0,0,0,.14); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
/* Link ile menü arasındaki boşlukta hover kopmasın */
.sub-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav .sub-menu a { display: block; padding: 10px 18px; font-size: 13px; }
.nav .sub-menu a::after { display: none; }
/* Şeffaf header modunda da alt menü linkleri koyu kalır (zemin beyaz) */
body.hdr-clear:not(.hdr-solid) .nav .sub-menu a { color: var(--title); }
body.hdr-clear:not(.hdr-solid) .nav .sub-menu a:hover { color: var(--primary); }

/* ============================================================
   ŞEFFAF HEADER MODU — GERİ ALINABİLİR
   Aktif: <body class="hdr-clear">  (index.html)
   Geri almak için body'den "hdr-clear" sınıfını silmeniz yeterli;
   header eski beyaz/sticky haline döner. WordPress'te ise
   functions.php içindeki "Şeffaf header" body_class filtresini silin.
   ============================================================ */
body.hdr-clear .topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1002;
  background: transparent; border-bottom: 1px solid rgba(255,255,255,.14);
}
body.hdr-clear .topbar span { color: rgba(255,255,255,.75); }
body.hdr-clear .topbar a { color: rgba(255,255,255,.85); }
body.hdr-clear .topbar a:hover { color: #cbb98e; }
body.hdr-clear .site-header {
  position: fixed; top: 37px; left: 0; right: 0;
  background: transparent; box-shadow: none;
  transition: background .35s ease, box-shadow .35s ease, top .35s ease;
}
/* Video üzerindeyken (henüz scroll edilmemiş) yazılar beyaz */
body.hdr-clear:not(.hdr-solid) .nav a { color: #fff; }
body.hdr-clear:not(.hdr-solid) .nav a:hover,
body.hdr-clear:not(.hdr-solid) .nav a.active { color: #cbb98e; }
body.hdr-clear:not(.hdr-solid) .brand-text b { color: #fff; }
body.hdr-clear:not(.hdr-solid) .brand-sub { color: rgba(255,255,255,.85); }
body.hdr-clear:not(.hdr-solid) .nav-toggle span { background: #fff; }
/* Scroll sonrası: header yukarı yapışır, beyaza döner */
body.hdr-clear.hdr-solid .site-header {
  top: 0; background: rgba(255,255,255,.97); box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
/* Hero tam ekran; içerik header'ın altından başlar
   (svh: mobil tarayıcıda adres çubuğunu hesaba katar) */
body.hdr-clear .hero { min-height: 100vh; min-height: 100svh; }
body.hdr-clear .hero-content { padding-top: 160px; }
@media (max-width: 900px) {
  /* Mobil menü beyaz zeminde açıldığı için yazılar koyu kalır */
  body.hdr-clear:not(.hdr-solid) .nav a { color: var(--title); }
  body.hdr-clear .site-header { top: 34px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100vh - 124px); min-height: calc(100svh - 124px);
  display: flex; align-items: center; overflow: hidden;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-fallback {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(110% 90% at 85% 15%, rgba(171,150,104,.5) 0%, transparent 55%),
    radial-gradient(100% 100% at 10% 90%, rgba(30,58,110,.55) 0%, transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.045) 0 2px, transparent 2px 26px),
    linear-gradient(150deg, #2b3d63 0%, var(--darker) 70%);
  animation: heroDrift 16s ease-in-out infinite alternate;
}
@keyframes heroDrift { to { background-position: 50px 20px, -40px 10px, 30px 0, 0 0; } }
/* Video oynuyorsa arkadaki animasyonlar durur (performans) */
.hero.video-on .hero-fallback { animation: none; }
.corp-media.video-on .corp-fallback span { animation: none; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(16,26,46,.85) 0%, rgba(16,26,46,.55) 50%, rgba(16,26,46,.25) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 60px; }
.hero-tag {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: 13px; letter-spacing: .22em; color: #cbb98e;
  border: 1px solid rgba(171,150,104,.55); padding: 8px 18px; border-radius: 2px;
  margin-bottom: 26px; background: rgba(171,150,104,.1);
}
.hero-title {
  color: #fff; font-weight: 700;
  font-size: clamp(2.4rem, 6.2vw, 4.6rem); line-height: 1.08;
  margin-bottom: 22px; text-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.hero-sub { color: rgba(255,255,255,.85); font-size: clamp(15px, 1.5vw, 18px); max-width: 560px; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Açılış logo animasyonu ---------- */
.hero-intro {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  animation: hiOut .8s ease 2.3s forwards;
}
.hi-icon {
  width: 78px; height: 96px; position: relative;
  background: var(--primary);
  clip-path: polygon(18% 0, 92% 22%, 60% 100%, 0 78%);
  animation: hiIconIn .9s cubic-bezier(.2,.9,.3,1.25) both;
}
.hi-icon::after {
  content: ""; position: absolute; right: 5px; bottom: 9px;
  width: 32px; height: 41px; background: var(--navy); border-radius: 50%;
  transform: rotate(-18deg);
}
.hi-text {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.2rem); color: #fff; line-height: 1;
  animation: hiTextIn 1s ease .35s both;
}
.hi-text b { color: var(--primary); font-weight: 700; }
.hi-bar {
  height: 4px; background: var(--primary); border-radius: 2px;
  animation: hiBarIn .7s ease .95s both;
}
@keyframes hiIconIn { from { opacity: 0; transform: translateY(-50px) rotate(-26deg) scale(.35); } to { opacity: 1; transform: none; } }
@keyframes hiTextIn { from { opacity: 0; letter-spacing: .45em; } to { opacity: 1; letter-spacing: .02em; } }
@keyframes hiBarIn { from { width: 0; } to { width: 180px; } }
@keyframes hiOut { to { opacity: 0; transform: translateY(-36px) scale(.96); visibility: hidden; } }
/* Hero yazısı, logo animasyonu bittikten sonra girer */
.hero .hero-content { opacity: 0; transform: translateY(26px); animation: heroContentIn .9s ease 1.8s forwards; }
@keyframes heroContentIn { to { opacity: 1; transform: none; } }
/* Animasyon bu oturumda zaten oynadıysa (JS sınıfı) veya azaltılmış hareket tercihi varsa */
body.intro-done .hero .hero-content { opacity: 1; transform: none; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-intro { display: none; }
  .hero .hero-content { opacity: 1; transform: none; animation: none; }
}

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; z-index: 2;
}
.hero-scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--primary); border-radius: 2px; animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot { 50% { transform: translateY(14px); opacity: .3; } }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 55px; }
.section-tag {
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .25em; color: var(--primary); margin-bottom: 10px;
}
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
.title-bar {
  display: block; width: 56px; height: 4px; background: var(--primary);
  border-radius: 2px; margin: 18px auto 0;
}
.title-bar.left { margin-left: 0; }
.title-bar.center { margin-left: auto; margin-right: auto; }
.section-head.light .section-title { color: #fff; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.product-card {
  background: var(--white); border-radius: 6px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.pc-img { position: relative; height: 200px; }
.pc-badge {
  position: absolute; top: 14px; left: 14px; background: var(--primary); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  padding: 4px 12px; border-radius: 3px;
}
/* Ürün kartı görselleri: tesisin kendi çekimlerinden kesitler */
.img-kuse   { background: url("../assets/urun-kuse.jpg") center/cover no-repeat; }
.img-bristol{ background: url("../assets/urun-bristol.jpg") center/cover no-repeat; }
.img-krome  { background: url("../assets/urun-krome.jpg") center/cover no-repeat; }
.img-hamur  { background: url("../assets/urun-hamur.jpg") center/cover no-repeat; }
.img-testliner { background: url("../assets/urun-testliner.jpg") center/cover no-repeat; }
.pc-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.25), transparent 55%);
}
.pc-body { padding: 24px 22px 26px; }
.pc-body h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.pc-body p { font-size: 14px; margin-bottom: 16px; }
.pc-link {
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
  color: var(--primary); text-transform: uppercase; letter-spacing: .04em;
}
.pc-link b { transition: transform .2s; display: inline-block; }
.product-card:hover .pc-link b { transform: translateX(5px); }

/* ---------- Stats (dark band) ---------- */
.stats {
  /* Sevkiyat mesajı: bandın arkasında yükleme yapan BAKASAN tırı, koyu lacivert örtüyle.
     Dikey konum: aracın alt kısmı da bant içinde görünsün. */
  background: linear-gradient(rgba(20,32,56,.72), rgba(20,32,56,.8)),
              url("../assets/sevkiyat-band.jpg") center 45%/cover no-repeat;
  padding: 44px 0;
}
/* SEÇENEK B — İletişim arkasında silik sevkiyat görseli (beğenilmeyen kaldırılacak) */
#iletisim {
  background: linear-gradient(rgba(255,255,255,.93), rgba(255,255,255,.96)),
              url("../assets/sevkiyat.jpg") center 30%/cover no-repeat;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-icon {
  display: inline-grid; place-items: center; width: 58px; height: 58px;
  border: 2px solid var(--primary); color: var(--primary);
  border-radius: 50%; font-size: 1.5rem; margin-bottom: 14px;
}
.stat h4 { color: #fff; font-size: 17px; margin-bottom: 6px; }
.stat p { color: rgba(255,255,255,.72); font-size: 13.5px; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--primary);
  border-radius: 6px; padding: 34px 30px; transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.1); }
.service-icon {
  display: inline-grid; place-items: center; width: 60px; height: 60px;
  background: rgba(171,150,104,.15); color: var(--primary-dark);
  border-radius: 50%; font-size: 1.5rem;
}
.service-card h3 { font-size: 21px; font-weight: 700; }
.service-card p { font-size: 14.5px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.spec-table th {
  font-family: var(--font-head); font-weight: 700; color: #fff; background: var(--navy);
  font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
}
.spec-table td { color: var(--title); }
.spec-table tr:nth-child(even) td { background: var(--light); }
/* Hizmet kartındaki küçük makine görselleri */
.machine-thumbs { display: flex; gap: 14px; }
.machine-thumbs figure { margin: 0; }
.machine-thumbs img {
  width: 150px; aspect-ratio: 480/312; object-fit: cover; display: block;
  border-radius: 4px; border: 1px solid var(--line);
}
.machine-thumbs figcaption {
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  color: var(--text); margin-top: 6px; text-align: center;
}

.size-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--primary); color: var(--primary-dark);
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
  padding: 7px 16px; border-radius: 3px;
}
.chip.alt { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Production flow ---------- */
.flow-wrap { margin-top: 80px; }
.flow { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.flow-node {
  border: 2px solid var(--navy); border-radius: 5px; padding: 14px 22px;
  font-family: var(--font-head); font-weight: 700; font-size: 14.5px;
  color: var(--title); background: var(--white); text-align: center; line-height: 1.3;
}
.flow-node small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 11.5px; color: var(--text); margin-top: 3px; }
.flow-node.gold { border-color: var(--primary); background: rgba(171,150,104,.08); }
.flow-arrow { color: var(--primary-dark); font-size: 1.5rem; font-weight: 700; }
.flow-branch { display: flex; flex-direction: column; gap: 16px; }
.flow-path { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.flow-tag {
  font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .14em;
  color: #fff; padding: 4px 12px; border-radius: 2px;
}
.flow-tag.urun { background: var(--primary); }
.flow-tag.hizmet { background: var(--navy); }
.flow-note { max-width: 760px; margin: 34px auto 0; text-align: center; font-size: 14.5px; }
.flow-note b { color: var(--title); }

/* ---------- İç sayfa (WordPress single/page) ---------- */
.page-band {
  background: linear-gradient(rgba(20,32,56,.92), rgba(20,32,56,.92)),
              repeating-linear-gradient(45deg, #24365c 0 3px, #1c2b4a 3px 30px);
  padding: 64px 0;
}
.page-band h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-band .crumbs { color: rgba(255,255,255,.65); font-size: 13.5px; margin-bottom: 10px; }
.page-band .crumbs a { color: #cbb98e; }
.entry-wrap { max-width: 860px; margin: 0 auto; padding: 70px 20px; }
.entry-content h3 {
  font-size: 20px; margin: 34px 0 12px; padding-left: 14px;
  border-left: 4px solid var(--primary);
}
.entry-content h3:first-child { margin-top: 0; }
.entry-content p { margin-bottom: 14px; }
.entry-content ul { margin: 0 0 16px 22px; }
.entry-content li { margin-bottom: 7px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; }
.entry-content th, .entry-content td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); }
.entry-content th { background: var(--navy); color: #fff; font-family: var(--font-head); }
.entry-back { display: inline-block; margin-top: 34px; }
.page-quote {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--navy);
  border-left: 4px solid var(--primary); padding: 6px 0 6px 20px; margin: 0 0 26px;
  line-height: 1.4;
}
.value-icon { font-size: 1.3rem; margin-right: 8px; }

/* ---------- Corporate ---------- */
.corp { background: var(--light); }
.corp-grid { display: grid; grid-template-columns: 1.4fr 1.15fr 0.75fr; gap: clamp(1.6rem, 3.5vw, 3.2rem); align-items: center; }
.corp .section-head { text-align: left; }
.corp-text .section-tag { margin-bottom: 8px; }
.corp-text .section-title { margin-bottom: 0; }
.corp-lead { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--title); margin: 24px 0 14px; }
.corp-body { margin-bottom: 22px; }
.corp-list { list-style: none; margin-bottom: 30px; }
.corp-list li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px dashed var(--line); font-size: 14.5px; color: #555; }
.corp-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700;
}
.corp-media { position: relative; }
.corp-video { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 6px; position: relative; z-index: 1; box-shadow: var(--shadow); }
.corp-fallback {
  position: absolute; inset: 0; border-radius: 6px; z-index: 0;
  background: linear-gradient(140deg, #caa26c 0%, #8f6b40 100%);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.corp-fallback span {
  width: 74px; height: 74px; display: grid; place-items: center;
  background: var(--navy); color: #fff; border-radius: 50%; font-size: 1.5rem;
  box-shadow: 0 0 0 12px rgba(30,58,110,.25); animation: pulse 2s infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 22px rgba(30,58,110,.08); } }
.corp-frame {
  position: absolute; top: -18px; left: -18px; right: 40px; bottom: 40px;
  border: 3px solid var(--primary); border-radius: 6px; z-index: -1;
}
/* Sağdaki fabrika fotoğrafı — çerçevesi videonunkinin aynadaki simetriği */
.corp-photo { position: relative; }
.corp-photo img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 6px;
  position: relative; z-index: 1; box-shadow: var(--shadow);
}
.corp-frame.right { left: 40px; right: -18px; }

/* ---------- Why (dark) ---------- */
.why { background: var(--dark); padding: 90px 0; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.why-card {
  background: #24365c; border-radius: 6px; padding: 34px 26px;
  border-top: 3px solid transparent; transition: all .3s ease; text-align: center;
}
.why-card:hover { border-top-color: var(--primary); transform: translateY(-6px); background: #2a3f6b; }
.why-icon {
  display: inline-grid; place-items: center; width: 62px; height: 62px;
  background: rgba(171,150,104,.16); color: #cbb98e; font-size: 1.6rem;
  border-radius: 50%; margin-bottom: 18px;
}
.why-card h4 { color: #fff; font-size: 17px; margin-bottom: 10px; }
.why-card p { font-size: 13.5px; color: #aeb8cc; }

/* ---------- References ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ref-item {
  border: 1px solid var(--line); border-radius: 5px; padding: 34px 10px;
  text-align: center; font-family: var(--font-head); font-weight: 700;
  font-size: 15px; color: #b8b2a4; letter-spacing: .04em;
  transition: all .3s ease; background: var(--white);
}
.ref-item:hover { color: var(--primary); border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }

/* ---------- CTA strip ---------- */
.cta-strip { background: linear-gradient(100deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 48px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-inner h3 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 6px; }
.cta-inner p { color: rgba(255,255,255,.92); }
.cta-strip .btn-dark { background: var(--navy); }
.cta-strip .btn-dark:hover { background: var(--navy-deep); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 4vw, 4rem); }
.ci-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ci-icon {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(171,150,104,.15); color: var(--primary-dark); border-radius: 50%; font-size: 1.2rem;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.ci-item:hover .ci-icon { background: var(--primary); color: #fff; transform: translateY(-3px); }
.ci-item h5 { font-size: 15px; margin-bottom: 4px; }
.ci-item p { font-size: 14px; }
.contact-form {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--primary);
  border-radius: 6px; padding: 34px 30px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--font-body); font-size: 14px; color: var(--title);
  background: var(--light); transition: border-color .2s, background .2s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
}
.contact-form .btn { align-self: flex-start; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { padding: 12px 16px; border-radius: 6px; font-size: 14.5px; margin-bottom: 16px; }
.form-note.ok  { background: #e7f4ea; color: #1c6b34; border: 1px solid #b7dcc1; }
.form-note.err { background: #fdecec; color: #a12a2a; border: 1px solid #f0c2c2; }
.map-link { color: inherit; text-decoration: none; transition: color .2s; }
.map-link:hover { color: var(--primary-dark); text-decoration: underline; }
.map-wrap {
  margin-top: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); line-height: 0;
  transition: box-shadow .3s ease;
}
.map-wrap:hover { box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.map-wrap iframe {
  width: 100%; height: 380px; border: 0;
  filter: grayscale(1) contrast(1.02); transition: filter .45s ease;
}
.map-wrap:hover iframe { filter: none; }
/* Dokunmatik cihazlarda hover yok — harita doğrudan renkli */
@media (hover: none) {
  .map-wrap iframe { filter: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--darker); color: #9aa5ba; }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px;
  padding-top: 70px; padding-bottom: 50px;
}
.foot-logo {
  height: 62px; width: auto; display: block;
  background: #fff; padding: 6px 16px; border-radius: 10px;
  box-sizing: content-box;
}
.foot-about p { font-size: 14px; margin: 18px 0 22px; max-width: 300px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: #24365c; color: #ccc; border-radius: 4px; font-size: 14px;
  font-family: var(--font-head); font-weight: 700; transition: all .25s;
}
.foot-social a:hover { background: var(--primary); color: #fff; }
.foot-col h5 {
  color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 20px; position: relative; padding-bottom: 12px;
}
.foot-col h5::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px;
  background: var(--primary); border-radius: 2px;
}
.foot-col a, .foot-col p { display: block; font-size: 14px; color: #9aa5ba; margin-bottom: 10px; transition: color .2s, padding-left .2s; }
.foot-col a:hover { color: var(--primary); padding-left: 5px; }
.foot-bottom { border-top: 1px solid #24365c; padding: 20px 0; font-size: 13px; }
.fb-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-bottom a { color: #9aa5ba; }
.foot-bottom a:hover { color: var(--primary); }

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--navy); color: #fff; border-radius: 4px; font-size: 1.2rem;
  opacity: 0; pointer-events: none; transition: all .3s;
  box-shadow: 0 6px 18px rgba(30,58,110,.35);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--navy-deep); transform: translateY(-3px); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .service-grid { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow > .flow-arrow { transform: rotate(90deg); }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white);
    box-shadow: 0 12px 24px rgba(0,0,0,.12); padding: 10px 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
  /* Mobilde alt menü her zaman açık, girintili listelenir */
  .sub-menu {
    position: static; min-width: 0; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border-top: none; padding: 0;
  }
  .sub-menu::before { display: none; }
  .nav-item .caret { display: none; }
  .nav .sub-menu a { padding: 12px 24px 12px 42px; font-size: 13px; }
  .header-cta { display: none; }
  .corp-grid, .contact-grid { grid-template-columns: 1fr; }
  .corp-media { max-width: 560px; }
  /* Mobilde fotoğraf yazının altında, yatay kırpımla daha derli toplu */
  .corp-photo { max-width: 560px; margin-top: 10px; }
  .corp-photo img { aspect-ratio: 4/3; }
  .topbar-inner span:first-child { display: none; }
  .topbar-inner { justify-content: center; }
}
@media (max-width: 560px) {
  .product-grid, .why-grid, .ref-grid, .stats-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .header-inner { height: 72px; }
  .brand-img { height: 50px; }
  .brand { padding: 3px 10px; }
  .section { padding: 64px 0; }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }

  /* Topbar tek satır kalsın: mobilde 2. numara gizli, sadece ilk telefon */
  .topbar-right a:last-child { display: none; }
  .topbar-inner { padding-top: 6px; padding-bottom: 6px; }
  body.hdr-clear .site-header { top: 30px; }
  body.hdr-clear .hero-content { padding-top: 120px; }

  /* Hizmet kartları ve makine tablosu dar ekranda */
  .service-card { padding: 24px 18px; }
  .spec-table th, .spec-table td { padding: 8px 8px; font-size: 12.5px; }
  .spec-table th { font-size: 11px; letter-spacing: .03em; }

  /* Akış diyagramı dikey ve ortalı */
  .flow-path { justify-content: center; }
  .flow-branch { width: 100%; }
  .flow-node { padding: 12px 16px; font-size: 13.5px; }

  /* Kurumsal video çerçevesi taşmasın */
  .corp-frame { top: -10px; left: -10px; right: 24px; bottom: 24px; }
  .corp-frame.right { left: 24px; right: -10px; }

  /* CTA şeridi ortalansın */
  .cta-inner { flex-direction: column; text-align: center; }

  /* Buton ve form alanları parmak dostu */
  .btn-lg { width: 100%; }
  .hero-btns { width: 100%; }
  .hero-btns .btn { flex: 1; }

  /* iOS: 16px altı input odaklanınca sayfayı zoomlar — engelle */
  .contact-form input, .contact-form textarea { font-size: 16px; }

  /* Harita dar ekranda daha kısa */
  .map-wrap iframe { height: 280px; }

  /* Form kartı dar ekranda daha az dolgu */
  .contact-form { padding: 24px 18px; }
}

/* ============================================================
   MOBİL HERO — video kırpılmadan tam görünür
   Dikey ekranda 16:9 video "cover" ile ortadan kırpılıyordu;
   mobilde video tam genişlikte üstte, yazılar degrade zeminde altında.
   ============================================================ */
@media (max-width: 700px) {
  .hero { flex-direction: column; align-items: stretch; justify-content: center; }
  .hero-video {
    position: static; width: 100%; height: auto; aspect-ratio: 16/9;
    object-fit: contain; margin-top: 124px; /* topbar + header altından başlar */
  }
  .hero-overlay { display: none; }
  .hero-content { padding-top: 30px; padding-bottom: 56px; }
  body.hdr-clear .hero-content { padding-top: 30px; }
  .hero-scroll { display: none; }
}
@media (max-width: 560px) {
  .hero-video { margin-top: 104px; } /* daha kısa topbar + header */
  body.hdr-clear .hero-content { padding-top: 30px; }
}
