/* ============================================================
   BAREM AMBALAJ – CUSTOM CSS v2
   ------------------------------------------------------------
   - Koyu arka plan + emerald accent tema
   - Hero / tesis / sektör kartları
   - Sertifikalar, KPI, IR, ürün kartları
   - Scroll reveal, dropdown, sticky header, footer uyumu
   ============================================================ */

/* ================== ROOT & GLOBAL =========================== */

:root {
  /* Marka / eski değişkenler */
  --paper: #6EA46E;
  --pack: #1C2A4E;
  --accent-warm: #F5A623;

  /* Yeni tema değişkenleri */
  --page-bg: #020617;               /* slate-950 */
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border-subtle: rgba(148, 163, 184, 0.45);
  --accent: #059669;                /* emerald-500 */
  --accent-soft: rgba(5, 150, 105, 0.12);
  --accent-strong: #047857;         /* emerald-600 */
}

html[data-locale="ar"] {
  direction: rtl;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, Arial;
  background:
    radial-gradient(1200px circle at 0% 0%, rgba(56, 189, 248, 0.14), transparent 70%),
    radial-gradient(1000px circle at 100% 100%, rgba(5, 150, 105, 0.13), transparent 72%),
    var(--page-bg);
  background-color: var(--page-bg);
}

/* Demo/yardımcı arka plan renkleri */
.bg-paper { background-color: var(--paper); }
.bg-pack  { background-color: var(--pack); }

/* Accent şerit (header üstü) */
.accent-strip {
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #22c55e);
}

/* Yumuşak gölge */
.shadow-soft {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
}

/* Mobilde daha büyük dokunma alanı */
@media (max-width: 768px) {
  .tap-lg {
    padding: .875rem 1rem;
    font-size: 1rem;
  }
}

/* ================== TİPOGRAFİ & DEKOR ======================= */

/* Başlık altı çizgi */
.accent-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.accent-underline::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #22c55e);
}

/* Sayaç (büyük rakam) */
.counter {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}

/* Timeline noktası */
.tl {
  position: relative;
}
.tl .dot {
  position: absolute;
  left: -1.05rem;
  top: .2rem;
  width: 12px;
  height: 12px;
  background: #f59e0b;
  border-radius: 999px;
}

/* ================== BUTONLAR ================================= */

.btn-accent {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ecfdf5;
  font-weight: 500;
  border: none;
  border-radius: 0.75rem;
  transition:
    background 0.18s ease-out,
    box-shadow 0.18s ease-out,
    transform 0.18s ease-out;
}
.btn-accent:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 16px 40px rgba(22, 163, 74, 0.55);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid rgba(148, 163, 184, 0.65);
  color: #111827;
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.02);
  transition:
    border-color 0.18s ease-out,
    background 0.18s ease-out,
    transform 0.18s ease-out;
}
.btn-outline:hover {
  border-color: rgba(59, 130, 246, 0.85);
  background: rgba(15, 23, 42, 0.03);
  transform: translateY(-1px);
}

/* Ghost buton (IR filtre vb. için) */
.btn-ghost {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

/* Tag / etiket */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #065f46;
  background: rgba(167, 243, 208, 0.8);
}

/* ================== KARTLAR & YÜZEYLER ======================= */

.card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out,
    background 0.18s ease-out;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  border-color: rgba(37, 99, 235, 0.35);
}

/* Öne çıkan işler kartları */
.cs-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cs-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 30px rgba(2, 6, 23, .08);
}
.cs-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.cs-card:hover .cs-img {
  transform: scale(1.05);
}

/* Ürün kartları / video */
.prod-fig {
  position: relative;
  aspect-ratio: 16/11;
  overflow: hidden;
}
.prod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.prod-card:hover .prod-img {
  transform: scale(1.06);
}
.prod-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.prod-vid.show {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .prod-vid { display: none !important; }
}

/* Lightbox */
#lb { display: none; }
#lb.show { display: flex; }

/* ================== HERO & TESİSLER ========================== */

.hero-wrap {
  position: relative;
  overflow: hidden;
}
.hero-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: 0 -40px;
  background:
    radial-gradient(800px circle at 10% 10%, rgba(34, 197, 94, 0.20), transparent 70%),
    radial-gradient(900px circle at 90% 80%, rgba(59, 130, 246, 0.18), transparent 70%);
  filter: blur(32px);
  opacity: 0.9;
  z-index: -1;
}

/* Hero görselli kartlar */
.hero-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
}
.hero-fig {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .35s ease-out, filter .35s ease-out;
}
.hero-card:hover .hero-img {
  transform: scale(1.06);
  filter: saturate(1.1);
}
.hero-cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
  color: #e5e7eb;
  font-size: 0.8rem;
}

/* Hero arka plan video */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.9);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

/* Tesis kartları */
.fac-card {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.fac-fig {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 18px;
  overflow: hidden;
}
.fac-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform .35s ease-out, filter .35s ease-out, box-shadow .35s ease-out;
}

/* iç degrade */
.fac-fig::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 50%, rgba(255,255,255,0) 55%, rgba(255,255,255,0.06) 100%);
  pointer-events: none;
}

