/* ============================================
   ArmaWeld — Global Theme
   Karbon siyahı + kaynak arkı turuncusu
   ============================================ */

/* Google Fonts HTML <link> etiketleriyle yükleniyor (render-blocking önleme) */

:root {
  color-scheme: dark;
  accent-color: #ff7a1a;

  /* Core palette */
  --ink-0: #000000;
  --ink-1: #07080a;
  --ink-2: #0d0f12;
  --ink-3: #14171c;
  --ink-4: #1c2026;
  --ink-5: #262b33;
  --ink-6: #343944;
  --ink-7: #4a505c;

  --steel-1: #6b7280;
  --steel-2: #9aa0ab;
  --steel-3: #c8ccd4;
  --steel-4: #e6e8ec;

  --bone: #f4f2ee;
  --paper: #ede9e1;

  /* Weld arc orange */
  --arc-1: #ff5a1f;
  --arc-2: #ff7a1a;  /* primary */
  --arc-3: #ff9a3d;
  --arc-4: #ffb766;
  --arc-glow: #ffcf8f;

  /* Spark / hot */
  --spark: #fff4d6;
  --molten: #ffd24a;

  /* Semantic */
  --success: #4ade80;
  --danger: #ef4444;
  --warning: #fbbf24;

  /* Type */
  --ff-display: 'Archivo', system-ui, sans-serif;
  --ff-sans: 'Archivo', system-ui, sans-serif;
  --ff-narrow: 'Archivo Narrow', 'Archivo', sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --nav-h: 72px;
  --max-w: 1440px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Radius */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;

  /* Shadows */
  --sh-card: 0 1px 0 rgba(255,255,255,.05) inset, 0 24px 60px -24px rgba(0,0,0,.7);
  --sh-arc: 0 0 40px -8px rgba(255,122,26,.5);

  /* Nav glass */
  --nav-bg: rgba(7,8,10,.82);
  --nav-border: rgba(255,255,255,.06);
}

/* ============ LIGHT THEME ============ */
[data-theme="light"] {
  color-scheme: light;
  accent-color: #e95c00;

  /* Inverted ink ramp (light bg → darker accents for borders/muted) */
  --ink-0: #ffffff;
  --ink-1: #f7f5f0;   /* main bg */
  --ink-2: #efece5;   /* surface */
  --ink-3: #e6e2d8;   /* elevated card */
  --ink-4: #d8d3c5;   /* borders */
  --ink-5: #c0bbac;
  --ink-6: #a6a093;
  --ink-7: #7e7a6f;

  /* Steel ramp inverted — now they become dark readable text on light */
  --steel-1: #8c8578;   /* muted meta */
  --steel-2: #5c5a54;   /* body text secondary */
  --steel-3: #2f2d29;   /* body text */
  --steel-4: #18171a;   /* default text */

  /* Bone / paper — deep ink for headings */
  --bone: #0d0e11;
  --paper: #1a1b1f;

  /* Arc palette — slightly deeper on light for contrast */
  --arc-1: #d93d00;
  --arc-2: #e95c00;
  --arc-3: #ff7a1a;
  --arc-4: #ff9a3d;
  --arc-glow: #ff7a1a;

  --spark: #b25100;
  --molten: #c47700;

  --success: #16a34a;
  --danger: #dc2626;
  --warning: #ca8a04;

  --sh-card: 0 1px 0 rgba(0,0,0,.04) inset, 0 24px 48px -24px rgba(40,30,10,.18);
  --sh-arc: 0 0 40px -8px rgba(233,92,0,.35);

  --nav-bg: rgba(247,245,240,.86);
  --nav-border: rgba(24,23,26,.10);
}

[data-theme="light"] ::selection { background: var(--arc-2); color: #fff; }
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--ink-2); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--ink-5); }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: var(--arc-2); }

