@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #0b1e36;
  --color-primary-light: #122b4d;
  --color-accent: #0284c7;
  --color-accent-light: #38bdf8;
  --color-dark: #0f172a;
  --color-light: #f8fafc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism */
.glass-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-dark {
  background: rgba(11, 30, 54, 0.92);
  backdrop-filter: blur(12px);
}

/* Card Hover & Corner Clipping Fix */
.product-card, .clean-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1rem;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  isolation: isolate;
  background-color: #ffffff;
}
.product-card:hover, .clean-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(11, 30, 54, 0.12);
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  min-width: 300px;
  max-width: 450px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success {
  background: #064e3b;
  color: #ecfdf5;
  border-left: 5px solid #10b981;
}

.toast-error {
  background: #7f1d1d;
  color: #fef2f2;
  border-left: 5px solid #ef4444;
}

.toast-info {
  background: #0c4a6e;
  color: #f0f9ff;
  border-left: 5px solid #0284c7;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Modal Animations */
.modal-overlay {
  animation: fadeIn 0.2s ease-out forwards;
}

.modal-content {
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Industrial Grid Background */
.bg-industrial-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(2, 132, 199, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(2, 132, 199, 0.05) 1px, transparent 1px);
}


/* =====================================================================
   YENİ TASARIM — Kurumsal mavi / kartlı
   ===================================================================== */
:root {
  --navy: #0b2545;
  --blue: #13518c;
  --sky: #0ea5e9;
  --sky-dark: #0284c7;
  --bg: #f1f5f9;
  --mut: #64748b;
}

body.bg-slate-50 { background: var(--bg); }

/* ---- Top bar ---- */
.topbar { background: var(--navy); color: #b9cbe6; font-size: 12.5px; }
.topbar a { transition: color .2s; }

/* ---- Header / nav ---- */
.glass-header { background: rgba(255,255,255,.92); }
.nav-link {
  padding: .55rem .9rem; border-radius: .75rem; font-weight: 600; color: #475569;
  position: relative; transition: all .2s;
}
.nav-link:hover { color: var(--navy); background: #f1f5f9; }
.nav-link.nav-active { color: var(--sky-dark); background: #e0f2fe; font-weight: 700; }

/* ---- Buttons ---- */
.btn-cta, .btn-white, .btn-outline, .btn-navy {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .875rem;
  padding: .75rem 1.5rem; border-radius: .85rem; transition: all .2s; text-align: center; justify-content: center;
}
.btn-cta { background: var(--sky); color: #fff; padding: .6rem 1.25rem; box-shadow: 0 6px 16px -6px rgba(14,165,233,.7); }
.btn-cta:hover { background: var(--sky-dark); transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--navy); padding: .9rem 1.75rem; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.btn-white:hover { transform: translateY(-2px); background: #f0f9ff; }
.btn-outline { color: #fff; border: 1px solid rgba(255,255,255,.45); padding: .9rem 1.5rem; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); }

/* ---- Hero (ana sayfa) ---- */
.hero-modern {
  position: relative; margin: 20px max(1rem, 3vw) 0; border-radius: 28px; overflow: hidden; color: #fff;
  min-height: 540px; display: flex; align-items: center; padding: 4rem 0 7rem;
  background:
    linear-gradient(100deg, rgba(11,37,69,.96) 30%, rgba(11,37,69,.72) 62%, rgba(11,37,69,.45)),
    url('/images/banner-hero-clean.jpg') center / cover;
}
.hero-copy { max-width: 700px; display: flex; flex-direction: column; gap: 1.25rem; animation: fadeUp .7s ease both; }
.hero-copy h1 { font-size: clamp(1.68rem, 4vw, 3.12rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.hero-copy h1 span { color: #7dd3fc; }
.hero-copy p { font-size: 1.1rem; color: #dbe7f6; max-width: 540px; line-height: 1.6; }
.badge-pill {
  display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: .4rem .95rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: #e0f2fe;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---- Stats card ---- */
.stats-card {
  margin-top: -3.2rem; background: #fff; border-radius: 22px; padding: 1.6rem 1rem;
  box-shadow: 0 18px 44px -14px rgba(15,23,42,.28);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; text-align: center;
}
.stats-card b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--sky-dark); line-height: 1.2; }
.stats-card span { font-size: .8rem; color: var(--mut); }
.stats-card > div + div { border-left: 1px solid #e2e8f0; }
@media (max-width: 640px) { .stats-card > div:nth-child(3) { border-left: 0; } .hero-modern { padding-bottom: 6rem; } }

/* ---- Section heading ---- */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 2.5rem; }
.section-head small, .eyebrow { color: var(--sky-dark); font-weight: 800; letter-spacing: .14em; font-size: .72rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; color: #0f172a; margin: .4rem 0; }
.section-head p { color: var(--mut); }

/* ---- Category cards ---- */
.cat-card {
  display: block; background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 6px 24px -8px rgba(15,23,42,.14); transition: all .25s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px -10px rgba(15,23,42,.28); }
.cat-img { height: 170px; overflow: hidden; background: #e2e8f0; position: relative; z-index: 1; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover .cat-img img { transform: scale(1.06); }
.cat-card h3 { font-weight: 800; color: #0f172a; margin-bottom: .35rem; }
.cat-card p { font-size: .82rem; color: var(--mut); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card em { display: inline-block; margin-top: .8rem; color: var(--sky-dark); font-style: normal; font-weight: 700; font-size: .85rem; }
.cat-card.skeleton { height: 330px; background: linear-gradient(90deg,#e2e8f0,#f1f5f9,#e2e8f0); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- About / ticks & Dual Image Hover ---- */
.about-img-box {
  min-height: 380px;
  border-radius: 26px;
  box-shadow: 0 18px 44px -14px rgba(15, 23, 42, 0.35);
  position: relative;
  overflow: hidden;
  background-color: #0b1e36;
  isolation: isolate;
  transform: translateZ(0);
}
.about-img-base,
.about-img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0) scale(1);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-img-base {
  opacity: 1;
  z-index: 1;
}
.about-img-hover {
  opacity: 0;
  z-index: 2;
}
.about-img-box:hover .about-img-base {
  opacity: 0;
  transform: translateZ(0) scale(1.04);
}
.about-img-box:hover .about-img-hover {
  opacity: 1;
  transform: translateZ(0) scale(1.04);
}
.about-img {
  min-height: 380px; border-radius: 26px; box-shadow: 0 18px 44px -14px rgba(15,23,42,.35);
  background: url('/images/factory/fabrika-uretim-hatti.jpg') center / cover;
}
.ticks { list-style: none; padding: 0; display: grid; gap: .85rem; }
.ticks li { display: flex; align-items: center; gap: .75rem; font-weight: 600; color: #1e293b; font-size: 0.95rem; }
.ticks li .tick-icon,
.ticks li > span:first-child { width: 24px; height: 24px; min-width: 24px; border-radius: 50%; background: #e0f2fe; color: var(--sky-dark); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ticks li .tick-icon svg,
.ticks li > span:first-child svg { width: 13px; height: 13px; }
.ticks li > span:last-child:not(:first-child) { width: auto; height: auto; border-radius: 0; background: transparent; color: inherit; display: inline; flex: 1; }

/* ---- Steps ---- */
.step { background: #fff; border-radius: 20px; padding: 1.6rem; box-shadow: 0 6px 20px -8px rgba(15,23,42,.12); counter-increment: st; }
.step:before { content: "0" counter(st); display: block; font-size: 2.1rem; font-weight: 800; color: #bae6fd; margin-bottom: .25rem; }
.step h3 { font-weight: 800; color: #0f172a; margin-bottom: .3rem; }
.step p { font-size: .88rem; color: var(--mut); }
.grid:has(> .step) { counter-reset: st; }

/* =====================================================================
   ETKİLEŞİMLİ KARTLAR (bartender.com.tr Alttan Üste Koyu Dolum Efekti)
   ===================================================================== */
.interactive-fill-card,
.cat-card,
.step {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background-color: #ffffff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 1;
}

/* Koyu grimsi siyah dolgu katmanı (alttan üste doğru kayar) */
.interactive-fill-card::after,
.cat-card::after,
.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  transform: translate3d(0, 100%, 0);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
}

/* Hover anında dolgu tüm kutuyu kaplar */
.interactive-fill-card:hover::after,
.cat-card:hover::after,
.step:hover::after {
  transform: translate3d(0, 0, 0);
}

/* Hover anında kartın hafif yükselmesi ve derinlik gölgesi */
.interactive-fill-card:hover,
.cat-card:hover,
.step:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.38) !important;
  border-color: #334155 !important;
}

/* Kart içi tüm katmanlar dolgunun üstünde yer almalıdır */
.interactive-fill-card > *,
.cat-card > *,
.step > * {
  position: relative;
  z-index: 1;
}

/* Kart içi yazı ve ikon renk yumuşak geçişleri */
.interactive-fill-card h1, .interactive-fill-card h2, .interactive-fill-card h3, .interactive-fill-card h4, .interactive-fill-card h5,
.interactive-fill-card b, .interactive-fill-card strong, .interactive-fill-card p, .interactive-fill-card span,
.interactive-fill-card div, .interactive-fill-card a, .cat-card h3, .cat-card p, .cat-card em, .step h3, .step p {
  transition: color 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
}

/* Hover anında başlıklar beyaz */
.interactive-fill-card:hover h1,
.interactive-fill-card:hover h2,
.interactive-fill-card:hover h3,
.interactive-fill-card:hover h4,
.interactive-fill-card:hover h5,
.interactive-fill-card:hover b,
.interactive-fill-card:hover strong,
.cat-card:hover h3,
.step:hover h3 {
  color: #ffffff !important;
}

/* Hover anında paragraflar ve açıklamalar açık gümüş/kül grisi */
.interactive-fill-card:hover p,
.interactive-fill-card:hover .text-slate-600,
.interactive-fill-card:hover .text-slate-500,
.interactive-fill-card:hover .text-slate-700,
.cat-card:hover p,
.step:hover p {
  color: #cbd5e1 !important;
}

.interactive-fill-card:hover .text-slate-400 {
  color: #94a3b8 !important;
}

/* Step numarası hover anında parlak gök mavisi / cyan */
.step:before {
  position: relative;
  z-index: 1;
  transition: color 0.35s ease, transform 0.35s ease;
}
.step:hover:before {
  color: #38bdf8 !important;
  transform: translateX(4px);
}

/* Vurgulu link ve yön okları */
.cat-card:hover em,
.interactive-fill-card:hover em,
.interactive-fill-card:hover a.text-brand-accent,
.interactive-fill-card:hover .text-brand-accent {
  color: #38bdf8 !important;
}

/* İkon ve rozet kutuları */
.interactive-fill-card:hover .bg-sky-50,
.interactive-fill-card:hover .bg-sky-100 {
  background-color: rgba(56, 189, 248, 0.16) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
}
.interactive-fill-card:hover .bg-sky-50 svg,
.interactive-fill-card:hover .bg-sky-100 svg {
  color: #38bdf8 !important;
}

.interactive-fill-card:hover .bg-slate-50,
.interactive-fill-card:hover .bg-slate-100 {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.interactive-fill-card:hover .text-slate-700 {
  color: #f1f5f9 !important;
}

/* Kart içi ayırıcı çizgiler */
.interactive-fill-card:hover .border-slate-100,
.interactive-fill-card:hover .border-slate-200,
.interactive-fill-card:hover .border-slate-200\/80,
.interactive-fill-card:hover .border-slate-200\/60 {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* ---- Certificate strip & CTA band ---- */
.cert-strip { background: #fff; border-radius: 24px; padding: 1.8rem 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; box-shadow: 0 6px 24px -8px rgba(15,23,42,.12); }
.pill { border: 1px solid #cbd5e1; border-radius: 14px; padding: .6rem 1.1rem; font-weight: 700; font-size: .85rem; color: var(--navy); }
.cta-band {
  border-radius: 28px; color: #fff; padding: 3.2rem 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: linear-gradient(120deg, var(--navy), var(--blue) 60%, var(--sky));
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 800; max-width: 560px; }

/* ---- Inner page hero ---- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  max-width: 80rem; width: calc(100% - 2rem); margin: 22px auto 0; border-radius: 26px; padding: 3.2rem 0;
  background: linear-gradient(120deg, var(--navy), var(--blue) 62%, var(--sky));
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); pointer-events: none;
}
.page-hero .text-brand-cyan { color: #bae6fd; }
.page-hero .text-slate-300 { color: #dbe7f6; }

/* ---- Cards in inner pages ---- */
main .rounded-2xl { border-radius: 1.35rem; }
main .rounded-3xl { border-radius: 1.6rem; }
main .shadow-sm { box-shadow: 0 6px 22px -10px rgba(15,23,42,.16); }
main .border-slate-200 { border-color: #e6ecf3; }
main input:focus, main textarea:focus, main select:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: var(--sky); }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: #94a8c6; margin-top: 4rem; }
.footer-title { color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { transition: color .2s; }

/* ---- WhatsApp floating ---- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: .5rem;
  background: #25d366; color: #fff; font-weight: 700; font-size: .875rem; padding: .85rem 1.1rem; border-radius: 999px;
  box-shadow: 0 10px 26px -6px rgba(0,0,0,.45); transition: transform .2s;
}
.wa-float:hover { transform: translateY(-3px); }
#toast-container { bottom: 84px; }