/* Tesis alt başlık etiketi */
.fac-cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.fac-cap .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.75);
  padding: .38rem .65rem;
  border-radius: 999px;
  font-size: .85rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Hover */
.fac-card:hover .fac-img {
  transform: scale(1.06);
  filter: saturate(1.08);
}
.fac-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 2px solid transparent;
  transition: border-color .2s ease;
}
.fac-card:hover::after {
  border-color: var(--accent);
}

/* Mobilde oran değişsin */
@media (max-width: 768px) {
  .fac-fig { aspect-ratio: 4/3; }
}

/* Sektör kartları */
.sector-card {
  display: block;
  border-radius: 1rem;
  padding: 0.9rem 0.95rem;
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.55);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.5rem;
  row-gap: 0.1rem;
  align-items: center;
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    background 0.2s ease-out,
    border-color 0.2s ease-out;
}
.sector-ico {
  font-size: 1.35rem;
  grid-row: 1 / span 2;
}
.sector-t {
  font-weight: 600;
  margin-top: 4px;
}
.sector-d {
  font-size: .78rem;
  opacity: .85;
}
.sector-card:hover {
  transform: translateY(-3px);
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.25), rgba(15, 23, 42, 0.98));
  border-color: rgba(34, 197, 94, 0.8);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.75);
}

/* ================== SERTİFİKALAR & KPI ======================== */

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: stretch;
}

.cert-item {
  flex: 0 0 auto;
  min-width: 120px;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.7);
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out,
    border-color 0.2s ease-out,
    background 0.2s ease-out;
}
.cert-item img.cert-thumb {
  display: block;
  margin: 0 auto 0.4rem;
  height: 42px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.05);
  opacity: 0.9;
  transition: filter 0.25s ease-out, transform 0.25s ease-out, opacity 0.25s ease-out;
}
.cert-item:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.7);
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.28), rgba(15, 23, 42, 0.98));
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.9);
}
.cert-item:hover img.cert-thumb {
  filter: none;
  opacity: 1;
  transform: translateY(-2px);
}
.cert-caption {
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Sertifika modal */
#certModal {
  animation: fadeIn .25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* KPI progress */
.prog {
  position: relative;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.9);
  overflow: hidden;
}
.prog .bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #3b82f6);
}

/* ================== VİDEO / ABOUT BLOK ======================== */

.about-vid-card {
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(2, 6, 23, .08);
}
.about-vid {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.about-vid-cap {
  font-size: .8rem;
  color: #64748b;
  text-align: center;
  padding: .5rem;
}

/* ================== IR – YATIRIMCI İLİŞKİLERİ ================= */

.hero-simple {
  background: #0f172a;
  color: #fff;
}
.page-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
}
.page-sub { opacity: .9; }

.ir-filters {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
}
.ir-filters .filters-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr 2fr auto;
  align-items: end;
}
.ir-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.ir-filters select,
.ir-filters input[type="search"] {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}
.ir-filters .btn-row {
  display: flex;
  gap: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}
.chip .chip-x {
  background: transparent;
  border: none;
  margin-left: 6px;
  cursor: pointer;
}

.ir-list {
  display: grid;
  grid-template-columns: repeat(1, minmax(0,1fr));
  gap: 14px;
}
@media (min-width: 720px) {
  .ir-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  .ir-list { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
.ir-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ir-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #64748b;
}
.ir-badge {
  background: #ffedd5;
  color: #7c2d12;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
}
.ir-card-title {
  font-size: 16px;
  margin: 0;
}
.ir-card-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #475569;
}
.ir-card-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}
.ir-empty {
  text-align: center;
  color: #64748b;
}
.ir-pager {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 18px;
}
.ir-pager .pg {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.ir-pager .pg.is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

/* ================== HEADER & DROPDOWN HELPER ================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  transition: box-shadow .3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 14px rgba(0,0,0,.05);
}

/* Genel dropdown davranışı (header vb.) */
.dropdown {
  position: relative;
}
.dropdown .dropdown-panel {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 8px;
  width: 260px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 16px 35px rgba(15,23,42,.15);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 60;
}
.dropdown:hover .dropdown-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ================== SCROLL REVEAL ============================= */

/* Varsayılan: animasyon öncesi durum */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}
/* JS ile .in-view eklenince */
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Hareket azalt tercihi */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .card,
  .btn-accent,
  .btn-outline {
    transition: none !important;
  }
}

/* ================== RESPONSIVE İYİLEŞTİRME ==================== */

@media (min-width: 1024px) {
  .hero-text {
    max-width: 32rem;
  }
}

/* ================== FOOTER KOYU TEMA UYUMU ==================== */

footer {
  background: #020617; /* body ile aynı ana zemin */
  border-top: 1px solid rgba(148, 163, 184, 0.45);
}

footer .font-semibold {
  color: #e5e7eb;
}

footer p,
footer li,
footer div,
footer span {
  color: #cbd5f5;
}

footer a {
  color: #e5e7eb;
  text-decoration: none;
}

footer a:hover {
  color: #22c55e;
  text-decoration: underline;
}

footer .text-slate-500 {
  color: #64748b !important; /* alt copyright yazısı için */
}
