/* =========================================================================
   YÜKSAN AHŞAP
   Concrete floor, stamp ink, forklift yellow. One type family (Archivo): the
   condensed heavy cut is used for titles, the size drawing and the phone number.
   ========================================================================= */

:root {
  --ink: #17212b;
  --ink-2: #2b3845;
  --concrete: #e3e7ea;
  --paper: #f5f7f8;
  --white: #ffffff;
  --steel: #52606c;
  --line: #c5ccd2;
  --line-strong: #8b959e;
  --signal: #f2b90c;
  --signal-dark: #d9a300;
  --board: #f7e2a0;        /* wooden boards in the drawing: a pale tint of the signal yellow */
  --board-edge: #2b3845;
  --plastic: #b3bcc5;
  --ok: #2f6b43;
  --err: #a3322a;

  --display: "Archivo", system-ui, sans-serif;
  --display-width: 68%;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 72px;
  --gutter: 24px;
  --section: clamp(56px, 8vw, 104px);
  /* Corner scale: small controls, cards, large panels. */
  --radius: 10px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--concrete); color: var(--ink);
  font: 400 17px/1.6 var(--text); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ispm :focus-visible, .phead :focus-visible, .footer :focus-visible, .actionbar :focus-visible { outline-color: var(--signal); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 300; background: var(--signal); color: var(--ink); padding: 10px 16px; font-weight: 700; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Type ---------- */
.h2 { font: 700 clamp(1.6rem, 2.7vw, 2.25rem)/1.12 var(--text); font-stretch: 88%; letter-spacing: -0.01em; }
.h3 { font: 700 1.2rem/1.25 var(--text); font-stretch: 92%; }
.lead { color: var(--steel); font-size: 1.06rem; max-width: 60ch; }
.lead--big { color: var(--ink); font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.45; }
.prose p { max-width: 64ch; margin-bottom: 1em; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 48px; flex-wrap: wrap; margin-bottom: 32px; }
.split-head .lead { max-width: 46ch; }
.section > .container > .h2 { margin-bottom: 32px; }
.more { margin-top: 28px; }

.textlink {
  color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--signal);
  text-decoration-thickness: 3px; text-underline-offset: 5px; background: none; border: 0; padding: 0;
  transition: text-decoration-color .2s, color .2s;
}
.textlink:hover { text-decoration-color: var(--ink); }
.textlink--light { color: var(--paper); }
.textlink--light:hover { text-decoration-color: var(--paper); }

.ticks li { position: relative; padding-left: 22px; margin: 6px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--signal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 2px solid transparent; border-radius: var(--radius); font-weight: 700; font-size: .98rem;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--signal-dark); box-shadow: 0 10px 22px -12px rgba(217, 163, 0, .9); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .9rem; }
.btn .icon { width: 18px; height: 18px; }

.flash-wrap { padding-top: 16px; }
.flash { padding: 12px 16px; margin-bottom: 12px; border-left: 4px solid; background: var(--paper); border-radius: var(--r-sm); }
.flash--success { border-color: var(--ok); color: var(--ok); }
.flash--error { border-color: var(--err); color: var(--err); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 12px 30px -24px rgba(23, 33, 43, .6); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.header__brand { flex: none; display: flex; }
.header__logo { height: 50px; width: auto; }
.header__wordmark { font: 800 1.6rem/1 var(--display); font-stretch: var(--display-width); letter-spacing: -0.01em; }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header__phone { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.header__toggle { display: none; width: 44px; height: 44px; place-items: center; background: none; border: 0; }
.header__toggle .icon { width: 26px; height: 26px; }
.header__toggle-close { display: none; }

.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 4px; padding: 24px 10px 21px; font-weight: 600; font-size: .96rem;
  text-decoration: none; border-bottom: 3px solid transparent; transition: border-color .2s;
}
.nav__link .icon { width: 15px; height: 15px; }
.nav__link:hover { border-bottom-color: var(--line-strong); }
.nav__link.is-active { border-bottom-color: var(--signal); }
.drop {
  position: absolute; top: 100%; left: 0; min-width: 280px; padding: 8px 0; background: var(--paper);
  border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: 0 0 var(--r) var(--r);
  box-shadow: 0 20px 40px -24px rgba(23, 33, 43, .45);
  opacity: 0; visibility: hidden; translate: 0 8px; transition: opacity .2s, translate .2s var(--ease), visibility .2s;
}
.nav__item--drop:hover > .drop, .nav__item--drop:focus-within > .drop, .nav__item--drop.is-open > .drop { opacity: 1; visibility: visible; translate: 0 0; }
.drop a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 18px; text-decoration: none; font-weight: 600; transition: background-color .15s; }
.drop a:hover { background: var(--concrete); }
.drop__count { color: var(--steel); font-weight: 400; font-variant-numeric: tabular-nums; }
.drop__all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.drop__all a { color: var(--steel); }

