/* Turkey Textil — shared site styles */

:root {
  /* Heritage palette (default) */
  --bg: #f3eee3;
  --bg-2: #ebe4d3;
  --surface: #faf6ec;
  --ink: #1c1814;
  --ink-2: #574b3c;
  --ink-3: #8a7d6a;
  --line: #d8cdb6;
  --accent: #b8553a;
  --accent-deep: #6e3520;
  --accent-soft: #e9c8b5;

  /* Type */
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Geist", "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --pad-section: clamp(64px, 9vw, 128px);
}

* { box-sizing: border-box; }

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

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─────────── Topbar (certifications ticker) ─────────── */
.topbar {
  background: var(--ink);
  color: #f3eee3;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  border-bottom: 1px solid #2a241c;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 9px 0;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
}
.topbar-inner span { opacity: 0.78; display: inline-flex; align-items: center; gap: 8px; }
.topbar-inner .dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; display: inline-block; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────── Header / nav ─────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 238, 227, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 16px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--ink);
  display: grid;
  place-items: center;
  background: var(--accent);
  position: relative;
  overflow: hidden;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.18) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.18) 0 1px, transparent 1px 4px);
}
.brand-word { line-height: 1; }
.brand-word b { display: block; font-size: 15px; letter-spacing: 0.04em; }
.brand-word small {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}

.nav-main {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.nav-main a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-2);
  transition: color 0.2s;
}
.nav-main a:hover { color: var(--ink); }
.nav-main a.active { color: var(--ink); }
.nav-main a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--accent);
}

.header-right { display: flex; align-items: center; gap: 16px; }

/* language switcher */
.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  padding: 7px 11px;
  cursor: pointer;
  color: var(--ink-3);
  border-right: 1px solid var(--line);
  text-transform: uppercase;
}
.lang-switch button:last-child { border-right: 0; }
.lang-switch button.active {
  background: var(--ink);
  color: var(--surface);
}
.lang-switch button:hover:not(.active) { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--ink);
  color: #f3eee3;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn.btn-ghost:hover { background: var(--ink); color: var(--surface); }
.btn.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn .arrow {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: currentColor;
  position: relative;
  margin-left: 4px;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ─────────── Section primitives ─────────── */
.section { padding: var(--pad-section) 0; position: relative; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

h1, h2, h3 { margin: 0; }
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7.4vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.015em;
}
.display em { font-style: italic; color: var(--accent); }

h2.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.012em;
}
h2.title em { font-style: italic; color: var(--accent); }

h3.subtitle {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.008em;
}

p.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}

p { color: var(--ink-2); line-height: 1.6; }

.kicker-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.kicker-row .right { max-width: 38ch; color: var(--ink-2); }

/* ─────────── Footer ─────────── */
.site-footer {
  background: var(--ink);
  color: #d3c9b5;
  padding: 80px 0 32px;
  font-size: 14px;
}
.site-footer a { color: #d3c9b5; }
.site-footer a:hover { color: var(--accent-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid #2a241c;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a7d65;
  margin: 0 0 20px;
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { color: #d3c9b5; }
.footer-brand .display-mini {
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  margin: 0 0 16px;
  color: #f3eee3;
}
.footer-brand p { color: #a89980; max-width: 32ch; font-size: 13.5px; }

.cert-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  padding: 32px 0;
  border-bottom: 1px solid #2a241c;
}
.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border: 1px solid #2a241c;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: #8a7d65;
  text-align: center;
  text-transform: uppercase;
  background: rgba(255,255,255,0.02);
}
.cert-badge b { color: #f3eee3; font-size: 12px; letter-spacing: 0.05em; font-family: var(--sans); font-weight: 600; }
.cert-badge .small { font-size: 8.5px; opacity: 0.7; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #8a7d65;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─────────── Utility ─────────── */
.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

.stat-tile {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-tile .num {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  font-style: italic;
  color: var(--accent-deep);
}
.stat-tile .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.stat-tile p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }

/* fabric weave background helper */
.weave-bg {
  background-color: var(--bg-2);
  background-image:
    repeating-linear-gradient(0deg,   rgba(28,24,20,0.06) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(90deg,  rgba(28,24,20,0.06) 0 1px, transparent 1px 6px),
    radial-gradient(circle at 30% 40%, rgba(184,85,58,0.08), transparent 60%);
}

@media (max-width: 900px) {
  .nav-main { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
