/* ============================================================
   Didim Elektrik — site stylesheet
   Dark theme, orange accent, "circuit trace" signature motif
   ============================================================ */

:root {
  --bg: #10141b;
  --bg-deep: #0b0e14;
  --surface: #171d26;
  --surface-2: #1d242f;
  --line: #29313d;
  --text: #e9ecf1;
  --muted: #9aa4b2;
  --accent: #ff7a1a;
  --accent-soft: #ffb25e;
  --accent-dim: rgba(255, 122, 26, 0.12);
  --ok: #59c98a;
  --radius: 14px;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.logo:hover { color: var(--text); }
.logo .bolt { color: var(--accent); font-style: normal; }
.logo small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  line-height: 0;
}

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #14100b;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-call:hover {
  color: #14100b;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 122, 26, 0.35);
}

/* ---------- Circuit trace (signature) ---------- */

.trace {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.trace .eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.trace .wire {
  flex: 1;
  height: 10px;
  background:
    radial-gradient(circle 3px at 12px 5px, var(--accent) 98%, transparent) no-repeat,
    linear-gradient(var(--line), var(--line)) 0 4.5px / 100% 1px no-repeat;
  position: relative;
}
.trace .wire::after {
  content: "";
  position: absolute;
  right: 0;
  top: 2px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 84px 0 72px;
  background:
    radial-gradient(ellipse 60% 50% at 75% 0%, rgba(255, 122, 26, 0.08), transparent),
    var(--bg-deep);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  max-width: 18ch;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lead {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 32px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn-phone-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #14100b;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  padding: 16px 28px;
  border-radius: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-phone-big:hover {
  color: #14100b;
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(255, 122, 26, 0.4);
}
.btn-phone-big .sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  padding: 15px 24px;
  border-radius: 14px;
  transition: border-color 0.15s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.hero-badges span { display: inline-flex; align-items: center; gap: 7px; }
.hero-badges .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* schematic wire across hero bottom */
.hero-wire {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,122,26,.55), transparent);
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-alt { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 14px;
  max-width: 26ch;
}
.section .section-lead { color: var(--muted); max-width: 62ch; margin-bottom: 40px; }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: rgba(255, 122, 26, 0.45); transform: translateY(-3px); }

.card .circuit-no {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}
.card h3 { font-size: 1.15rem; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent-soft); }
.card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card .more { font-size: 0.9rem; font-weight: 600; color: var(--accent); }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Area chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.88rem;
}
.chips span strong { color: var(--text); font-weight: 600; }

/* ---------- FAQ ---------- */

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(ellipse 70% 100% at 50% 100%, rgba(255, 122, 26, 0.14), transparent),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 44px 36px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 10px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- Prose (blog + service body) ---------- */

.page-head { padding: 56px 0 30px; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; max-width: 24ch; margin: 10px 0 14px; }
.page-head .meta { color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.breadcrumbs { font-size: 0.85rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-soft); }

.prose { padding: 48px 0 24px; }
.prose h2 {
  font-size: 1.5rem;
  margin: 40px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; color: #c6cdd6; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: #c6cdd6; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.93rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--surface); color: var(--text); }
.prose td { color: #c6cdd6; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 18px 0;
  color: var(--muted);
}

.callout {
  background: var(--accent-dim);
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 26px 0;
}
.callout p { margin: 0; color: var(--text); }
.callout a { font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ---------- Blog cards ---------- */

.post-card { text-align: left; }
.post-card time { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }

.related { margin: 44px 0 20px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.related h2 { font-size: 1.1rem; border: 0; padding: 0; margin: 0 0 12px; }
.related ul { margin: 0 0 0 20px; }
.related li { margin-bottom: 8px; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-box h2 { font-size: 1.2rem; margin-bottom: 16px; }
.contact-box dl div { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-box dl div:last-child { border-bottom: 0; }
.contact-box dt { color: var(--muted); min-width: 120px; font-size: 0.9rem; }
.contact-box dd { color: var(--text); font-weight: 500; }
.contact-box dd a { color: var(--accent-soft); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 56px 0 90px;
  margin-top: 72px;
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #b7bfc9; }
.site-footer a:hover { color: var(--accent-soft); }
.site-footer .about { color: var(--muted); max-width: 34ch; }
.site-footer .about .logo { margin-bottom: 12px; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}

/* ---------- Mobile sticky call bar ---------- */

.mobile-call {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 60;
  background: var(--accent);
  color: #14100b;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.mobile-call:hover { color: #14100b; }

/* ---------- Floating WhatsApp button ---------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Site asistanı ---------- */

.ai-launcher {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 56;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #ff9a4d);
  color: #14100b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ai-launcher:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 30px rgba(255, 122, 26, 0.45); }
.ai-launcher svg { width: 28px; height: 28px; }
.ai-launcher.ai-open { background: var(--surface-2); color: var(--text); }

.ai-panel {
  position: fixed;
  right: 20px;
  bottom: 162px;
  z-index: 57;
  width: 360px;
  max-width: calc(100vw - 40px);
  max-height: min(560px, calc(100vh - 190px));
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.ai-head strong { display: block; font-family: var(--font-display); font-size: 0.98rem; }
.ai-head small { color: var(--muted); font-size: 0.75rem; }
.ai-dot { width: 9px; height: 9px; border-radius: 50%; background: #59c98a; flex: none; box-shadow: 0 0 8px #59c98a; }
.ai-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
}
.ai-close:hover { color: var(--text); }

.ai-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 140px;
}
.ai-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.ai-bot { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; color: #d5dae1; border-bottom-left-radius: 4px; }
.ai-user { background: var(--accent); color: #14100b; font-weight: 500; align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-typing { color: var(--muted); letter-spacing: 3px; }
.ai-msg a { color: var(--accent-soft); font-weight: 600; }
.ai-cta {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #14100b !important;
  font-weight: 700;
  font-size: 0.85rem;
}
.ai-cta-wa { background: #25d366; }

.ai-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  scrollbar-width: none;
}
.ai-chips::-webkit-scrollbar { display: none; }
.ai-chips button {
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.8rem;
  cursor: pointer;
}
.ai-chips button:hover { border-color: var(--accent); color: var(--text); }

.ai-form {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
}
.ai-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  padding: 10px 16px;
  font-size: 0.92rem;
  font-family: var(--font-body);
}
.ai-input:focus { outline: none; border-color: var(--accent); }
.ai-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #14100b;
  font-size: 1rem;
  cursor: pointer;
}
.ai-send:hover { filter: brightness(1.1); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle-label { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 20px;
  }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom: 1px solid var(--accent); }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .header-inner .btn-call { display: none; }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 52px; }
  .mobile-call { display: block; right: 86px; font-size: 1rem; white-space: nowrap; overflow: hidden; }
  .wa-float { right: 12px; bottom: 12px; }
  .ai-launcher { right: 12px; bottom: 82px; width: 54px; height: 54px; }
  .ai-panel { right: 12px; left: 12px; bottom: 146px; width: auto; max-height: calc(100vh - 170px); }
  body { padding-bottom: 84px; }
}

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

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