/* ---------- Page head (inner pages) ---------- */
.phead { background: var(--ink); color: var(--paper); border-bottom: 4px solid var(--signal); }
.phead__inner { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(36px, 5vw, 60px); }
.phead__title { font: 800 clamp(3rem, 8vw, 6rem)/.9 var(--display); font-stretch: var(--display-width); letter-spacing: -0.02em; margin-bottom: 14px; }
.phead__lead { max-width: 58ch; color: rgba(245, 247, 248, .82); font-size: 1.08rem; }

/* ---------- Hero: size picker + drawing ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }

/* Photo behind the hero: ink veil, darkest behind the headline; colour pulled down to sit with the cool palette. */
.hero--photo { padding: clamp(48px, 8vw, 112px) 0 clamp(56px, 8vw, 120px); }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; filter: saturate(.7); }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(23, 33, 43, .94) 0%, rgba(23, 33, 43, .8) 42%, rgba(23, 33, 43, .5) 100%);
}
.hero--photo .hero__title { color: var(--paper); }
.hero--photo .hero__lead { color: rgba(245, 247, 248, .84); }
.hero--photo .size { background: rgba(245, 247, 248, .08); color: var(--paper); border-color: rgba(245, 247, 248, .55); }
.hero--photo .size:hover { background: rgba(245, 247, 248, .18); }
.hero--photo .size[aria-checked="true"] { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.hero--photo .sheet { border-color: transparent; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
.hero--photo :focus-visible { outline-color: var(--signal); }
.hero__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__title { font: 800 clamp(3.4rem, 8.4vw, 7.2rem)/.88 var(--display); font-stretch: var(--display-width); letter-spacing: -0.025em; margin-bottom: 24px; }
.hero__lead { font-size: 1.12rem; color: var(--steel); max-width: 44ch; margin-bottom: 28px; }

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  min-height: 48px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper);
  font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; letter-spacing: .01em;
  transition: background-color .2s, color .2s, transform .15s var(--ease);
}
.size:active { transform: scale(.97); }
.size:hover { background: var(--white); }
.size[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.size--custom { border-style: dashed; font-weight: 600; }

.sheet { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.sheet__drawing, .pd__drawing {
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(23, 33, 43, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 43, .09) 1px, transparent 1px),
    linear-gradient(rgba(23, 33, 43, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 43, .04) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  border-bottom: 1px solid var(--line);
}
.drawing { display: block; width: 100%; height: auto; color: var(--ink); }
.d-board { fill: var(--board); stroke: var(--board-edge); stroke-width: 1.3; }
.drawing--plastic .d-board { fill: var(--plastic); stroke: var(--ink-2); }
.d-bearer { fill: none; stroke: var(--steel); stroke-width: 1.2; stroke-dasharray: 7 5; }
.d-ext { stroke: var(--steel); stroke-width: 1; }
.d-dim { stroke: var(--ink); stroke-width: 1.4; }
.d-label { font: 700 24px var(--display); font-stretch: var(--display-width); fill: var(--ink); letter-spacing: 0; }

.result { padding: 22px 24px 24px; }
.result__head { font-size: 1.05rem; margin-bottom: 12px; }
.result__head strong { font: 800 1.9rem/1 var(--display); font-stretch: var(--display-width); margin-right: 6px; }
.result__text { color: var(--steel); margin-bottom: 18px; max-width: 48ch; }
.result__cats { margin-bottom: 18px; border-top: 1px solid var(--line); }
.result__cats li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.result__cats a { font-weight: 600; text-decoration: none; }
.result__cats a:hover { text-decoration: underline; }
.result__cats span { font-variant-numeric: tabular-nums; color: var(--steel); }

/* ---------- Product groups ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); text-decoration: none; padding: 0 0 18px;
  border-radius: var(--r); overflow: hidden; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s;
}
.cat:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 32px -24px rgba(23, 33, 43, .5); }
.cat__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--white); padding: 14px; margin-bottom: 16px; }
.cat__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.cat:hover .cat__img img { transform: scale(1.05); }
.cat__name, .cat__text, .cat__count { padding: 0 18px; }
.cat__name { font: 700 1.25rem/1.2 var(--text); font-stretch: 90%; margin-bottom: 6px; }
.cat__text { color: var(--steel); font-size: .95rem; margin-bottom: 14px; }
.cat__count { margin-top: auto; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Spec table ---------- */
.specs { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.specs__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.specs__table thead th {
  text-align: left; font-size: .85rem; font-weight: 600; color: var(--steel); padding: 12px 14px;
  border-bottom: 2px solid var(--ink); background: var(--paper); white-space: nowrap;
}
.specs__table td, .specs__table tbody th { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.specs__table tbody tr:last-child > * { border-bottom: 0; }
.specs__table tbody tr { transition: background-color .15s; }
.specs__table tbody tr:hover { background: #f2f5f7; }
.specs__img { width: 104px; }
.specs__img img { width: 88px; height: 60px; object-fit: contain; }
.specs__name { font-weight: 400; min-width: 220px; }
.specs__name a { display: block; font-weight: 700; text-decoration: none; }
.specs__name a:hover { text-decoration: underline; }
.specs__name span { font-size: .85rem; color: var(--steel); }
.specs__act { text-align: right !important; width: 1%; }

/* ---------- ISPM 15 ---------- */
.ispm { background: var(--ink); color: var(--paper); padding: var(--section) 0; }
.ispm__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 7vw, 96px); align-items: center; }
.ispm__mark {
  display: grid; font: 800 clamp(4.5rem, 11vw, 9rem)/.82 var(--display); font-stretch: var(--display-width); color: var(--signal);
  border: 4px solid var(--signal); border-radius: 18px; padding: 18px 26px 14px; text-align: center; rotate: -3deg;
}
.ispm__text p { color: rgba(245, 247, 248, .82); margin: 16px 0 18px; max-width: 58ch; }
.ispm__text .ticks { margin-bottom: 26px; }

/* ---------- Sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; }
.sectors div { border-top: 2px solid var(--ink); padding-top: 14px; }
.sectors dt { font-weight: 700; font-size: 1.08rem; margin-bottom: 6px; }
.sectors dd { color: var(--steel); }

/* ---------- Steps (a real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
.steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { position: relative; padding-top: 16px; }
.steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); transform-origin: left; }
.steps__n { display: block; font: 800 2.6rem/1 var(--display); font-stretch: var(--display-width); margin-bottom: 10px; }
.steps h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.steps p { color: var(--steel); font-size: .95rem; }
.group .steps { margin-top: 28px; }

/* ---------- About (home + about page) ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); border-radius: var(--r-lg); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__text .lead { margin: 16px 0 24px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.facts div { border-top: 2px solid var(--ink); padding-top: 10px; }
.facts dt { font-size: .85rem; color: var(--steel); }
.facts dd { font-weight: 700; }

.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.story__text .lead--big { margin-bottom: 20px; }
.story__text .prose { color: var(--steel); margin-bottom: 28px; }
.story__imgs { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; align-items: end; }
.story__main { aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-lg); }
.story__side { aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r); }
.story__main img, .story__side img { width: 100%; height: 100%; object-fit: cover; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
.pillars .h2 { margin-bottom: 16px; }
.facility { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.facility .lead { margin-top: 16px; }
.figures div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.figures div:first-child { border-top: 2px solid var(--ink); }
.figures dt { color: var(--steel); }
.figures dd { font: 800 2.2rem/1 var(--display); font-stretch: var(--display-width); }

/* ---------- Contact ---------- */
.contact { padding: var(--section) 0; background: var(--concrete); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact__info .lead { margin-top: 12px; }
.contact__phone {
  display: inline-block; margin: 24px 0 18px; font: 800 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); font-stretch: var(--display-width);
  text-decoration: none; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.contact__phone:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 4px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.contact__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.contact__facts div { border-top: 2px solid var(--ink); padding-top: 10px; }
.contact__facts dt { font-size: .85rem; color: var(--steel); margin-bottom: 2px; }
.contact__facts dd { font-weight: 600; }
.contact__facts a { font-weight: 600; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.contact__form { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--r-lg); padding: clamp(20px, 3.5vw, 36px); }

/* ---------- Forms ---------- */
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 18px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.field em { font-style: normal; font-weight: 400; color: var(--steel); }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .select select {
  width: 100%; min-height: 48px; padding: 10px 12px; background: var(--white); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius); font-weight: 400; font-size: 1rem;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field textarea:focus, .select select:focus { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--ink); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.field__err { color: var(--err); font-weight: 500; font-size: .85rem; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .85rem; color: var(--steel); margin-top: 12px; }
.form__status:empty { display: none; }
.form__status { margin-top: 14px; padding: 12px 14px; border-left: 4px solid; background: var(--white); border-radius: var(--r-sm); }
.form__status.is-ok { border-color: var(--ok); color: var(--ok); }
.form__status.is-err { border-color: var(--err); color: var(--err); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Map ---------- */
.map { padding: 0 0 var(--section); background: var(--concrete); }
.map__frame { position: relative; height: clamp(300px, 36vw, 460px); border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-lg); overflow: hidden; }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- CTA strip ---------- */
.strip { background: var(--paper); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0; }
.strip__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.strip .lead { margin-top: 10px; }
.strip__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.strip__phone { font: 800 2rem/1 var(--display); font-stretch: var(--display-width); text-decoration: none; font-variant-numeric: tabular-nums; }

/* ---------- Catalog ---------- */
.catalog { padding: 32px 0 var(--section); }
.filters { margin-bottom: 24px; }
.filters__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: var(--radius); font-weight: 600; transition: background-color .2s, color .2s;
}
.chip span { font-weight: 400; color: var(--steel); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] span { color: rgba(245, 247, 248, .75); }
.filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.select { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.select select { width: auto; min-width: 210px; }
.search-field {
  flex: 1; min-width: 220px; max-width: 420px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius); color: var(--steel);
}
.search-field:focus-within { outline: 3px solid var(--signal); border-color: var(--ink); }
.search-field input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: none; outline: none; color: var(--ink); }
.filters__count { margin-left: auto; color: var(--steel); font-variant-numeric: tabular-nums; }
.search-form { margin-bottom: 28px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: border-color .2s, transform .3s var(--ease), box-shadow .3s;
}
.tile[hidden] { display: none; }
.tile:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 32px -24px rgba(23, 33, 43, .5); }
.tile__link { display: flex; flex-direction: column; height: 100%; padding: 0 0 14px; text-decoration: none; }
.tile__img { aspect-ratio: 4 / 3; background: var(--white); padding: 12px; margin-bottom: 12px; }
.tile__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.05); }
.tile__name { font: 700 1rem/1.3 var(--text); padding: 0 14px; margin-bottom: 10px; }
.tile__sub { padding: 0 14px; color: var(--steel); font-size: .9rem; }
.tile__specs { margin: auto 14px 0; font-size: .86rem; font-variant-numeric: tabular-nums; }
.tile__specs div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); }
.tile__specs dt { color: var(--steel); }
.tile__specs dd { font-weight: 600; text-align: right; }
.empty { padding: 32px; background: var(--paper); border: 1.5px dashed var(--line-strong); border-radius: var(--r); }
.empty p { margin-bottom: 16px; max-width: 60ch; }

