/* =========================================================
   Karat-QCC — İletişim sayfası (contact.html)
   Fikir: "İpli numune zarfı". Tekstilde numuneler ve evrak, kapağı
   iki düğme arasına iple sarılan kraft zarflarla gider gelir.
   Form zarfın önüne basılı satırlardır; seçilen ürünlerin
   fotoğrafları zarfın ağzından numune gibi görünür. "Seal and send"
   ile numuneler içeri kayar, kapak öne kapanır, turuncu ip iki
   düğmeye sarılır ve e-posta uygulaması yazılmış mesajla açılır.
   01 bizi bulun: iletişim bilgileri + tıklayınca yüklenen harita.
   Önekler: ch- (giriş), ev- (zarf), vs- (01).
   Durum sınıfları: is-sealing, is-sealed, is-done, is-on, is-jump, is-map
   (is-in yok). Ortak değişkenler ve parçalar style.css'te.
   ========================================================= */

.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =========================================================
   GİRİŞ
   ========================================================= */
.ch { padding: calc(var(--head) + clamp(28px, 3.8vw, 64px)) 0 clamp(60px, 6.4vw, 108px); background: var(--paper); overflow: hidden; }
.ch-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 5vw, 100px); align-items: center; }
.ch h1 { font-size: clamp(1.95rem, 1.2rem + 1.7vw, 2.95rem); margin: 22px 0 18px; max-width: 11em; }
.ch .lead { max-width: 31em; }

.ch-direct { margin-top: clamp(28px, 3vw, 44px); max-width: 30em; }
.ch-direct a {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 4px;
  border-top: 2px dashed rgba(0, 68, 148, .13); transition: color .25s;
}
.ch-direct li:last-child a { border-bottom: 2px dashed rgba(0, 68, 148, .13); }
.ch-direct small { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.ch-direct b { font-size: clamp(1rem, .94rem + .3vw, 1.2rem); font-weight: 650; letter-spacing: -.01em; }
.ch-direct .ico { color: var(--blue); }
.ch-direct a:hover { color: var(--blue); }
.ch-direct a:hover .ico { transform: translateX(4px); }

.ch-note { display: flex; align-items: center; gap: 14px; margin-top: 22px; max-width: 30em; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.ch-note .qcc { flex: none; }

/* =========================================================
   ZARF
   ========================================================= */
.ev-wrap { justify-self: end; width: 100%; max-width: 760px; }
.ev {
  --kraft: #e7d0a8; --kraft-in: #d3b68a; --kraft-ln: rgba(0, 68, 148, .3); --fh: 128px;
  position: relative; padding-top: var(--fh); perspective: 1700px;
}

/* Kapak */
.ev-flap {
  position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: var(--fh);
  transform-origin: 50% 100%; transform: rotateX(16deg); transform-style: preserve-3d;
  transition: transform .95s cubic-bezier(.62, .02, .24, 1);
}
.ev.is-sealing .ev-flap { z-index: 4; }
.ev.is-sealed .ev-flap { transform: rotateX(-180deg); }
.ev-face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ev-flap-in { background: var(--kraft-in); clip-path: polygon(0 100%, 4% 16%, 8% 0, 92% 0, 96% 16%, 100% 100%); }
.ev-flap-out {
  transform: rotateX(180deg); background: var(--kraft);
  clip-path: polygon(0 0, 100% 0, 96% 84%, 92% 100%, 8% 100%, 4% 84%);
  display: grid; place-items: center; padding-bottom: 30px;
}
.ev-flap-print { display: grid; justify-items: center; gap: 4px; font-size: .62rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); opacity: .85; }
.ev-flap-print b { font-size: 1.05rem; font-weight: 800; letter-spacing: .2em; }

/* Düğmeler (karton pul) */
.ev-btn {
  position: absolute; left: 50%; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%;
  background: #c09868; box-shadow: inset 0 0 0 4px #b08656, 0 1px 1px rgba(60, 35, 10, .35);
}
.ev-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #8a6538; }
.ev-btn-f { bottom: 10px; }
.ev-btn-b { z-index: 2; top: calc(var(--fh) + 10px); }

/* Numuneler */
.ev-samples { position: absolute; z-index: 2; left: 5%; right: 5%; top: var(--fh); height: 0; }
.ev-sm {
  position: absolute; left: 0; top: 4px; width: clamp(70px, 8vw, 96px); aspect-ratio: 4 / 5; padding: 4px; border-radius: 7px;
  background: #fff; box-shadow: 0 10px 22px -12px rgba(7, 19, 38, .55);
  transition: transform .7s cubic-bezier(.22, .8, .24, 1);
}
.ev-sm.is-jump { transition: none; }
.ev-sm img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

/* Ön yüz */
.ev-front {
  position: relative; z-index: 3; padding: 0 clamp(18px, 2.4vw, 36px) clamp(18px, 2.2vw, 30px);
  border-radius: 6px 6px 12px 12px; background: var(--kraft); box-shadow: var(--shadow-lg);
}
.ev-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; height: var(--fh); padding-top: 22px; }
.ev-to { display: grid; gap: 2px; font-size: .8rem; line-height: 1.45; color: rgba(15, 26, 40, .72); }
.ev-to small { font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.ev-to b { font-size: .92rem; color: var(--ink); }
.ev-logo { width: clamp(84px, 9vw, 118px); height: auto; opacity: .9; mix-blend-mode: multiply; }

.ev-rows { margin-top: 48px; }
.ev-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; min-height: 54px; border-top: 1.5px dashed var(--kraft-ln); }
.ev-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ev-cell { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; min-height: 54px; }
.ev-cell + .ev-cell { grid-template-columns: 78px minmax(0, 1fr); padding-left: 16px; border-left: 1.5px dashed var(--kraft-ln); }
.ev-l { font-size: .64rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; color: var(--blue); }

