/*
Theme Name: TENFEI Access Pro
Theme URI: https://tenfeiaccess.com.tr/
Description: TENFEI ACCESS için temasız, sıfır bağımlılıklı yüksek performanslı kurumsal biyometri ve geçiş kontrol teması.
Version: 1.0.0
Author: TENFEI ACCESS
Author URI: https://tenfeiaccess.com.tr/
Text Domain: tenfeiaccess-pro
*/

:root {
  --navy: #0b132b;
  --navy2: #060b18;
  --navy3: #1c2541;
  --blue: #0284c7;
  --cyan: #38bdf8;
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --ink: #0f172a;
  --mut: #64748b;
  --bg: #f8fafc;
  --line: #e2e8f0;
  --wa: #25D366;
  --r: 16px;
  --sh: 0 10px 30px rgba(11, 19, 43, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.65;
  overflow-x: clip;
  font-size: 16px;
}
body.lock { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy); }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 840px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 10px; top: 10px; background: #fff; padding: 8px; z-index: 99999; }
.ico { flex: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-call { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(2, 132, 199, .28); }
.btn-call:hover { background: #0369a1; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(37, 211, 102, .28); }
.btn-wa:hover { background: #1eb956; }
.btn-gold { background: var(--gold); color: #000; font-weight: 800; box-shadow: 0 6px 18px var(--gold-glow); }
.btn-gold:hover { background: #d97706; color: #fff; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .85rem; }
.btn-block { display: flex; width: 100%; margin-top: 10px; }

/* Top bar (Kurumsal Bilgi Şeridi) */
.pry-topbar {
  background: var(--navy2);
  color: #94a3b8;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}
.pry-topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.pry-topbar-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
}
.pry-topbar-badge b { color: var(--gold); }
.pry-topbar-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}
.pry-topbar-contacts a {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.pry-topbar-contacts a:hover { color: #fff; }

/* Sticky Mainbar */
.hdr {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.brand-sep {
  width: 1px;
  height: 28px;
  background: #cbd5e1;
}
.brand-meta {
  display: flex;
  flex-direction: column;
}
.brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .dd-btn {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--navy);
  font-weight: 600;
  font-size: .92rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background .15s ease;
}
.nav > a:hover, .dd-btn:hover { background: var(--bg); color: var(--blue); }
.dd { position: relative; }
.dd-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 10px;
}
.dd-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.dd.is-open .dd-menu { display: block; }
.dd-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--navy);
  font-weight: 600;
  font-size: .92rem;
  min-height: 44px;
  transition: background .15s ease;
}
.dd-menu a:hover { background: #f0f9ff; color: var(--blue); }
.dd-menu .ico { color: var(--blue); width: 22px; height: 22px; }
.nav-badge-link {
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.35);
  color: var(--blue) !important;
  font-size: .84rem !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  white-space: nowrap;
}
.nav-badge-link:hover { background: var(--blue) !important; color: #fff !important; }

.hdr-act { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--navy);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span { width: 20px; height: 2px; background: #fff; display: block; }

/* Hero */
.hero {
  background: radial-gradient(1000px 500px at 85% 0%, rgba(245, 158, 11, .2), transparent 60%),
              radial-gradient(800px 400px at 10% 100%, rgba(2, 132, 199, .25), transparent 60%),
              linear-gradient(135deg, var(--navy2) 0%, var(--navy) 60%, var(--navy3) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-in {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  align-items: center;
  padding: clamp(48px, 7vw, 92px) 20px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero p {
  color: #cbd5e1;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 58ch;
  line-height: 1.7;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .15);
  border: 1px solid rgba(245, 158, 11, .45);
  color: #fde68a;
  font-weight: 700;
  font-size: .82rem;
  margin-bottom: 18px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0; }
.stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 18px; }
.stats b { display: block; font-size: 2rem; color: #fff; font-weight: 800; }
.stats span { color: #94a3b8; font-size: .85rem; }

.hero-vis { position: relative; min-height: 340px; }
.orb {
  position: absolute;
  inset: 10% 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(245, 158, 11, .45), rgba(2, 132, 199, .2) 60%, transparent 70%);
  filter: blur(10px);
}
.glass {
  position: absolute;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.glass b { color: #fff; font-size: 1.05rem; }
.glass span { font-size: .82rem; color: #cbd5e1; }
.g1 { top: 6%; left: 2%; }
.g2 { top: 40%; right: 0; border-left: 4px solid var(--gold); }
.g3 { bottom: 6%; left: 10%; border-left: 4px solid var(--cyan); }

/* Sections */
.sec { padding: clamp(44px, 6vw, 80px) 0; }
.sec.alt { background: var(--bg); }
.sec-t { font-size: clamp(1.6rem, 3.2vw, 2.3rem); text-align: center; font-weight: 800; }
.sec-s { text-align: center; color: var(--mut); margin: 0 auto 36px; max-width: 62ch; font-size: 1.05rem; }
.grid { display: grid; gap: 24px; }
.cats { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.cat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  color: var(--ink);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.cat:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 36px rgba(245, 158, 11, 0.12); }
.cat h3 { font-size: 1.2rem; margin: 0; font-weight: 800; }
.cat p { margin: 0; color: var(--mut); font-size: .95rem; line-height: 1.6; }
.cat-ico {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
}
.cat-n {
  margin-top: auto;
  font-weight: 800;
  color: var(--blue);
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.why { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 30px; }
.why-i {
  background: #fff;
  padding: 26px;
  border-radius: var(--r);
  border-left: 4px solid var(--gold);
  box-shadow: var(--sh);
}
.why-i h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.why-i p { margin: 0; color: var(--mut); font-size: .95rem; }

/* Page Head */
.phead {
  background: linear-gradient(135deg, var(--navy2) 0%, var(--navy) 100%);
  color: #fff;
  padding: clamp(40px, 5vw, 68px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.phead h1 {
  color: #fff;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  max-width: 950px;
  font-weight: 900;
}
.phead p { color: #cbd5e1; max-width: 75ch; font-size: 1.05rem; line-height: 1.7; }
.crumb { font-size: .85rem; color: #94a3b8; margin-bottom: 14px; }
.crumb a { color: var(--cyan); }

/* Tabs & Instant Search */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.tab {
  padding: 0 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
  font-size: .88rem;
  transition: all .15s ease;
}
.tab.on, .tab:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.ph-search-row { max-width: 580px; margin: 20px auto 30px; }
.ph-search-input {
  width: 100%;
  border-radius: 999px;
  padding: 14px 22px;
  border: 2px solid var(--line);
  font-size: 1rem;
  min-height: 48px;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ph-search-input:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.is-search-hidden { display: none !important; }

/* Products Grid */
.prods { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pro-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pro-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px rgba(11, 19, 43, 0.12);
}
.pro-card .pro-img {
  height: 220px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 16px;
  padding: 14px;
  overflow: hidden;
  position: relative;
}
.pro-card .pro-img .pro-thumb {
  max-height: 190px !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  margin: 0 auto;
  transition: transform .25s ease;
}
.pro-card:hover .pro-thumb { transform: scale(1.05); }
.badge {
  position: absolute;
  top: 32px;
  left: 32px;
  background: var(--navy);
  color: #fff;
  font-size: .7rem;
  letter-spacing: .08em;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.badge-gold { background: var(--gold); color: #000; border-color: transparent; }
.pro-card h2 { font-size: 1.25rem; margin-bottom: 4px; font-weight: 800; }
.sub { color: var(--blue); font-weight: 700; font-size: .88rem; margin: 0 0 14px; }
.pro-card ul { margin-bottom: 20px; }
.pro-card li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: .92rem;
  color: #334155;
  border-bottom: 1px dashed var(--line);
}
.pro-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.pro-act { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }

/* FAQ */
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 12px 0;
  padding: 0 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--navy);
  padding: 16px 0;
  min-height: 44px;
  font-size: 1.02rem;
}
.faq p { margin: 0 0 16px; color: var(--mut); line-height: 1.7; font-size: .95rem; }
.prose { font-size: 1.05rem; line-height: 1.8; }

/* Footer (4 Sütunlu Altbilgi Mimarisi) */
.ftr {
  background: var(--navy2);
  color: #94a3b8;
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ftr-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 44px;
}
.ftr-logo-box {
  background: #fff;
  padding: 8px 14px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 16px;
}
.ftr-logo-box img { height: 46px; width: auto; object-fit: contain; }
.ftr-desc { color: #94a3b8; font-size: .92rem; line-height: 1.6; margin-bottom: 18px; }
.ftr-badges { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; color: #cbd5e1; }
.ftr-badges span { display: inline-flex; align-items: center; gap: 6px; }
.ftr-badges span::before { content: "✓"; color: var(--gold); font-weight: 800; }
.ftr-h { color: #fff; font-size: 1.05rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.01em; }
.ftr li { padding: 5px 0; font-size: .92rem; }
.ftr a { color: #94a3b8; transition: color .15s ease; }
.ftr a:hover { color: #fff; }
.ftr .btn { color: #fff; }
.ftr-bot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  font-size: .85rem;
  color: #64748b;
}
.ftr-bot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.ftr-legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.ftr-legal-links a { color: #94a3b8; }
.ftr-legal-links a:hover { color: #fff; }

/* Floating WhatsApp & Mobile Bar */
.fwa {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  display: grid;
  place-items: center;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.mbar { display: none; }

/* Blog & Rehber Layout */
.blog-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.blog-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.blog-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.blog-date { font-size: .82rem; color: var(--mut); }
.blog-card h2, .blog-card h3 { font-size: 1.2rem; margin: 0 0 10px; line-height: 1.4; font-weight: 800; }
.blog-card h2 a, .blog-card h3 a { color: var(--navy); }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--blue); }
.blog-card p { color: var(--mut); font-size: .95rem; margin: 0 0 18px; line-height: 1.6; }
.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: .88rem;
}
.blog-link { font-weight: 800; color: var(--blue); }

.art-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.art-content { background: #fff; }
.art-content table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: .95rem; }
.art-content th, .art-content td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; }
.art-content th { background: #f8fafc; color: var(--navy); font-weight: 800; }
.art-cta-box {
  background: linear-gradient(135deg, var(--navy2) 0%, var(--navy) 100%);
  color: #fff;
  padding: 34px;
  border-radius: var(--r);
  margin: 40px 0;
  box-shadow: var(--sh);
  border-left: 4px solid var(--gold);
}
.art-cta-box h3 { color: #fff; font-size: 1.45rem; font-weight: 800; margin: 8px 0 12px; }
.art-cta-box p { color: #cbd5e1; margin-bottom: 22px; line-height: 1.7; }
.art-sidebar { display: flex; flex-direction: column; gap: 24px; }
.side-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--sh);
}
.side-box h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }
.side-links li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.side-links a { display: flex; justify-content: space-between; align-items: center; color: var(--navy); font-weight: 600; font-size: .92rem; }
.side-links a:hover { color: var(--blue); }

/* Responsive Adaptations */
@media(max-width: 1100px) {
  .burger { display: flex; }
  .nav {
    display: none;
    position: fixed;
    inset: 72px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 6px;
    overflow-y: auto;
    z-index: 9998;
  }
  .nav.open { display: flex; }
  .dd-menu { position: static; width: 100%; box-shadow: none; border: 0; padding: 0 0 0 10px; }
  .dd-btn { width: 100%; text-align: left; }
}

@media(max-width: 960px) {
  .art-layout { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}

@media(max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-vis { display: none; }
}

@media(max-width: 768px) {
  .pry-topbar-in { justify-content: center; text-align: center; }
  .pry-topbar-badge { display: none; }
  .hdr-act .btn { display: none; }
  .brand img { height: 38px; }
  .mbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 52px;
    z-index: 9998;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
  }
  .mbar a {
    flex: 1;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: .92rem;
    background: var(--blue);
  }
  .mbar a + a { background: var(--wa); }
  body { padding-bottom: 56px; }
  .fwa { bottom: 70px; right: 16px; width: 50px; height: 50px; }
  .wrap { padding: 0 14px; }
  .stats { gap: 20px; }
}

@media(max-width: 560px) {
  .ftr-grid { grid-template-columns: 1fr; }
}

@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