/* ---------- Product detail ---------- */
.pd { padding: 28px 0 var(--section); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; font-size: .92rem; }
.crumbs a { color: var(--steel); }
.crumbs a + a::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.pd__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.pd__stage { aspect-ratio: 1 / 1; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; place-items: center; }
.pd__stage img { width: 100%; height: 100%; object-fit: contain; }
.pd__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pd__thumbs button { width: 72px; height: 72px; padding: 4px; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-sm); }
.pd__thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.pd__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd__cat { color: var(--steel); font-weight: 600; margin-bottom: 8px; }
.pd__title { font: 700 clamp(1.8rem, 3.4vw, 2.7rem)/1.08 var(--text); font-stretch: 82%; letter-spacing: -0.01em; margin-bottom: 14px; }
.pd__info > .lead { margin-bottom: 22px; }
.pd__specs { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-variant-numeric: tabular-nums; }
.pd__specs th, .pd__specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pd__specs tr:first-child > * { border-top: 2px solid var(--ink); }
.pd__specs th { font-weight: 400; color: var(--steel); width: 45%; padding-right: 16px; }
.pd__specs td { font-weight: 600; }
.pd__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.pd__drawing { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pd__drawing figcaption { padding: 10px 14px; font-size: .88rem; font-weight: 600; background: var(--paper); border-bottom: 1px solid var(--line); }

/* ---------- Çözümler / Üretim / Kalite ---------- */
.topics { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-top: 40px; padding-bottom: var(--section); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.toc ul { border-left: 2px solid var(--ink); }
.toc a { display: block; padding: 8px 0 8px 14px; font-weight: 600; text-decoration: none; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; }
.topics__body { min-width: 0; }
.group { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.group__head { margin-bottom: 28px; }
.group__head .lead { margin-top: 8px; }
.group__head--img { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 24px; align-items: end; }
.group__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); border-radius: var(--r); }
.group__img img { width: 100%; height: 100%; object-fit: cover; }
.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.item { display: flex; flex-direction: column; gap: 8px; }
.item__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); margin-bottom: 8px; border-radius: var(--r); }
.item__img img { width: 100%; height: 100%; object-fit: cover; }
.item__meta { color: var(--steel); font-weight: 600; font-size: .92rem; }
.item p { max-width: 60ch; }
.item .ticks { margin: 4px 0 8px; font-size: .95rem; }
.item .textlink { margin-top: auto; align-self: flex-start; }
.qa { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.qa .item__meta { margin: 8px 0 14px; }
.qa .lead { color: var(--ink); margin-bottom: 14px; }
.qa__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); }
.qa__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Search / errors ---------- */
.search__h { margin: 48px 0 16px; }
.hits { border-top: 2px solid var(--ink); }
.hits a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.hits strong { margin-right: 10px; }
.hits span { color: var(--steel); font-size: .9rem; }
.hits p { color: var(--steel); margin-top: 4px; }
.hits a:hover strong { text-decoration: underline; }
.errorpage { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(245, 247, 248, .8); padding: 56px 0 24px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; }
.footer__name { font: 800 2rem/1 var(--display); font-stretch: var(--display-width); color: var(--paper); margin-bottom: 12px; }
.footer__brand p:not(.footer__name) { max-width: 36ch; }
.footer__links { display: grid; gap: 8px; }
.footer a { color: var(--paper); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.footer__contact { display: grid; gap: 8px; font-style: normal; align-content: start; overflow-wrap: anywhere; }
.footer__bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(245, 247, 248, .15); font-size: .85rem; }