/* Light mode — fine-tuned overrides for elements that rely on white-on-black */
[data-theme="light"] .btn-primary { color: #fff; background: #c94f00; }
[data-theme="light"] .btn-primary:hover { color: #fff; background: #d35600; }
[data-theme="light"] .nav-cta { background: #c94f00; }
[data-theme="light"] .nav-cta:hover { background: #d35600; }
[data-theme="light"] .logo-mark { color: #fff; }
[data-theme="light"] .nav-cta { color: #fff; }
[data-theme="light"] .nav-cta:hover { color: #fff; }
[data-theme="light"] .nav-burger span { background: var(--steel-4); }

/* Smooth transition when switching */
html { transition: background .3s ease; overflow-x: hidden; }
body, .nav, .footer, section, .container, [class*="card"], [class*="panel"] {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--ink-1); color: var(--steel-4); font-family: var(--ff-display); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--arc-2); color: var(--ink-0); }

/* ===== Modern polish ===== */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--arc-2);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
.btn:active, .nav-cta:active { transform: translateY(1px) scale(.985); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-1); }
::-webkit-scrollbar-thumb { background: var(--ink-5); }
::-webkit-scrollbar-thumb:hover { background: var(--arc-2); }

/* ===== Utility ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono { font-family: var(--ff-mono); font-feature-settings: "ss01"; }
.narrow { font-family: var(--ff-narrow); }
.caps { text-transform: uppercase; letter-spacing: .03em; }
.caps-wide { text-transform: uppercase; letter-spacing: .05em; }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--arc-2);
  text-transform: uppercase;
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--arc-2);
}

.display {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--bone);
}

.h1 { font-size: clamp(44px, 7vw, 112px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.92; }
.h2 { font-size: clamp(26px, 3.0vw, 48px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.h3 { font-size: clamp(26px, 3vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.h4 { font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -0.015em; }

.lede {
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.55;
  color: var(--steel-3);
  max-width: 62ch;
}

/* ===== Buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: var(--r-sm);
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--arc-2);
  color: var(--ink-0);
}
.btn-primary:hover {
  background: var(--arc-3);
  box-shadow: var(--sh-arc);
  transform: translateY(-1px);
}
.btn-ghost {
  border: 1px solid var(--ink-6);
  color: var(--bone);
}
.btn-ghost:hover {
  border-color: var(--arc-2);
  color: var(--arc-2);
}
.btn .arrow {
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Chrome: nav + footer ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--nav-border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.logo { grid-column: 1; }
.nav-desktop { grid-column: 2; }
.nav-right { grid-column: 3; justify-self: end; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .02em;
  color: var(--bone);
  flex-shrink: 0;
}
.logo-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--arc-2);
  color: var(--ink-0);
  font-weight: 900;
  font-size: 14px;
  border-radius: 2px;
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid var(--arc-2);
  opacity: .35;
  border-radius: 3px;
}
.logo-img {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.logo-suffix {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--steel-1);
  text-transform: uppercase;
  letter-spacing: .05em;
  border-left: 1px solid var(--ink-6);
  padding-left: 10px;
  margin-left: 4px;
}
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  text-transform: none;
}
.nav-desktop {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  padding-right: 4px;
}
.nav-desktop .nav-links {
  max-width: 100%;
  overflow: visible;
}
.nav-drawer {
  display: none !important;
  align-items: stretch;
  flex-direction: column;
  min-width: 0;
}
.nav-more {
  position: relative;
  flex-shrink: 0;
  z-index: 160;
}
.nav-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
}
.nav-more-btn::after {
  display: none !important;
}
.nav-more-btn svg {
  transition: transform .2s ease;
  opacity: .7;
}
.nav-more.open .nav-more-btn svg {
  transform: rotate(180deg);
}
.nav-more-menu {
  display: none !important;
  position: absolute;
  top: calc(100% + 8px);
  left: auto;
  right: 0;
  transform: none;
  min-width: 210px;
  background: var(--ink-1);
  border: 1px solid var(--ink-5);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  z-index: 150;
  padding: 6px 0;
}
[data-theme="light"] .nav-more-menu {
  background: var(--ink-0);
  border-color: var(--ink-4);
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
}
.nav-more.open .nav-more-menu {
  display: block !important;
}
.nav-more-item {
  display: block;
  padding: 10px 16px;
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--steel-3);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-more-item:hover,
.nav-more-item.active {
  color: var(--bone);
  background: var(--ink-3);
}
.nav-more-item.active {
  font-weight: 600;
  color: var(--arc-2);
}
.nav-link {
  padding: 8px 12px;
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.015em;
  text-transform: none;
  font-variant: normal;
  color: var(--steel-3);
  transition: color .2s ease, font-weight .2s ease;
  position: relative;
  white-space: nowrap;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--ink-4);
  position: relative;
  z-index: 160;
  background: var(--nav-bg);
}

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  border: 1px solid var(--ink-4);
  background: transparent;
  color: var(--bone);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
}
.theme-toggle:hover {
  border-color: var(--arc-2);
  color: var(--arc-2);
}
.theme-toggle svg { position: absolute; transition: transform .4s cubic-bezier(.2,.7,.3,1), opacity .25s ease; }
.theme-toggle .tt-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
.theme-toggle .tt-moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .tt-sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .tt-moon { opacity: 0; transform: rotate(90deg) scale(.5); }

.nav-burger { display: none; background: transparent; border: 1px solid var(--ink-4); width: 38px; height: 38px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-burger span { width: 16px; height: 1.5px; background: var(--bone); display: block; transition: all .2s ease; }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.nav-link:hover, .nav-link.active { color: var(--bone); }
.nav-link.active { font-weight: 600; }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 10px; right: 10px;
  height: 2px;
  background: var(--arc-2);
}
.nav-cta {
  padding: 9px 14px;
  background: var(--arc-2);
  color: var(--ink-0);
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: 2px;
  transition: background .2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover { background: var(--arc-3); }

.nav-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--steel-1);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.nav-dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .5; } }

/* Footer */
.footer {
  background: var(--ink-0);
  border-top: 1px solid var(--ink-4);
  padding: 80px 0 40px;
  margin-top: 120px;
  position: relative;
  overflow-x: hidden;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--arc-2) 30%, var(--arc-2) 70%, transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 64px;
}
.footer h5 {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--arc-2);
  margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--steel-3); font-size: 14px; }
