/* =========================================================
   TurkLink Global — Design System
   Direction: "Trade Ledger" — the visual language of bills of
   lading, customs stamps, and shipping manifests: hairline
   rules, stamped seals, mono specification codes, sharp
   rectangular controls. Navy ink + gold seal on aged paper.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Color */
  --ink: #0d3550;          /* primary navy */
  --ink-deep: #071c2c;      /* darkest navy, footer */
  --paper: #f5f3ee;         /* base background */
  --paper-alt: #ebe7dd;     /* alternating section bg */
  --gold: #b9862f;          /* seal / accent */
  --gold-light: #d9ad6a;
  --line: rgba(13, 53, 80, 0.16);
  --line-strong: rgba(13, 53, 80, 0.32);
  --text: #1c2a33;
  --muted: #566169;
  --white: #fffdf9;

  /* Type */
  --font-display: 'Roboto Slab', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

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

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img { height: 34px; width: auto; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--gold);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--ink-deep); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #a5762a; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-sm { padding: 9px 16px; font-size: 12.5px; }

/* ---------- Seal / Stamp signature element ---------- */
.seal {
  --seal-size: 88px;
  width: var(--seal-size);
  height: var(--seal-size);
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.seal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--gold-light);
  border-radius: 50%;
}
.seal-text {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  line-height: 1.3;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.4fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 44px;
  margin-bottom: 20px;
}

.hero h1 .accent { color: var(--gold); }

.hero .lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

.hero-trust {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.hero-trust strong { color: var(--ink); }

/* Route diagram */
.route-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
}
.route-panel .route-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.route-svg { width: 100%; height: auto; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--paper-alt); }

.section-header { max-width: 62ch; margin-bottom: 40px; }
.section-header h2 { font-size: 30px; margin: 10px 0 12px; }
.section-header p { color: var(--muted); font-size: 15.5px; }

/* Ledger divider */
.ledger-rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
}

.card .card-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }

.card ul { list-style: none; }
.card ul li {
  font-size: 13.5px;
  color: var(--text);
  padding: 7px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
}
.card ul li:first-child { border-top: none; }
.card ul li::before {
  content: "—";
  color: var(--gold);
  flex-shrink: 0;
}

.card-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  display: inline-block;
  margin-top: 6px;
}

/* ---------- Process ---------- */
.process-list { display: flex; flex-direction: column; }
.process-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
}
.process-item h3 { font-size: 17px; margin-bottom: 6px; }
.process-item p { color: var(--muted); font-size: 14.5px; }

/* ---------- Pills / tags ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--white);
}

/* ---------- Stats ---------- */
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--ink);
}
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Testimonial / quote ---------- */
.quote-card {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 24px;
  font-size: 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
}
.quote-attr {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  font-style: normal;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--white);
  padding: 56px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.72); }
.cta-band-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink-deep);
  color: rgba(255,255,255,0.65);
  padding: 48px 0 24px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 20px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 14px;
}
.footer-grid a { display: block; padding: 5px 0; color: rgba(255,255,255,0.65); }
.footer-grid a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: 34px; margin-top: 10px; }
.page-hero p { color: var(--muted); max-width: 60ch; margin-top: 12px; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.breadcrumb a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; grid-column: span 1; }
.form-field.full { grid-column: span 2; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--line-strong);
  background: var(--white);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Blog / Case study cards ---------- */
.post-card {
  border: 1px solid var(--line);
  background: var(--white);
}
.post-card .post-body { padding: 24px; }
.post-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.post-card h3 { font-size: 19px; margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: 14px; }

.stamp-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Placeholder notice (dev-only, remove before launch) ---------- */
.dev-note {
  background: #fff3d6;
  border: 1px dashed var(--gold);
  color: #6b4e14;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: inline-block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px;
  }
  .hero h1 { font-size: 30px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: span 1; }
  .form-field { grid-column: span 1; }
}

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