/* ==========================================================================
   COMPONENTS — buttons, cards, chips, tags (reusable across pages)
   ========================================================================== */

.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  border-color: transparent;
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { box-shadow: 0 20px 50px -14px rgba(124,58,237,.6); }

.btn--soft {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
.btn--soft:hover { border-color: var(--border-strong); background: var(--surface-3); }

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }

.btn--lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-base); }
.btn--block { width: 100%; }

/* On dark "ink" blocks */
.on-ink .btn--soft { background: rgba(255,255,255,.08); border-color: var(--ink-border); color: #fff; }
.on-ink .btn--soft:hover { background: rgba(255,255,255,.14); }

/* ---------------- Card ---------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out);
}
.card.is-hoverable:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glow);
}

/* ---------------- Icon chip (colored, like reference) ---------------- */
.chip {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 13px;
  color: #fff;
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 24px; height: 24px; }
/* Warm, orange-aligned palette so chips harmonize with the brand */
.chip--brand  { background: linear-gradient(135deg,#c2410c,#f97316); }
.chip--blue   { background: linear-gradient(135deg,#f59e0b,#d97706); }
.chip--teal   { background: linear-gradient(135deg,#fb923c,#ea580c); }
.chip--green  { background: linear-gradient(135deg,#f97316,#c2410c); }
.chip--amber  { background: linear-gradient(135deg,#fbbf24,#f59e0b); }
.chip--rose   { background: linear-gradient(135deg,#fb7185,#e11d48); }
.chip--violet { background: linear-gradient(135deg,#fdba74,#f97316); }

/* ---------------- Tag / badge ---------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.tag svg { width: 14px; height: 14px; color: var(--green-500); }

/* ---------------- Link with arrow ---------------- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-600);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: gap var(--dur-fast) var(--ease-out);
}
[data-theme="dark"] .arrow-link { color: var(--brand-400); }
.arrow-link svg { width: 16px; height: 16px; }
.arrow-link:hover { gap: 12px; }

/* ---------------- Floating WhatsApp button (site-wide) ---------------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: var(--z-overlay);
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px 13px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #1faa55, #25d366);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-sm);
  box-shadow: 0 18px 44px -10px rgba(37, 211, 102, .65);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-mid);
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* ---------------- Header products dropdown ---------------- */
.nav__dd { position: relative; }
.nav__dd > .nav__link svg { transition: transform var(--dur-fast) var(--ease-out); }
.nav__dd:hover > .nav__link svg,
.nav__dd:focus-within > .nav__link svg { transform: rotate(180deg); }

.nav-dd {
  position: absolute;
  top: 100%; left: 50%;
  transform: translate(-50%, 10px);
  width: 320px;
  padding: var(--sp-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              visibility var(--dur-fast);
  z-index: var(--z-overlay);
}
.nav__dd:hover .nav-dd,
.nav__dd:focus-within .nav-dd {
  opacity: 1; visibility: visible;
  transform: translate(-50%, 4px);
}
.nav-dd__all {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-3);
  margin-bottom: var(--sp-1);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--brand-600);
}
[data-theme="dark"] .nav-dd__all { color: var(--brand-400); }
.nav-dd__all svg { width: 15px; height: 15px; }
.nav-dd__item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}
.nav-dd__item:hover { background: var(--surface-2); }
.nav-dd__ic {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-600);
}
[data-theme="dark"] .nav-dd__ic { background: rgba(249, 115, 22, .14); color: var(--brand-400); }
.nav-dd__ic svg { width: 18px; height: 18px; }
.nav-dd__t { min-width: 0; }
.nav-dd__t b { display: block; font-size: var(--fs-sm); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-dd__t span { display: block; font-size: var(--fs-xs); color: var(--text-faint); }

/* Mobil çekmecede: açılır kutu yerine düz alt liste */
@media (max-width: 860px) {
  .nav.is-open .nav__dd { display: flex; flex-direction: column; }
  .nav.is-open .nav-dd {
    position: static;
    transform: none;
    width: auto;
    opacity: 1; visibility: visible;
    border: 0; box-shadow: none;
    background: transparent;
    padding: 0 0 var(--sp-2) var(--sp-4);
  }
  .nav.is-open .nav-dd__all { display: none; }
}

/* ---------------- Ana sayfa Hizmetler bölümü (panelden yönetilir) ---------------- */
.hsvc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.hsvc-card {
  display: flex;
  flex-direction: column;
}
.hsvc-card h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.hsvc-card p { color: var(--text-muted); font-size: var(--fs-sm); }
.hsvc-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-4);
}
.hsvc-card__price {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--brand-600);
  white-space: nowrap;
}
[data-theme="dark"] .hsvc-card__price { color: var(--brand-400); }
@media (max-width: 1024px) { .hsvc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .hsvc-grid { grid-template-columns: 1fr; } }

/* Browser window mockup (shared) */
.window {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window__bar {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.window__dots { display: flex; gap: 7px; }
.window__dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.window__dots i:nth-child(1){ background:#ff5f57; }
.window__dots i:nth-child(2){ background:#febc2e; }
.window__dots i:nth-child(3){ background:#28c840; }
.window__url {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--text-faint);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
}
.window__body { padding: var(--sp-5); }