.footer a:hover { color: var(--arc-2); }
.footer-tag {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--bone);
  letter-spacing: -.02em;
  margin-bottom: 16px;
  max-width: 24ch;
}
.footer-contact { color: var(--steel-2); font-size: 14px; line-height: 1.7; }
.footer-contact .footer-addr-line { display: block; }
.footer-bottom {
  border-top: 1px solid var(--ink-4);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 16px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--steel-1);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.footer-bottom span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-legal {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-4);
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--steel-1);
  text-align: center;
  letter-spacing: .06em;
  opacity: .6;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ===== Language Switcher ===== */
.lang-switcher {
  position: relative;
}
.lang-btn {
  height: 38px;
  min-width: 42px;
  padding: 0 10px;
  border: 1px solid var(--ink-4);
  background: transparent;
  color: var(--bone);
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .2s ease;
  border-radius: var(--r-sm);
}
.lang-btn:hover {
  border-color: var(--arc-2);
  color: var(--arc-2);
}
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--ink-1);
  border: 1px solid var(--ink-5);
  min-width: 150px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.lang-dropdown.open {
  display: block;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--ff-display);
  font-size: 13px;
  color: var(--steel-3);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease, color .15s ease;
}
.lang-option:hover {
  background: var(--ink-4);
  color: var(--bone);
}
.lang-option.active {
  color: var(--arc-2);
  font-weight: 600;
}
[data-theme="light"] .lang-dropdown {
  background: var(--ink-0);
  border-color: var(--ink-4);
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
@media (max-width: 1200px) {
  .lang-switcher { display: flex; }
}

/* ===== Section scaffolding ===== */
section { position: relative; }
.section-pad { padding: clamp(56px, 7vw, 96px) 0; }
.section-pad-sm { padding: clamp(40px, 5vw, 64px) 0; }
.section-cta { padding: clamp(48px, 6vw, 72px) 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 44px;
}
.section-head .label {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--arc-2);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.section-head .idx {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--steel-1);
}