.ev-in {
  width: 100%; min-width: 0; height: 40px; padding: 0 10px; margin: 7px 0; border: 0; border-radius: 8px;
  font: inherit; font-size: 1rem; color: var(--ink); background: transparent;
  transition: background-color .25s, box-shadow .25s;
}
.ev-in::placeholder { color: rgba(15, 26, 40, .4); }
.ev-in:hover { background: rgba(255, 255, 255, .28); }
.ev-in:focus { outline: none; background: rgba(255, 255, 255, .55); box-shadow: inset 0 -2px 0 var(--orange); }
.ev-in:user-invalid { box-shadow: inset 0 -2px 0 #c4420c; }
textarea.ev-in { height: auto; min-height: 112px; padding: 10px; line-height: 1.55; resize: vertical; }
.ev-msg { align-items: start; }
.ev-msg .ev-l, .ev-pick .ev-l { padding-top: 20px; }
.ev-pick { align-items: start; }

/* Ürün seçimi */
.ev-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; }
.ev-chip { position: relative; cursor: pointer; }
.ev-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ev-chip-in {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 4px 12px 4px 4px; border-radius: 10px;
  font-size: .82rem; font-weight: 600; color: var(--ink2); background: rgba(255, 255, 255, .5);
  transition: background-color .25s, color .25s, transform .35s var(--ease);
}
.ev-chip-in img { width: 32px; height: 32px; border-radius: 7px; object-fit: cover; }
.ev-chip:hover .ev-chip-in { background: rgba(255, 255, 255, .85); transform: translateY(-1px); }
.ev-chip input:checked + .ev-chip-in { background: var(--blue); color: #fff; }
.ev-chip input:focus-visible + .ev-chip-in { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Alt bölüm: gönder / gönderildi */
.ev-end { display: grid; border-top: 1.5px dashed var(--kraft-ln); padding-top: 18px; }
.ev-foot, .ev-done { grid-area: 1 / 1; transition: opacity .55s var(--ease), transform .7s cubic-bezier(.22, .8, .24, 1), visibility 0s .55s; }
.ev-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ev-hint { font-size: .84rem; line-height: 1.5; color: rgba(15, 26, 40, .66); max-width: 26em; }
.ev-send { flex: none; }
.ev-done { opacity: 0; visibility: hidden; transform: translateY(8px); }
.ev.is-done .ev-foot { opacity: 0; visibility: hidden; transform: translateY(-8px); }
.ev.is-done .ev-done { opacity: 1; visibility: visible; transform: none; transition: opacity .55s var(--ease) .1s, transform .7s cubic-bezier(.22, .8, .24, 1) .1s, visibility 0s; }
.ev:not(.is-done) .ev-foot { transition: opacity .55s var(--ease) .1s, transform .7s cubic-bezier(.22, .8, .24, 1) .1s, visibility 0s; }
.ev-done-t { font-size: .92rem; line-height: 1.55; color: var(--ink2); max-width: 36em; }
.ev-done-t:focus { outline: none; }
.ev-done-t b { color: var(--blue); }
.ev-done-a { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.ev-done-a .btn-glass { background: rgba(255, 255, 255, .55); }
.ev-edit { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 10px; font-size: .88rem; font-weight: 600; color: var(--blue); }
.ev-edit:hover .ico { transform: rotate(-60deg); }

/* Mühürlüyken satırlar dinlenir */
.ev-rows { transition: opacity .6s var(--ease); }
.ev.is-done .ev-rows { opacity: .62; }

/* İp */
.ev-thread { position: absolute; z-index: 5; left: 0; top: var(--fh); overflow: visible; pointer-events: none; }
.ev-thread path { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ev-dangle { transition: opacity .45s var(--ease); }
.ev.is-sealing .ev-dangle { opacity: 0; }
.ev-wind { opacity: 0; transition: opacity .45s var(--ease); }
.ev-wind.is-on { opacity: 1; transition: opacity .1s; }
html:not(.js) .ev-thread { display: none; }

/* =========================================================
   01 · BİZİ BULUN
   ========================================================= */
.vs-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 5.6vw, 110px); align-items: center; }
.vs-lead { margin-top: 18px; font-size: clamp(1rem, .96rem + .14vw, 1.08rem); line-height: 1.65; color: var(--muted); max-width: 32em; }
.vs-list { margin-top: clamp(26px, 2.8vw, 40px); max-width: 34em; }
.vs-list > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 2px dashed rgba(0, 68, 148, .13); }
.vs-list > div:last-child { border-bottom: 2px dashed rgba(0, 68, 148, .13); }
.vs-list dt { padding-top: 3px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.vs-list dd { font-size: 1.02rem; font-weight: 550; line-height: 1.5; color: var(--ink); }
.vs-list dd > a:not(.more) { transition: color .25s; }
.vs-list dd > a:not(.more):hover { color: var(--blue); }
.vs-list .more { display: flex; width: max-content; margin-top: 10px; }

.vs-map { position: relative; aspect-ratio: 1200 / 760; border-radius: var(--r); overflow: hidden; background: var(--mist); box-shadow: var(--shadow-lg); }
.vs-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.vs-card {
  position: absolute; z-index: 2; left: clamp(12px, 1.6vw, 22px); bottom: clamp(12px, 1.6vw, 22px);
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; max-width: calc(100% - 24px);
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: 0 18px 36px -22px rgba(7, 19, 38, .6);
  transition: opacity .55s var(--ease), transform .7s cubic-bezier(.22, .8, .24, 1), visibility 0s;
}
.vs-pin { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--orange); color: #fff; }
.vs-pin svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vs-card-t { display: grid; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.vs-card-t b { font-size: .98rem; color: var(--ink); }
.vs-load { grid-column: 1 / -1; margin-top: 10px; height: 44px; }
.vs-card-n { grid-column: 1 / -1; font-size: .72rem; color: var(--soft); }
.vs-frame { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .7s var(--ease); }
.vs-map.is-map .vs-frame { opacity: 1; }
.vs-map.is-map .vs-ph { opacity: 0; transform: scale(1.03); }
.vs-map.is-map .vs-card { opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .45s var(--ease), transform .6s var(--ease), visibility 0s .45s; }

/* =========================================================
   DUYARLI DÜZEN
   ========================================================= */
@media (min-width: 1900px) {
  .ev-wrap { max-width: 820px; }
  .ev { --fh: 140px; }
}

@media (max-width: 1100px) {
  .ch-grid, .vs-grid { grid-template-columns: minmax(0, 1fr); }
  .ch-copy { max-width: 40em; }
  .ev-wrap { justify-self: center; }
}

@media (max-width: 640px) {
  .ev { --fh: 104px; perspective: 1100px; }
  .ev-top { padding-top: 16px; }
  .ev-to { font-size: .74rem; }
  .ev-logo { width: 74px; }
  .ev-rows { margin-top: 44px; }
  .ev-row, .ev-cell { grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: 12px; min-height: 0; }
  .ev-2 { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
  .ev-cell + .ev-cell { grid-template-columns: minmax(0, 1fr); padding-left: 0; border-left: 0; border-top: 1.5px dashed var(--kraft-ln); }
  .ev-in { margin: 4px 0 8px; padding: 0 8px; }
  .ev-msg .ev-l, .ev-pick .ev-l { padding-top: 0; }
  .ev-chips { padding: 8px 0 12px; }
  .ev-foot { flex-direction: column; align-items: stretch; }
  .ev-send { width: 100%; }
  .ev-flap-print b { font-size: .9rem; }
  .vs-map { aspect-ratio: 4 / 5; }
  .vs-list > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .ev-flap, .ev-sm, .ev-foot, .ev-done, .ev-rows, .ev-dangle, .ev-wind, .vs-ph, .vs-frame, .vs-card { transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* Almancada etiketler daha uzun */
:lang(de) .ev-row, :lang(de) .ev-cell { grid-template-columns: 118px minmax(0, 1fr); }
:lang(de) .ev-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
:lang(de) .ev-cell + .ev-cell { grid-template-columns: 82px minmax(0, 1fr); }
@media (max-width: 640px) {
  :lang(de) .ev-row, :lang(de) .ev-cell, :lang(de) .ev-2, :lang(de) .ev-cell + .ev-cell { grid-template-columns: minmax(0, 1fr); }
}