/* ---------- Mobile action bar ---------- */
.actionbar { display: none; }

/* ---------- Quote modal ---------- */
.modal { width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-top: 4px solid var(--signal); border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.modal::backdrop { background: rgba(23, 33, 43, .72); }
.modal__box { position: relative; padding: clamp(22px, 4vw, 36px); }
.modal__title { padding-right: 44px; margin-bottom: 8px; }
.modal__close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; transition: background-color .15s; }
.modal__close:hover { background: var(--concrete); }
.modal__close .icon { width: 24px; height: 24px; }
body.modal-open { overflow: hidden; }

/* =========================================================================
   Motion. Entrance animations only run under html.motion (set in <head> when
   the browser supports them and the visitor hasn't asked for reduced motion).
   They animate `translate`/`opacity`, so hover effects on `transform` still work.
   ========================================================================= */
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { from { opacity: 0; translate: 0 -28px; } to { opacity: 1; translate: 0 0; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stamp {
  0% { opacity: 0; scale: 1.4; rotate: -12deg; }
  55% { opacity: 1; scale: .93; rotate: -2deg; }
  78% { scale: 1.03; rotate: -3.5deg; }
  100% { opacity: 1; scale: 1; rotate: -3deg; }
}
@keyframes settle { from { opacity: .4; scale: 1.08; } to { opacity: 1; scale: 1; } }
@keyframes enter { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes pop-in { from { opacity: 0; translate: 0 14px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }

/* Page load: homepage hero and inner page titles */
.motion .hero__title { animation: rise .8s var(--ease) both; }
.motion .hero__lead { animation: rise .8s var(--ease) .1s both; }
.motion .hero .size { animation: rise .5s var(--ease) calc(.22s + var(--i, 0) * 45ms) both; }
.motion .sheet { animation: rise .8s var(--ease) .18s both; }
.motion .hero__bg img { animation: settle 1.8s var(--ease) both; }
.motion .hero .d-board { animation: drop .6s var(--ease) calc(.5s + var(--i, 0) * 70ms) both; }
.motion .hero .d-bearer, .motion .hero .d-ext, .motion .hero .d-dim, .motion .hero .d-label { animation: fade .6s ease 1.1s both; }
.motion .phead__title { animation: rise .7s var(--ease) both; }
.motion .phead__lead { animation: rise .7s var(--ease) .1s both; }

/* Scroll reveals */
.motion [data-reveal]:not(.is-in), .motion [data-reveal-stagger]:not(.is-in) > * { opacity: 0; }
.motion [data-reveal].is-in { animation: rise .7s var(--ease) var(--d, 0ms) both; }
.motion [data-reveal-stagger].is-in > * { animation: rise .6s var(--ease) var(--d, 0ms) both; }
.motion tbody[data-reveal-stagger].is-in > tr { animation-name: fade; }
.motion [data-reveal="stamp"].is-in { animation: stamp .65s cubic-bezier(.3, .7, .3, 1) .15s both; }
.motion .steps[data-reveal-stagger]:not(.is-in) > li::before { transform: scaleX(0); }
.motion .steps[data-reveal-stagger].is-in > li::before { animation: draw .9s var(--ease) var(--d, 0ms) both; }

/* Responses to the visitor's actions (these run without html.motion too) */
.result.is-swapping > * { animation: rise .35s var(--ease) both; }
.result.is-swapping > :nth-child(2) { animation-delay: 50ms; }
.result.is-swapping > :nth-child(3) { animation-delay: 100ms; }
/* A separate keyframe name so it restarts even after the page-load stagger ran; selector outranks the reveal rule. */
.tiles > .tile.is-entering, .motion [data-reveal-stagger].is-in > .tile.is-entering { animation: enter .35s var(--ease) 0ms both; }
.form__status:not(:empty) { animation: rise .3s var(--ease) both; }
.modal[open] { animation: pop-in .3s var(--ease) both; }
.modal[open]::backdrop { animation: fade .3s ease both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
  .header__toggle { display: grid; }
  .header__phone span { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; padding: 8px var(--gutter) 40px; overflow-y: auto;
    background: var(--paper); display: none;
  }
  body.nav-open .nav { display: block; animation: rise .28s var(--ease) both; }
  body.nav-open { overflow: hidden; }
  body.nav-open .header__toggle-open { display: none; }
  body.nav-open .header__toggle-close { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { justify-content: space-between; padding: 16px 0; font-size: 1.15rem; border-bottom: 0; }
  .nav__link:hover { border-bottom: 0; }
  .nav__link.is-active { box-shadow: inset 4px 0 0 var(--signal); padding-left: 14px; }
  .drop { position: static; min-width: 0; border: 0; border-radius: 0; padding: 0 0 12px; background: none; box-shadow: none; display: none; opacity: 1; visibility: visible; translate: none; transition: none; }
  .nav__item--drop:hover > .drop, .nav__item--drop:focus-within > .drop { display: none; }
  .nav__item--drop.is-open > .drop { display: block !important; }
  .drop a { padding: 10px 0 10px 16px; }

  .cats, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero__grid, .about, .story, .pillars, .facility, .contact__grid, .pd__grid, .qa, .ispm__grid { grid-template-columns: minmax(0, 1fr); }
  .topics { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .group__head--img { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ul { display: flex; flex-wrap: wrap; gap: 6px 18px; border-left: 0; }
  .toc a { padding: 4px 0; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 4px; }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .steps--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .ispm__mark { justify-self: start; }
  .filters__count { margin-left: 0; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(23, 33, 43, .9) 0%, rgba(23, 33, 43, .78) 100%); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --header-h: 64px; }
  body { font-size: 16px; padding-bottom: 64px; }
  .header__logo { height: 42px; }
  .header__cta, .header__phone { display: none; }

  .actionbar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--ink); border-top: 3px solid var(--signal); padding-bottom: env(safe-area-inset-bottom);
  }
  .actionbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px;
    color: var(--paper); text-decoration: none; font-size: .8rem; font-weight: 600;
  }
  .actionbar a + a { border-left: 1px solid rgba(245, 247, 248, .15); }
  .actionbar .icon { width: 22px; height: 22px; }
  .actionbar .actionbar__main { background: var(--signal); color: var(--ink); }

  /* Spec table becomes one block per product */
  .specs { border: 0; background: none; overflow: visible; }
  .specs__table thead { display: none; }
  .specs__table, .specs__table tbody { display: block; }
  .specs__table tr {
    display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 12px; padding: 14px; margin-bottom: 10px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  }
  .specs__table td, .specs__table tbody th { padding: 0; border: 0; }
  .specs__table tbody tr:last-child > * { border-bottom: 0; }
  .specs__img { grid-row: span 5; width: auto; }
  .specs__img img { width: 76px; height: 56px; }
  .specs__name { min-width: 0; margin-bottom: 4px; }
  .specs__table td[data-label] { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; border-top: 1px solid var(--line); padding-top: 4px; }
  .specs__table td[data-label]::before { content: attr(data-label); color: var(--steel); }
  .specs__act { text-align: left !important; width: auto; padding-top: 8px !important; }

  .cats { grid-template-columns: minmax(0, 1fr); }
  .cat { display: grid; grid-template-columns: 120px minmax(0, 1fr); padding: 0; }
  .cat:hover, .tile:hover { transform: none; }
  .cat__img { grid-row: span 3; aspect-ratio: auto; height: 100%; margin: 0; }
  .cat__name { padding-top: 14px; }
  .cat__count { padding-bottom: 14px; }
  .tiles { gap: 10px; }
  .tile__specs div:nth-child(n+2) { display: none; }
  .sectors, .steps, .steps--5, .items, .facts, .contact__facts { grid-template-columns: minmax(0, 1fr); }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .split-head { margin-bottom: 24px; }
  .select { width: 100%; }
  .select select { flex: 1; min-width: 0; }
  .search-field { max-width: none; }
  .story__imgs { grid-template-columns: 1fr 1fr; }
}