.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--ink-5), transparent);
  margin: 24px 0;
}
.rule-arc {
  height: 2px;
  background: var(--arc-2);
  width: 48px;
}

/* ===== Tables & data ===== */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--ink-4);
  font-family: var(--ff-mono);
  color: var(--steel-3);
}
.table th {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--steel-2);
  background: var(--ink-2);
  border-bottom: 1px solid var(--ink-5);
}
.table tbody tr:hover { background: var(--ink-2); }

.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 24px;
  row-gap: 8px;
  font-family: var(--ff-mono);
  font-size: 12px;
}
.kv dt {
  color: var(--steel-1);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.kv dd { color: var(--bone); }

/* ===== Grids & cards ===== */
.card {
  background: var(--ink-2);
  border: 1px solid var(--ink-4);
  padding: 28px;
  transition: all .3s ease;
  position: relative;
}
.card:hover {
  border-color: var(--ink-6);
  background: var(--ink-3);
}

.card .h4 { letter-spacing: -0.02em; }

.card-num {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--arc-2);
  letter-spacing: .05em;
  margin-bottom: 16px;
}

/* ===== Sparkline / decorations ===== */
.crosshair-bg {
  background-image:
    linear-gradient(var(--ink-3) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-3) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}

.corner-ticks {
  position: relative;
}
.corner-ticks::before,
.corner-ticks::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--arc-2);
}
.corner-ticks::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.corner-ticks::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.hot-underline {
  background-image: linear-gradient(var(--arc-2), var(--arc-2));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--ink-3);
  border: 1px solid var(--ink-5);
  border-radius: 2px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--steel-2);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-arc {
  border-color: var(--arc-2);
  color: var(--arc-2);
  background: rgba(255,122,26,.08);
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--arc-2);
  border-radius: 50%;
}

/* Animations on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1281px) {
  .nav-drawer { display: none !important; }
  .nav-burger { display: none !important; }
}

@media (max-width: 1320px) {
  .nav-link { padding: 8px 8px; font-size: 13px; }
  .nav-portal { font-size: 12px !important; padding: 7px 10px !important; }
}
@media (max-width: 1280px) {
  .nav-desktop { display: none !important; }
  .nav-right {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }
  .nav-right .nav-cta,
  .nav-right .nav-portal { display: none !important; }
  .nav-meta { display: none; }
  .nav-burger { display: flex; }
  body.nav-open { overflow: hidden; }
  .nav-drawer {
    display: none !important;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    z-index: 9997;
    background: var(--ink-0);
    border-bottom: 1px solid var(--ink-4);
    flex-direction: column;
    flex: none;
    justify-content: flex-start;
    align-items: stretch;
  }
  body.nav-open .nav-drawer { display: flex !important; }
  .nav-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 24px 8px;
    border-bottom: 1px solid var(--ink-3);
    flex-shrink: 0;
  }
  .nav-drawer-btn {
    display: block;
    text-align: center;
    padding: 14px 16px;
    border-radius: 6px;
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -.01em;
  }
  .nav-drawer-btn--portal {
    color: var(--arc-2);
    background: rgba(255, 122, 26, 0.1);
    border: 1px solid rgba(255, 122, 26, 0.35);
  }
  .nav-drawer-btn--cta {
    color: var(--ink-0);
    background: var(--arc-2);
    border: 1px solid var(--arc-2);
  }
  .nav-drawer .nav-links {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    background: transparent;
    border-bottom: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px calc(16px + env(safe-area-inset-bottom));
    display: flex;
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-drawer .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--ink-3);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -.015em;
  }
  .nav-drawer .nav-link.active { font-weight: 600; }
  .nav-drawer .nav-link.active::after { left: 0; right: auto; width: 24px; bottom: 6px; }
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 640px) {
  .nav-right { gap: 8px; }

  /* Footer: single column */
  .footer {
    margin-top: 80px;
    padding: 48px 0 calc(32px + env(safe-area-inset-bottom));
  }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 40px; }
  .footer-tag { font-size: clamp(22px, 6vw, 28px); max-width: none; }
  .footer a, .footer-contact { font-size: 15px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-bottom span { width: 100%; }

  /* Typography clamp safeguard */
  .h1 { font-size: clamp(36px, 10vw, 72px); }
  .h2 { font-size: clamp(22px, 5.5vw, 38px); }
}

