/* =========================================================
   Taxi in Istanbul — Design Tokens & Base Styles
   ========================================================= */

:root {
  /* Colors — drawn from Istanbul's 3-tier taxi system */
  --c-yellow: #F5B800;       /* Klasik — standard */
  --c-yellow-deep: #E0A500;
  --c-turquoise: #1FA89A;    /* Konfor — comfort D-segment */
  --c-turquoise-deep: #168A7E;
  --c-ink: #0E0D0B;          /* Premium / E-segment + primary text */
  --c-ink-2: #1F1C18;
  --c-graphite: #4A4640;
  --c-stone: #6E685E;        /* darkened from #8A847A for AA contrast on cream */
  --c-stone-light: #9A9388;  /* darkened from #B8B2A8 for AA contrast */
  --c-stone-on-ink: #B8B2A8; /* original light tone — for use ONLY on --c-ink dark bg */
  --c-line: #E3DCCF;
  --c-card: #FBF8F2;
  --c-cream: #F4EFE6;
  --c-cream-2: #EDE6D8;
  --c-alert: #C5392F;        /* Used sparingly for scam/abuse exposure */
  --c-alert-deep: #A02D24;

  /* Type */
  --f-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: "JetBrains Mono", "Courier New", monospace;

  /* Sizing */
  --max-w: 1320px;
  --pad-x: clamp(20px, 4vw, 56px);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }

/* ===== Type scale ===== */

.display {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 96;
}

.italic {
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.accent-y { color: var(--c-yellow-deep); }
.accent-t { color: var(--c-turquoise-deep); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-graphite);
  font-weight: 500;
}

.mono { font-family: var(--f-mono); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }

/* ===== Layout ===== */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(56px, 8vw, 112px);
}

.section-tight {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

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

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--c-ink); color: var(--c-cream); }
.btn-primary:hover { background: var(--c-ink-2); }

.btn-yellow { background: var(--c-yellow); color: var(--c-ink); }
.btn-yellow:hover { background: var(--c-yellow-deep); }

.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #1FB855; }

.btn-ghost { background: transparent; color: var(--c-ink); border: 1px solid var(--c-ink); }
.btn-ghost:hover { background: var(--c-ink); color: var(--c-cream); }

.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 18px 28px; font-size: 15px; }

/* ===== Segment chips (yellow/turquoise/black tiers) ===== */

.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px 5px 8px;
  border-radius: 4px;
  border: 1px solid var(--c-line);
  background: white;
}

.tier-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.tier-chip.tier-y::before { background: var(--c-yellow); }
.tier-chip.tier-t::before { background: var(--c-turquoise); }
.tier-chip.tier-b::before { background: var(--c-ink); }

/* ===== Placeholder image ===== */

.img-ph {
  position: relative;
  background: var(--c-cream-2);
  overflow: hidden;
  border-radius: var(--radius);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 8px,
    rgba(14, 13, 11, 0.04) 8px,
    rgba(14, 13, 11, 0.04) 9px
  );
}

.img-ph .img-ph-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-graphite);
  background: rgba(244, 239, 230, 0.92);
  padding: 4px 8px;
  border-radius: 3px;
}

.img-ph-dark {
  background: var(--c-ink);
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 8px,
    rgba(255, 255, 255, 0.04) 8px,
    rgba(255, 255, 255, 0.04) 9px
  );
}

.img-ph-dark .img-ph-label {
  background: rgba(14, 13, 11, 0.85);
  color: var(--c-stone-light);
}

/* ===== Cards ===== */

.card {
  background: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}

.card-hover:hover {
  transform: translateY(-3px);
  border-color: var(--c-ink);
  box-shadow: 0 10px 30px -12px rgba(14, 13, 11, 0.18);
}

/* ===== Star rating ===== */

.stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--c-yellow);
  font-size: 13px;
  letter-spacing: 1px;
}

.stars .star-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-ink);
  margin-left: 6px;
  letter-spacing: 0;
}

/* ===== Form controls ===== */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-graphite);
}

.input, .select, .textarea {
  font-family: var(--f-body);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: white;
  color: var(--c-ink);
  width: 100%;
  transition: border-color 150ms var(--ease);
}

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--c-ink);
}

.textarea { resize: vertical; min-height: 120px; }

/* ===== Page transitions ===== */

.page-fade {
  animation: pageFade 350ms var(--ease);
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Utility ===== */

.flex { display: flex; }
.grid { display: grid; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.center { align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.text-stone { color: var(--c-stone); }
.text-graphite { color: var(--c-graphite); }
.text-cream { color: var(--c-cream); }

/* ===== Mobile ===== */

@media (max-width: 768px) {
  body { font-size: 15px; }
}

/* ===== Accessibility ===== */

/* Visible focus for keyboard nav */
:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--c-ink);
  color: var(--c-cream);
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  z-index: 1000;
  transition: top 150ms var(--ease);
}
.skip-link:focus { top: 12px; }

/* Visually hidden but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .page-fade { animation: none !important; }
}

/* Body scroll lock when modal open */
body.no-scroll { overflow: hidden; }

/* RTL adjustments for Arabic */
html[dir="rtl"] .stars { direction: ltr; }
html[dir="rtl"] .mono  { direction: ltr; }
