/* ============================================================
   TANER ELEKTRONİK — Kars Baymak Yetkili Servisi · Design System
   ============================================================ */

:root {
  /* Palette — yeşil/beyaz, oklch */
  --green-900: oklch(28% 0.06 155);
  --green-800: oklch(36% 0.085 155);
  --green-700: oklch(44% 0.095 155);  /* primary */
  --green-600: oklch(54% 0.115 155);  /* interactive */
  --green-500: oklch(65% 0.135 155);
  --green-200: oklch(90% 0.045 155);
  --green-100: oklch(95% 0.025 155);
  --green-50:  oklch(97.5% 0.012 155);

  --bg:        oklch(98.5% 0.004 155);
  --bg-elev:  #ffffff;
  --ink:       oklch(20% 0.012 200);
  --ink-soft:  oklch(38% 0.012 200);
  --ink-mute:  oklch(56% 0.01 200);
  --line:      oklch(92% 0.005 200);
  --line-strong: oklch(86% 0.006 200);

  --accent: oklch(72% 0.155 65);   /* sıcak amber, sadece minik vurgu — ısı/alev hissi */
  --danger: oklch(58% 0.18 25);
  --whatsapp: #25D366;

  /* Spacing */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows — yumuşak, kurumsal */
  --shadow-xs: 0 1px 2px rgba(15, 30, 25, 0.04), 0 1px 1px rgba(15, 30, 25, 0.03);
  --shadow-sm: 0 2px 6px rgba(15, 30, 25, 0.04), 0 1px 2px rgba(15, 30, 25, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(15, 30, 25, 0.10), 0 2px 6px rgba(15, 30, 25, 0.05);
  --shadow-lg: 0 24px 60px -20px rgba(15, 30, 25, 0.18), 0 6px 16px -8px rgba(15, 30, 25, 0.08);
  --shadow-glow: 0 12px 32px -10px oklch(44% 0.095 155 / 0.32);

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

body {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* Typography scale ---------------------------------- */
.u-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700);
}
.u-display {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.u-h1 { font-size: clamp(34px, 4vw, 52px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.u-h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -0.022em; text-wrap: balance; }
.u-h3 { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.012em; }
.u-lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.u-meta { font-size: 13px; color: var(--ink-mute); letter-spacing: -0.005em; }
.u-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-feature-settings: "ss02"; }

/* Layout helpers ------------------------------------ */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.row { display: flex; gap: 12px; align-items: center; }
.row-wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Buttons ------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px;
  border-radius: var(--r-pill);
  font-family: inherit; font-size: 15px; font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green-700); color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { background: var(--green-800); }
.btn-secondary {
  background: var(--bg-elev); color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--green-600); color: var(--green-700); }
.btn-wa {
  background: var(--whatsapp); color: #fff;
}
.btn-wa:hover { filter: brightness(0.95); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--green-100); color: var(--green-800); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 60px; padding: 0 28px; font-size: 16px; }

/* Cards --------------------------------------------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card-soft {
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--r-lg);
}

/* Pills / chips ------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--green-100);
  color: var(--green-800);
  font-size: 13px; font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid var(--green-200);
}
.chip-dot::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 3px oklch(54% 0.115 155 / 0.18);
  display: inline-block;
}
.chip-live::before { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px oklch(54% 0.115 155 / 0.18); }
  50% { box-shadow: 0 0 0 6px oklch(54% 0.115 155 / 0.06); }
}

/* Logo mark ----------------------------------------- */
.logomark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, var(--green-700), var(--green-500));
  display: inline-grid; place-items: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.04em;
  position: relative;
  box-shadow: inset 0 -8px 16px -8px rgba(0,0,0,0.15);
}
.logomark::after {
  /* küçük alev/ısı vurgusu — orijinal geometrik amblem */
  content: "";
  position: absolute;
  inset: auto 6px 6px auto;
  width: 8px; height: 8px;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 1.5px var(--bg-elev);
}

/* Section header pattern --------------------------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 720px; margin: 0 0 48px; }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
}

/* Divider ------------------------------------------- */
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Focus state --------------------------------------- */
*:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reveal animation ---------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
@keyframes reveal { to { opacity: 1; transform: none; } }

/* Subtle hover lift --------------------------------- */
.lift {
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1),
              box-shadow 200ms ease,
              border-color 200ms ease;
}
.lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-200);
}

/* Phone bigness for mobile -------------------------- */
.tel {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Form fields --------------------------------------- */
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.input, .textarea, .select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 14px 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px oklch(54% 0.115 155 / 0.14);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.45; }

/* Scrollbar polish ---------------------------------- */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }

/* App shell ----------------------------------------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; }

/* Sticky bottom bar (mobile only) ------------------ */
.mobile-bar {
  display: none;
}
@media (max-width: 720px) {
  .mobile-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0;
    background: var(--bg-elev);
    border-top: 1px solid var(--line);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    gap: 6px;
    z-index: 50;
    box-shadow: 0 -8px 24px -12px rgba(15,30,25,0.10);
  }
  .mobile-bar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    text-decoration: none;
    padding: 10px 4px;
    border-radius: var(--r-md);
    font-size: 11px; font-weight: 600;
    color: var(--ink);
    background: var(--green-50);
  }
  .mobile-bar a.primary { background: var(--green-700); color: #fff; }
  .mobile-bar a.wa { background: var(--whatsapp); color: #fff; }
  .mobile-bar svg { width: 20px; height: 20px; }
  body { padding-bottom: 80px; }
}

/* Hide elements on small screens -------------------- */
@media (max-width: 860px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 861px) {
  .only-mobile { display: none !important; }
}