@media (max-width: 480px) {
  /* Extra small: tighten container gutter */
  .container { padding: 0 16px; }
  /* Badges: allow wrap */
  .badge, .svc-pill { white-space: normal; }
}

/* Mobilde tablolar: sıkıştırıp 10px'e düşürmek yerine yatay kaydırma + okunabilir punto */
@media (max-width: 640px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table th, table td { padding: 8px 10px; font-size: 12px; min-width: 84px; }
  table th:first-child, table td:first-child { min-width: 64px; }
}

/* ── Mobil görsel & animasyon düzeltmeleri ── */
@media (max-width: 768px) {
  /* Reveal animasyonu mobilde çalışmadığında görsel kaybolmaması için */
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

  /* Hero şeritlerini mobilde daha yüksek göster */
  .hero-img-strip { aspect-ratio: 3 / 2 !important; }

  /* Img-card'ları mobilde daha büyük ve net göster */
  .img-card { min-height: 220px; }
  .img-card img { filter: brightness(.92) saturate(.95) !important; }

  /* Badge'leri mobilde her zaman görünür yap (hover yok) */
  .img-card .ic-badge { opacity: 1 !important; transform: none !important; font-size: 9px; }

  /* NDT panel görselleri */
  .ndt-panel-img { aspect-ratio: 4 / 3 !important; }

  /* Method img card */
  .method-img-card { aspect-ratio: 4 / 3 !important; min-height: 200px; }

  /* Hakkımızda fabrika şeridi */
  .hero-img-strip img { filter: brightness(.82) saturate(.9) !important; }
}

/* ── Scroll progress bar ── */
.scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--arc-1);
  z-index: 2000;
  transition: width .1s linear;
  pointer-events: none;
}


/* ── Micro-interactions ── */

/* Cards: lift on hover */
.cert, .card, .proj, .team-card, .disc-card, .val {
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.cert:hover, .card:hover, .team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.25);
}

