/* ================================
   İPEK SAVUNMA — Enhance Sections
   NIJ + Sertifikalar + Referanslar
   (React render sonrası enjekte edilir)
   ================================ */

/* ================================
   HERO BACKGROUND FIX — /personal-armor + benzeri alt sayfalar
   Bahçe / havuz fotoğrafı yerine savunma temalı gradient koy
   ================================ */

/* Showroom görsellerini arkaplan olarak kullanan banner'ları kapat */
[style*="/assets/showroom/"],
[style*="assets/business/banner.png"],
[src*="/assets/showroom/"] {
  /* Footer'da vb. kullanım engellenmesin — sadece büyük banner/hero */
}

/* Sayfa hero banner'ları (jenerik: altsayfaların üstündeki görsel band) */
body [class*="relative"][class*="h-"][style*="background-image"]:not([data-ipek-bg-ok]) {
  /* Eğer arka plan görseli showroom/banner ise replace et */
}

/* Sert çözüm: /personal-armor veya benzeri bütün alt sayfaların hero banner'ını
   İpek kırmızı savunma gradient'iyle override et (inline style üzerine basmaz — class override gerekir) */
body.ipek-bg-override [style*="background-image: url(/assets/showroom/"],
body.ipek-bg-override [style*='background-image: url("/assets/showroom/'],
body.ipek-bg-override [style*="background-image: url(/assets/business/banner"],
body.ipek-bg-override [style*='background-image: url("/assets/business/banner'] {
  background-image:
    linear-gradient(135deg, rgba(220,38,38,0.85) 0%, rgba(15,19,25,0.95) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(220,38,38,0.4), transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(255,255,255,0.05), transparent 70%) !important;
  background-color: #0f1319 !important;
}

/* /personal-armor ve /products sayfalarında — alt sayfa hero heights */
body.ipek-bg-override .banner-bg,
body.ipek-bg-override [class*="personal-armor"] > div:first-child,
body.ipek-bg-override section > div > div[class*="h-[30"],
body.ipek-bg-override section > div > div[class*="h-[40"] {
  position: relative;
}

:root {
  --ipek-red: #dc2626;
  --ipek-red-dark: #991b1b;
  --ipek-red-soft: #fee2e2;
  --ipek-red-glow: rgba(220, 38, 38, 0.35);
  --ipek-text: #0f1319;
  --ipek-text-2: #2a2f3a;
  --ipek-text-dim: #5b6170;
  --ipek-text-mute: #8b91a0;
  --ipek-surface: #ffffff;
  --ipek-bg: #f7f8fb;
  --ipek-bg-2: #eef1f6;
  --ipek-border: #e4e7ee;
  --ipek-border-soft: #eef0f4;
  --ipek-dark: #0d1017;
  --ipek-dark-2: #141821;
  --ipek-dark-3: #1b1f2a;
  --ipek-radius: 14px;
  --ipek-radius-lg: 22px;
  --ipek-ease: cubic-bezier(.22,.61,.36,1);
}

.ipek-enhance {
  font-family: 'Inter', 'Figtree', system-ui, -apple-system, sans-serif;
  color: var(--ipek-text);
  line-height: 1.55;
}
.ipek-enhance * { box-sizing: border-box; }
.ipek-enhance .ipek-container {
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
}

.ipek-enhance section {
  padding: 100px 0;
}
.ipek-enhance .ipek-section-head {
  margin-bottom: 52px; max-width: 720px;
}
.ipek-enhance .ipek-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .76rem; font-weight: 700; letter-spacing: .22em;
  color: var(--ipek-red); text-transform: uppercase;
  margin-bottom: 14px;
}
.ipek-enhance .ipek-eyebrow::before {
  content: ''; width: 26px; height: 2px; background: var(--ipek-red);
}
.ipek-enhance h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.12;
  margin: 0 0 14px; color: var(--ipek-text);
}
.ipek-enhance .ipek-lead {
  color: var(--ipek-text-dim); font-size: 1.02rem; max-width: 640px;
  margin: 0;
}
.ipek-enhance .ipek-lead em {
  color: var(--ipek-text); font-style: normal; font-weight: 600;
  border-bottom: 2px solid var(--ipek-red); padding-bottom: 1px;
}

