/*
Theme Name: Fatih Elektronik
Theme URI: https://fatihelektronik.com
Author: Fatih Elektronik
Description: Plaka tanıma, QR geçiş ve güvenlik sistemleri için tek sayfalık kurumsal tema.
Version: 1.1
Requires at least: 6.0
Text Domain: fatih-elektronik
*/

  :root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #eef1f7;
    --text: #0f1420;
    --muted: #5a6276;
    --border: #e0e4ee;
    --accent: #0a7fb8;
    --accent-2: #1cb8ea;
    --accent-soft: rgba(10, 127, 184, .1);
    --ok: #16a34a;
    --shadow: 0 10px 30px rgba(15, 20, 32, .07);
  }
  :root[data-theme="dark"] {
    --bg: #0a0e17;
    --surface: #121826;
    --surface-2: #1a2132;
    --text: #edf1f8;
    --muted: #98a1b6;
    --border: #252d40;
    --accent: #38bdf8;
    --accent-2: #22d3ee;
    --accent-soft: rgba(56, 189, 248, .14);
    --ok: #4ade80;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; scroll-padding-top: 72px; }
  body { font-family: "Inter", system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; transition: background .25s, color .25s; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s, opacity .15s; }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary { background: var(--accent); color: #fff; }
  .btn-ghost { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
  .btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }

  /* Header */
  header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
  .nav { display: flex; align-items: center; gap: 24px; height: 66px; }
  .logo { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 9px; }
  .logo img { height: 52px; width: auto; display: block; }
  .logo-dark { display: none !important; }
  :root[data-theme="dark"] .logo-light { display: none !important; }
  :root[data-theme="dark"] .logo-dark { display: block !important; }
  .logo-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; color: #fff; font-size: .95rem; }
  .nav-links { display: flex; gap: 22px; margin-left: auto; }
  .nav-links a { color: var(--muted); font-weight: 500; font-size: .93rem; }
  .nav-links a:hover { color: var(--text); }
  .nav-right { display: flex; align-items: center; gap: 10px; }
  .icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; font-size: 1rem; }
  .menu-btn { display: none; }
  .nav .btn { padding: 9px 16px; font-size: .88rem; }

  /* Hero */
  .hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 15% 20%, rgba(10,127,184,.6), transparent 50%), radial-gradient(circle at 85% 70%, rgba(28,184,234,.45), transparent 45%), linear-gradient(135deg, #031d2c, #04324a); }
  .hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 36px 36px; }
  .hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 80px 20px; }
  .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); }
  .hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.12; letter-spacing: -.03em; margin: 18px 0; }
  .hero h1 span { background: linear-gradient(90deg, #93c5fd, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .hero p { font-size: 1.08rem; opacity: .85; max-width: 540px; }
  .hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
  .hero-stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
  .hero-stats b { display: block; font-size: 1.6rem; }
  .hero-stats span { font-size: .85rem; opacity: .7; }

  /* LPR mock */
  .lpr { background: rgba(10,16,30,.75); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 16px; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
  .lpr-top { display: flex; justify-content: space-between; font-size: .78rem; opacity: .75; margin-bottom: 10px; }
  .live { display: inline-flex; align-items: center; gap: 6px; }
  .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: blink 1.2s infinite; }
  @keyframes blink { 50% { opacity: .2; } }
  .cam { position: relative; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #1e293b 0%, #334155 55%, #475569 55%, #3f4a5c 100%); }
  .car { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); width: 58%; aspect-ratio: 2.1/1; background: linear-gradient(180deg, #94a3b8, #64748b); border-radius: 22% 22% 10% 10%; }
  .car::before { content: ""; position: absolute; left: 14%; right: 14%; top: 10%; height: 36%; background: #1e293b; border-radius: 30% 30% 6% 6%; }
  .plate-box { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); width: 34%; aspect-ratio: 4.6/1; background: #f8fafc; border-radius: 3px; display: grid; place-items: center; color: #0f172a; font-weight: 800; font-size: clamp(.55rem, 1.3vw, .85rem); letter-spacing: .05em; border-left: 7px solid #1d4ed8; }
  .scan { position: absolute; left: 50%; bottom: 10%; transform: translateX(-50%); width: 42%; aspect-ratio: 3.4/1; border: 2px solid #22d3ee; border-radius: 4px; box-shadow: 0 0 18px rgba(34,211,238,.6); }
  .scan::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: #22d3ee; animation: scan 1.8s ease-in-out infinite; }
  @keyframes scan { 0%,100% { top: 0; } 50% { top: calc(100% - 2px); } }
  .barrier { position: absolute; right: 6%; bottom: 30%; width: 34%; height: 6px; background: repeating-linear-gradient(90deg, #ef4444 0 14px, #fff 14px 28px); transform-origin: right center; border-radius: 3px; transition: transform .8s ease; }
  .barrier.open { transform: rotate(-80deg); }
  .lpr-result { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 12px; }
  .lpr-result div { background: rgba(255,255,255,.06); border-radius: 10px; padding: 10px; font-size: .75rem; }
  .lpr-result b { display: block; font-size: .95rem; margin-top: 2px; }
  .granted { color: #4ade80; }

  /* Sections */
  section { padding: 80px 0; }
  .section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
  .kicker { color: var(--accent); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
  .section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.02em; margin: 8px 0 10px; line-height: 1.2; }
  .section-head p { color: var(--muted); }
  .alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

  /* Products */
  .products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .product { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
  .product-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.7rem; background: var(--accent-soft); }
  .badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-left: 8px; vertical-align: middle; }
  .product h3 { font-size: 1.4rem; margin: 18px 0 8px; }
  .product > p { color: var(--muted); margin-bottom: 18px; }
  .checks { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; flex: 1; }
  .checks li { display: flex; gap: 10px; font-size: .95rem; }
  .checks li::before { content: "✓"; color: var(--ok); font-weight: 800; }

  /* Audience */
  .audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .aud { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
  .aud .e { font-size: 2rem; }
  .aud h3 { font-size: 1.05rem; margin: 10px 0 6px; }
  .aud p { color: var(--muted); font-size: .9rem; }

  /* Steps */
  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
  .step { position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
  .step::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 800; margin-bottom: 14px; }
  .step h3 { font-size: 1.02rem; margin-bottom: 6px; }
  .step p { color: var(--muted); font-size: .9rem; }

  /* Services */
  .services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .service { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
  .service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
  .service .e { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: var(--accent-soft); }
  .service h3 { font-size: 1.02rem; margin: 14px 0 6px; }
  .service p { color: var(--muted); font-size: .88rem; }

  /* Why */
  .why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .why-item { display: flex; gap: 14px; }
  .why-item .e { font-size: 1.6rem; }
  .why-item h3 { font-size: 1rem; margin-bottom: 4px; }
  .why-item p { color: var(--muted); font-size: .9rem; }

  /* Contact */
  .contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
  .contact-info { background: linear-gradient(135deg, #04506f, #0aa5d8); color: #fff; border-radius: 20px; padding: 32px; }
  .contact-info h3 { font-size: 1.4rem; margin-bottom: 10px; }
  .contact-info p { opacity: .9; margin-bottom: 22px; }
  .ci { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
  .ci span { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.15); display: grid; place-items: center; }
  form.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
  .field { display: flex; flex-direction: column; gap: 6px; }
  .field.full { grid-column: 1 / -1; }
  .field label { font-size: .85rem; font-weight: 600; }
  .field input, .field select, .field textarea { font: inherit; font-size: .95rem; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); outline: none; }
  .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
  .form-msg { grid-column: 1/-1; color: var(--ok); font-weight: 600; min-height: 1.2em; }

  footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: .88rem; }
  .foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .wa { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 10px 25px rgba(34,197,94,.45); z-index: 60; }

  @media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; padding: 56px 20px; }
    .products, .contact { grid-template-columns: 1fr; }
    .audience, .steps, .services { grid-template-columns: repeat(2, 1fr); }
    .why { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: 18px 20px; gap: 14px; }
    .nav-links.open { display: flex; }
    .menu-btn { display: grid; }
  }
  @media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    .hero-inner { padding: 44px 16px; }
    section { padding: 56px 0; }
    .audience, .steps, .services, .why { grid-template-columns: 1fr; }
    form.card { grid-template-columns: 1fr; padding: 22px; }
    .product, .contact-info { padding: 24px; }
    .nav .btn { display: none; }
    .lpr-result { grid-template-columns: 1fr 1fr; }
  }