/* Badges: subtle scale */
.badge {
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.badge:hover {
  transform: scale(1.04);
}

/* Buttons: scale + brightness */
.btn-primary, .btn-ghost, .nav-cta {
  transition: transform .18s ease, filter .18s ease, background .18s ease, color .18s ease;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-ghost:hover   { transform: translateY(-2px); }

/* Filter pills: smooth active transition */
.f-pill {
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .15s ease;
}
.f-pill:hover { transform: translateY(-1px); }

/* Nav links: underline slide */
.nav-link::after {
  transition: width .22s ease;
}

/* Cert icon glow on hover */
.cert:hover .cert-icon {
  background: var(--arc-2);
  color: var(--ink-0);
  transition: background .25s ease, color .25s ease;
}

/* Scroll reveal with slight upward drift */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonial quote marks: pulse on hover */
.tm:hover .tm-mark {
  color: var(--bone);
  transition: color .25s ease;
}

/* ===== Meta typography — site-wide normalization ===== */
.breadcrumb,
.page-hero .breadcrumb {
  font-family: var(--ff-sans) !important;
  font-size: 12px !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
  color: var(--steel-2) !important;
}

.lang-btn,
.nav-meta,
.logo-suffix,
.footer h5,
.footer-bottom,
.eyebrow,
.section-head .label,
.caps,
.caps-wide,
.badge,
.card-num,
.card-tag,
.page-label,
.article-tag,
.btn-arc,
.data-table th,
.table th,
.kv dt,
.sv-head .t,
.sv-head .r,
.sv-foot,
.sv-tags span,
.sv-rw .k,
.hero-stat .k,
.rfq-head .gn,
.form-section-title,
.step-time,
.submit-note,
.trust-item,
.service-icon,
.fason-cmp th {
  letter-spacing: .04em !important;
}

/* Nav menu — readable sans typography */
.nav-link {
  font-family: var(--ff-display) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: -.015em !important;
  text-transform: none !important;
  font-variant: normal !important;
}
.nav-link.active { font-weight: 600 !important; }
@media (max-width: 1280px) {
  .nav-link { font-size: 13px !important; }
}
@media (max-width: 1280px) {
  .nav-drawer .nav-link { font-size: 16px !important; }
}

.article-meta,
.back-link,
.breadcrumb a {
  text-transform: none !important;
  letter-spacing: .02em !important;
}

.flow-st .body .sub,
.sv-sub,
.svc-opt .sub,
.team-role,
.fac-stat .l,
.hours .row,
.map-pin .lbl,
.panel .lbl {
  font-family: var(--ff-sans) !important;
  text-transform: none !important;
  letter-spacing: .01em !important;
  line-height: 1.45 !important;
  font-size: 12px !important;
  color: var(--steel-2) !important;
}

.article-tag,
.card-tag {
  font-size: 11px !important;
}

.data-table th,
.table th,
.fason-cmp th {
  font-size: 11px !important;
}

/* Unified scroll reveal */
.reveal.visible,
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background: var(--ink-0);
  border-top: 1px solid var(--ink-4);
  box-shadow: 0 -8px 32px rgba(0,0,0,.25);
  transition: transform .35s ease, opacity .35s ease;
}
.cookie-banner__body {
  flex: 1 1 320px;
  min-width: 0;
}
.cookie-banner__title {
  margin: 0 0 6px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--arc-2);
}
.cookie-banner__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--steel-3);
  max-width: 58ch;
}
.cookie-banner__legal {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
}
.cookie-banner a { color: var(--arc-2); text-decoration: none; }
.cookie-banner a:hover { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__btn {
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--ink-4);
  cursor: pointer;
  background: transparent;
  color: var(--bone);
}
.cookie-banner__btn--primary {
  background: var(--arc-2);
  border-color: var(--arc-2);
  color: var(--ink-0);
}
.cookie-banner--hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

body.has-cookie-banner {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

/* Google Maps embed */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--ink-4);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 20px;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.map-action {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--ink-4);
  color: var(--steel-2);
  transition: color 0.2s, border-color 0.2s;
}

.map-action:hover {
  color: var(--arc-2);
  border-color: var(--arc-2);
}

.map-action--primary {
  background: var(--arc-2);
  border-color: var(--arc-2);
  color: var(--ink-0);
}

.map-action--primary:hover {
  color: var(--ink-0);
  opacity: 0.92;
}

.footer-addr-link {
  display: block;
  color: inherit;
  text-decoration: none;
  margin-bottom: 10px;
}

.footer-addr-link:hover .footer-addr-line {
  color: var(--arc-2);
}

.footer-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 4px;
}

.footer-map-links a {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--arc-2);
  text-decoration: none;
}

.footer-map-links a:hover {
  text-decoration: underline;
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
  .wa-fab { animation: none !important; }
}