/* ========= NIJ STANDARDS ========= */
.ipek-nij {
  background: var(--ipek-bg-2);
}
.ipek-std-tag {
  display: inline-block; padding: 5px 12px; border-radius: 6px;
  background: var(--ipek-surface); border: 1px solid var(--ipek-border);
  font-family: 'Inter', monospace; font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; color: var(--ipek-red-dark); margin-bottom: 14px;
}
.ipek-nij-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  margin-top: 36px;
}
.ipek-std-card {
  background: var(--ipek-surface); border: 1px solid var(--ipek-border);
  border-radius: var(--ipek-radius); overflow: hidden;
  transition: all .3s var(--ipek-ease);
}
.ipek-std-card:hover {
  transform: translateY(-4px); border-color: var(--ipek-red);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.ipek-std-level {
  padding: 26px 20px 16px;
  font-family: 'Inter', monospace;
  font-size: 2.2rem; font-weight: 800;
  color: var(--ipek-text); text-align: center;
  background: linear-gradient(180deg, #f1f3f8, var(--ipek-surface));
  border-bottom: 1px solid var(--ipek-border);
}
.ipek-std-card-hi .ipek-std-level {
  background: linear-gradient(180deg, var(--ipek-red-soft), var(--ipek-surface));
  color: var(--ipek-red-dark);
}
.ipek-std-card-top .ipek-std-level {
  background: linear-gradient(180deg, var(--ipek-red), #b91c1c);
  color: #ffffff;
}
.ipek-std-body { padding: 14px 18px 20px; }
.ipek-std-body h4 {
  font-size: .88rem; font-weight: 700; margin: 0 0 12px;
  color: var(--ipek-text);
}
.ipek-std-specs { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.ipek-std-specs li {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: .76rem; padding-bottom: 5px;
  border-bottom: 1px dashed var(--ipek-border-soft);
}
.ipek-std-specs li:last-child { border-bottom: none; }
.ipek-std-specs span { color: var(--ipek-text-mute); font-weight: 500; }
.ipek-std-specs strong { color: var(--ipek-text); font-weight: 600; text-align: right; }

.ipek-std-note {
  display: flex; gap: 16px; margin-top: 26px;
  padding: 20px 22px;
  background: var(--ipek-surface); border: 1px solid var(--ipek-border);
  border-left: 3px solid var(--ipek-red);
  border-radius: var(--ipek-radius);
  color: var(--ipek-text-dim); font-size: .92rem; line-height: 1.65;
}
.ipek-std-note-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px;
  background: var(--ipek-red-soft); color: var(--ipek-red-dark);
  display: grid; place-items: center;
}
.ipek-std-note strong { color: var(--ipek-text); }

/* ========= SERTIFIKALAR ========= */
.ipek-certs {
  background: var(--ipek-surface);
}
.ipek-cert-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: 36px;
}
.ipek-cert-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 20px; background: var(--ipek-surface);
  border: 1px solid var(--ipek-border); border-radius: var(--ipek-radius-lg);
  transition: all .3s var(--ipek-ease);
}
.ipek-cert-card:hover {
  transform: translateY(-6px); border-color: var(--ipek-red);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}
.ipek-cert-seal {
  width: 92px; height: 92px; margin-bottom: 16px;
  filter: drop-shadow(0 8px 16px rgba(15,19,25,0.15));
}
.ipek-cert-seal svg { width: 100%; height: 100%; transition: transform .4s var(--ipek-ease); }
.ipek-cert-card:hover .ipek-cert-seal svg { transform: rotate(8deg) scale(1.05); }
.ipek-cert-meta strong {
  display: block; font-size: .96rem; color: var(--ipek-text);
  margin-bottom: 4px; font-weight: 700;
}
.ipek-cert-meta span {
  display: block; color: var(--ipek-text-dim); font-size: .8rem; line-height: 1.4;
}

/* ========= REFERANSLAR ========= */
.ipek-refs {
  background: var(--ipek-bg-2);
}
.ipek-ref-grid {
  display: grid; grid-template-columns: repeat(9, 1fr); gap: 14px;
  margin-top: 36px; margin-bottom: 48px;
}
.ipek-ref-emblem {
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 10px 16px;
  background: var(--ipek-surface); border: 1px solid var(--ipek-border);
  border-radius: var(--ipek-radius); transition: all .35s var(--ipek-ease);
}
.ipek-ref-emblem:hover {
  border-color: var(--ipek-red); transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.ipek-ref-emblem:hover img { transform: scale(1.1); }
.ipek-ref-logo-img {
  width: 68px; height: 68px;
  display: grid; place-items: center; margin-bottom: 10px;
  filter: drop-shadow(0 4px 10px rgba(15,19,25,0.15));
}
.ipek-ref-logo-img img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform .4s var(--ipek-ease);
}
.ipek-ref-name { text-align: center; }
.ipek-ref-name strong {
  display: block; font-size: .78rem; font-weight: 800;
  color: var(--ipek-text); letter-spacing: .04em; margin-bottom: 2px;
}
.ipek-ref-name span {
  display: block; color: var(--ipek-text-mute);
  font-size: .64rem; line-height: 1.25; font-weight: 500;
}
.ipek-ref-global {
  background: var(--ipek-text); border-color: var(--ipek-text);
}
.ipek-ref-global .ipek-ref-name strong { color: var(--ipek-red); }
.ipek-ref-global .ipek-ref-name span { color: #b2b8c3; }

.ipek-ref-quote {
  max-width: 820px; margin: 0 auto;
  padding: 32px 36px;
  background: var(--ipek-surface); border: 1px solid var(--ipek-border);
  border-left: 4px solid var(--ipek-red);
  border-radius: var(--ipek-radius-lg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.ipek-ref-quote blockquote {
  margin: 0 0 12px; padding: 0;
  font-size: 1.05rem; line-height: 1.65; color: var(--ipek-text);
  font-weight: 500; font-style: italic;
}
.ipek-ref-quote cite {
  color: var(--ipek-text-mute); font-size: .86rem;
  font-style: normal; font-weight: 600;
}

/* ========= MALZEMELER ========= */
.ipek-materials { background: var(--ipek-surface); }
.ipek-mat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 36px;
}
.ipek-mat-card {
  background: var(--ipek-surface); border: 1px solid var(--ipek-border);
  border-radius: var(--ipek-radius-lg); padding: 28px;
  transition: all .3s var(--ipek-ease);
}
.ipek-mat-card:hover {
  transform: translateY(-4px); border-color: var(--ipek-red);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.ipek-mat-head {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 16px; padding-bottom: 18px;
  border-bottom: 1px solid var(--ipek-border-soft);
}
.ipek-mat-badge {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px;
  background: var(--ipek-text); color: var(--ipek-red);
  display: grid; place-items: center;
  font-family: 'Inter', monospace; font-weight: 800; font-size: 1rem;
}
.ipek-mat-card h4 { font-size: 1.2rem; margin: 0 0 2px; color: var(--ipek-text); }
.ipek-mat-sub { color: var(--ipek-text-mute); font-size: .8rem; font-weight: 500; }
.ipek-mat-desc { color: var(--ipek-text-dim); font-size: .92rem; margin: 0 0 18px; line-height: 1.65; }
.ipek-mat-desc em { color: var(--ipek-text); font-style: normal; font-weight: 600; }

.ipek-mat-props { margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.ipek-mat-props > div {
  display: grid; grid-template-columns: 108px 1fr; gap: 12px;
  padding: 6px 0; border-bottom: 1px dashed var(--ipek-border-soft);
  font-size: .84rem;
}
.ipek-mat-props > div:last-child { border-bottom: none; }
.ipek-mat-props dt { color: var(--ipek-text-mute); font-weight: 500; margin: 0; }
.ipek-mat-props dd { color: var(--ipek-text); font-weight: 600; margin: 0; }
.ipek-mat-use {
  padding: 10px 14px; background: var(--ipek-red-soft);
  border-radius: 10px; font-size: .82rem; font-weight: 600;
  color: var(--ipek-red-dark); text-align: center;
}

/* ========= ŞİKAYET FORMU ========= */
.ipek-complaint-wrap {
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 60%, #fee2e2 100%);
  padding: 80px 0;
  border-top: 1px solid var(--ipek-border);
}
.ipek-complaint-head {
  max-width: 720px; margin: 0 auto 36px; text-align: center;
}
.ipek-complaint-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 12px 0 10px;
  color: var(--ipek-text);
}
.ipek-complaint-head .ipek-lead { margin: 0 auto; }

.ipek-complaint-form {
  max-width: 820px; margin: 0 auto;
  background: var(--ipek-surface); border: 1px solid var(--ipek-border);
  border-radius: var(--ipek-radius-lg);
  padding: 36px; box-shadow: 0 10px 40px rgba(220, 38, 38, 0.08);
}
.ipek-cf-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px;
}
.ipek-cf-field { margin-bottom: 14px; display: flex; flex-direction: column; }
.ipek-cf-field label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--ipek-text-2); margin-bottom: 7px; letter-spacing: .02em;
}
.ipek-req { color: #dc2626; font-weight: 700; }
.ipek-cf-field input,
.ipek-cf-field select,
.ipek-cf-field textarea {
  width: 100%; padding: 12px 14px;
  background: #ffffff; border: 1.5px solid var(--ipek-border);
  border-radius: 10px; color: var(--ipek-text);
  font-family: inherit; font-size: .96rem;
  transition: border-color .2s, box-shadow .2s;
}
.ipek-cf-field input:focus,
.ipek-cf-field select:focus,
.ipek-cf-field textarea:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}
.ipek-cf-field textarea { resize: vertical; min-height: 120px; }
.ipek-cf-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

.ipek-cf-note {
  display: flex; gap: 12px; padding: 14px 18px;
  background: #fff4f4; border-left: 3px solid #dc2626;
  border-radius: 10px; margin: 8px 0 22px;
  color: var(--ipek-text-dim); font-size: .88rem; line-height: 1.55;
}
.ipek-cf-note svg { flex-shrink: 0; color: #dc2626; margin-top: 2px; }
.ipek-cf-note strong { color: var(--ipek-text); }
.ipek-cf-note em { color: #dc2626; font-style: normal; font-weight: 700; }

.ipek-cf-actions { text-align: center; }
.ipek-cf-submit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #ffffff; border: none; border-radius: 999px;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
  transition: transform .2s, box-shadow .2s;
}
.ipek-cf-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(220, 38, 38, 0.45);
}
.ipek-cf-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.ipek-cf-status {
  margin-top: 16px; padding: 12px 16px; border-radius: 10px;
  font-size: .94rem; text-align: center; min-height: 20px;
  transition: all .25s;
}
.ipek-cf-status.ipek-cf-ok {
  background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0;
}
.ipek-cf-status.ipek-cf-err {
  background: #fee2e2; color: #991b1b; border: 1px solid #fecaca;
}

@media (max-width: 640px) {
  .ipek-cf-row { grid-template-columns: 1fr; }
  .ipek-complaint-form { padding: 24px; }
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1024px) {
  .ipek-nij-grid { grid-template-columns: repeat(3, 1fr); }
  .ipek-cert-grid { grid-template-columns: repeat(2, 1fr); }
  .ipek-mat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ipek-enhance section { padding: 60px 0; }
  .ipek-nij-grid { grid-template-columns: repeat(2, 1fr); }
  .ipek-nij-grid .ipek-std-card:last-child { grid-column: 1 / -1; }
  .ipek-cert-grid { grid-template-columns: 1fr; }
  .ipek-ref-grid { grid-template-columns: repeat(3, 1fr); }
  .ipek-ref-quote { padding: 24px; }
}
