/* Nureply Teknoloji — editorial light theme
   Type: Fraunces (display serif) + Spline Sans (text)
   Palette: warm paper, ink, hairline rules, deep-green accent */

:root {
  --paper: #fbfaf6;
  --paper-2: #f3f0e8;
  --ink: #1b1a16;
  --ink-soft: #56534b;
  --ink-faint: #8a877d;
  --line: #e2ddd1;
  --line-strong: #cfc9ba;
  --accent: #1f5d4c;
  --accent-ink: #123a30;
  --maxw: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Spline Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--paper); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 460; letter-spacing: -0.01em; line-height: 1.08; font-optical-sizing: auto; }

/* Section index label, e.g. "01 — Services" */
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--line-strong); display: inline-block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .mark { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.brand .mark b { color: var(--accent); font-weight: 500; }
.brand .tag { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.02em; display: none; }
@media (min-width: 980px){ .brand .tag { display: inline; } }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a {
  position: relative; padding: 8px 14px; font-size: 15px; color: var(--ink-soft); font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.nav-links > a:hover { color: var(--ink); }
.nav-links > a:hover::after, .nav-links > a.active::after { transform: scaleX(1); }
.nav-links > a.active { color: var(--ink); }

.lang-toggle { display: inline-flex; align-items: center; gap: 2px; margin-left: 14px; padding-left: 16px; border-left: 1px solid var(--line); }
.lang-toggle button {
  background: none; border: 0; color: var(--ink-faint); font-family: var(--sans); font-weight: 600;
  font-size: 13px; letter-spacing: 0.04em; cursor: pointer; padding: 4px 6px; transition: color 0.2s ease;
}
.lang-toggle button.active { color: var(--accent); }
.lang-toggle button:not(.active):hover { color: var(--ink); }

.menu-btn { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); font-size: 22px; padding: 6px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; border-bottom: 1px solid var(--line); }
.hero .lede-row { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: end; }
.hero h1 { font-size: clamp(40px, 6vw, 78px); font-weight: 420; letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 440; }
.hero .standfirst { color: var(--ink-soft); font-size: 18px; max-width: 42ch; }
.hero .standfirst p + p { margin-top: 14px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 38px; }
.hero-meta {
  margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.hero-meta .item .h { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 7px; }
.hero-meta .item .v { font-size: 15.5px; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-weight: 500;
  font-size: 15px; padding: 13px 22px; border-radius: 2px; cursor: pointer; border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-line { border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; margin-bottom: 64px; align-items: start; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 430; }
.section-head .intro { color: var(--ink-soft); font-size: 18px; max-width: 50ch; }
@media (max-width: 820px){ .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 44px; } }

/* ---------- Work / services rows (editorial, not cards) ---------- */
.work-row {
  display: grid; grid-template-columns: 64px 1fr 1.1fr; gap: 36px;
  padding: 40px 0; border-top: 1px solid var(--line); align-items: start;
}
.work-row:last-child { border-bottom: 1px solid var(--line); }
.work-row .num { font-family: var(--serif); font-size: 22px; color: var(--ink-faint); font-style: italic; }
.work-row h3 { font-size: 26px; font-weight: 440; margin-bottom: 12px; }
.work-row .desc { color: var(--ink-soft); font-size: 16.5px; }
.work-row .desc p + p { margin-top: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span {
  font-size: 13px; color: var(--ink-soft); border: 1px solid var(--line-strong);
  padding: 5px 11px; border-radius: 999px; background: var(--paper);
}
@media (max-width: 820px){ .work-row { grid-template-columns: 1fr; gap: 14px; padding: 30px 0; } .work-row .num { font-size: 18px; } }

/* ---------- Split (about / detail) ---------- */
.split { display: grid; grid-template-columns: 1fr 0.85fr; gap: 60px; align-items: start; }
.split.reverse { grid-template-columns: 0.85fr 1fr; }
.prose p { color: var(--ink-soft); font-size: 17px; }
.prose p + p { margin-top: 16px; }
.prose h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 430; margin-bottom: 20px; }
.aside {
  border-left: 2px solid var(--accent); padding: 4px 0 4px 26px;
}
.aside dl { display: grid; gap: 18px; }
.aside dt { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 4px; }
.aside dd { font-size: 16px; color: var(--ink); }
.aside dd a:hover { color: var(--accent); }
@media (max-width: 820px){ .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Values (understated three-up) ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.values .v { background: var(--paper); padding: 34px 30px; }
.values .v h3 { font-size: 21px; font-weight: 450; margin-bottom: 10px; }
.values .v p { color: var(--ink-soft); font-size: 15.5px; }
.values .v .mk { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 17px; margin-bottom: 14px; }
@media (max-width: 820px){ .values { grid-template-columns: 1fr; } }

/* ---------- Quiet CTA (no gradient band) ---------- */
.endnote { border-top: 1px solid var(--line); }
.endnote .inner { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 64px 0; }
.endnote h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 430; max-width: 18ch; }
.endnote p { color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 820px){ .endnote .inner { grid-template-columns: 1fr; padding: 48px 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 36px; }
.contact-grid .cell { background: var(--paper); padding: 32px; }
.contact-grid .cell dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 10px; }
.contact-grid .cell dd { font-size: 17px; }
.contact-grid .cell dd a:hover { color: var(--accent); }
.map-embed { width: 100%; border: 1px solid var(--line); border-radius: 2px; min-height: 360px; filter: grayscale(0.35) contrast(0.95) sepia(0.05); }
@media (max-width: 680px){ .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 80px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(34px, 5vw, 62px); font-weight: 420; letter-spacing: -0.02em; margin: 18px 0 18px; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .standfirst { color: var(--ink-soft); font-size: 19px; max-width: 56ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d6cc; padding: 64px 0 30px; }
.site-footer ::selection { background: var(--paper); color: var(--ink); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-top .mark { font-family: var(--serif); font-size: 22px; color: var(--paper); }
.footer-top .mark b { color: #6fd1b3; font-weight: 500; }
.footer-top .blurb { color: #a7a399; font-size: 15px; max-width: 36ch; margin-top: 14px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #8d897e; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; color: #d9d6cc; font-size: 15px; padding: 5px 0; transition: color 0.2s ease; }
.footer-col a:hover { color: #6fd1b3; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8d897e; font-size: 13px; }
@media (max-width: 820px){ .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-top { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Language helpers ---------- */
[data-lang-en], [data-lang-tr] { display: none; }
body[data-lang="en"] [data-lang-en], body[data-lang="tr"] [data-lang-tr] { display: revert; }

/* ---------- Reveal-on-scroll (purposeful, subtle) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive nav ---------- */
@media (max-width: 760px){
  .hero .lede-row { grid-template-columns: 1fr; gap: 30px; }
  .hero-meta { grid-template-columns: 1fr; gap: 18px; }
  .menu-btn { display: inline-block; }
  .nav-links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 14px 32px 22px; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { width: 100%; padding: 12px 0; font-size: 17px; }
  .nav-links > a::after { display: none; }
  .lang-toggle { margin: 8px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); width: 100%; }
}