/* ===== Content marketing bands ===== */
.aw-band { border-top: 1px solid var(--ink-4); }
.aw-persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-4);
  border: 1px solid var(--ink-4);
  margin-top: 48px;
}
.aw-persona-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: var(--ink-1);
  text-decoration: none;
  transition: background .2s ease;
  min-height: 180px;
}
.aw-persona-card:hover { background: var(--ink-2); }
.aw-persona-card h3 { font-size: 18px; font-weight: 700; color: var(--bone); margin: 0; }
.aw-persona-card p { font-size: 14px; line-height: 1.55; color: var(--steel-3); margin: 0; flex: 1; }
.aw-persona-card .link { font-family: var(--ff-mono); font-size: 11px; color: var(--arc-2); letter-spacing: .04em; }
.aw-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.aw-audience-item {
  padding: 24px;
  border: 1px solid var(--ink-4);
  background: var(--ink-0);
}
.aw-audience-item h3 { font-size: 16px; font-weight: 700; color: var(--bone); margin: 0 0 10px; }
.aw-audience-item p { font-size: 14px; line-height: 1.55; color: var(--steel-3); margin: 0; }
.aw-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-4);
  border: 1px solid var(--ink-4);
  margin-top: 48px;
}
.aw-blog-card {
  display: block;
  padding: 28px 24px;
  background: var(--ink-0);
  text-decoration: none;
  transition: background .2s ease;
}
.aw-blog-card:hover { background: var(--ink-1); }
.aw-blog-card h3 { font-size: 17px; font-weight: 700; color: var(--bone); margin: 0 0 10px; }
.aw-blog-card p { font-size: 14px; line-height: 1.55; color: var(--steel-3); margin: 0; }
.aw-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-4);
  border: 1px solid var(--ink-4);
  margin-top: 48px;
}
.aw-why-item { padding: 28px 22px; background: var(--ink-1); }
.aw-why-item h3 { font-size: 15px; font-weight: 700; color: var(--bone); margin: 0 0 8px; }
.aw-why-item p { font-size: 13px; line-height: 1.55; color: var(--steel-3); margin: 0; }
.proj-outcome {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ink-4);
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--arc-2);
  letter-spacing: .02em;
}
.hero-visual .hv-photo {
  position: absolute;
  inset: 40px;
  z-index: 0;
  background: url('uploads/welder.webp') center/cover no-repeat;
  opacity: .2;
  filter: grayscale(20%) contrast(1.05);
  pointer-events: none;
}
.hero-visual .hv-stage {
  position: absolute;
  inset: 40px;
  z-index: 1;
}
@media (max-width: 768px) {
  .hero-visual .hv-photo,
  .hero-visual .hv-stage { inset: 20px 16px; }
}
@media (max-width: 480px) {
  .hero-visual .hv-photo,
  .hero-visual .hv-stage { inset: 14px 10px; }
}
.svc-benefit {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid var(--arc-2);
  background: rgba(255,122,26,.06);
  font-size: 14px;
  line-height: 1.55;
  color: var(--steel-3);
}
@media (max-width: 900px) {
  .aw-persona-grid, .aw-audience-grid, .aw-blog-grid { grid-template-columns: 1fr; }
  .aw-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .aw-why-grid { grid-template-columns: 1fr; }
}

/* Reference quotes & sector pills (index + shared) */
.ref-sector-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}
.ref-sector-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  max-width: 100%;
  background: var(--ink-0);
  border: 1px solid var(--ink-4);
  padding: 12px 16px;
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--bone);
  letter-spacing: .08em;
  line-height: 1.4;
}
.ref-sector-pill .sub { color: var(--steel-1); letter-spacing: .06em; }
.ref-quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-4);
  border: 1px solid var(--ink-4);
}
.ref-quote-card {
  background: var(--ink-0);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.ref-quote-mark {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(40px, 10vw, 60px);
  line-height: .6;
  color: var(--arc-2);
}
.ref-quote-text {
  font-family: var(--ff-display);
  font-size: clamp(15px, 3.8vw, 17px);
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--bone);
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.ref-quote-who {
  border-top: 1px solid var(--ink-4);
  padding-top: 16px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--steel-2);
  letter-spacing: .1em;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Testimonials (projeler + shared) */
.tm-quote {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  min-width: 0;
}

@media (max-width: 900px) {
  .ref-quotes-grid { grid-template-columns: 1fr; }
  .ref-quote-card { padding: 28px 20px; }
  .ref-sector-pills { margin-bottom: 40px; }
}

@media (max-width: 768px) {
  .tm-quote { font-size: clamp(16px, 4.2vw, 19px); line-height: 1.4; }
  .tm { padding: 28px 20px; }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
  .cookie-banner__text { max-width: none; font-size: 12px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1; min-width: 0; }
  .cta-inner h2 { font-size: clamp(32px, 9vw, 56px); }
  .section-head .display.h2 { font-size: clamp(24px, 6.5vw, 38px); }
  .proj-outcome, .svc-benefit {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
