/* kadiripek.com — plain, single-column page. Black text, red links, one red button.
   No JavaScript, no decoration: the content is the design. */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #0a0a0b;
  --soft: rgb(10 10 11 / 0.68);   /* secondary text: still black, just lighter */
  --line: rgb(10 10 11 / 0.14);
  --red: #e3182d;
  --red-dark: #b8101f;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* after a menu jump, stop the heading just below the sticky header, not behind it */
section {
  scroll-margin-top: 32px;   /* header (72px) + 16px air - section top padding (56px) */
}

body {
  margin: 0;
  background: #fff;
  color: var(--black);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Text runs the full 1040px width; where a note sits beside it, the note takes 260px. */
:root {
  --note: 260px;
}
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}
a {
  color: var(--red);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--red-dark);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h1 {
  font-size: 44px;
  font-weight: 800;
  margin: 0 0 20px;
}
h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 12px;
}
h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
}
p,
ul,
ol {
  margin: 0 0 16px;
}
ul,
ol {
  padding-left: 22px;
}
li + li {
  margin-top: 6px;
}

.soft {
  color: var(--soft);
}

.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: #fff;
  padding: 6px 10px;
}

/* ---------- header ---------- */

/* sticky: mark, sector links on the left, this page's sections and the offer on the right */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.brand img {
  display: block;
  height: 26px;
  width: auto;
}
.nav-sectors {
  display: flex;
  gap: 24px;
  font-size: 16px;
  font-weight: 700;
}
.nav-sectors a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  color: var(--black);
  text-decoration: none;
}
.nav-sectors a:hover,
.nav-sectors a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}
.nav-page {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  padding-left: 32px;
  border-left: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
}
.nav-page a:not(.button) {
  color: var(--soft);
  text-decoration: none;
}
.nav-page a:not(.button):hover {
  color: var(--red);
}
.button-small {
  padding: 8px 14px;
  font-size: 15px;
}

/* phone menu: a <details> element, so it opens and closes without any script */
.mobile-menu {
  display: none;
  margin-left: auto;
}
.mobile-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  list-style: none;
  cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.mobile-menu summary span,
.mobile-menu summary span::before,
.mobile-menu summary span::after {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: transform 0.15s, background 0.15s;
}
.mobile-menu summary span::before,
.mobile-menu summary span::after {
  content: "";
  position: absolute;
  left: 0;
}
.mobile-menu summary span::before {
  top: -7px;
}
.mobile-menu summary span::after {
  top: 7px;
}
.mobile-menu[open] summary span {
  background: transparent;
}
.mobile-menu[open] summary span::before {
  top: 0;
  transform: rotate(45deg);
}
.mobile-menu[open] summary span::after {
  top: 0;
  transform: rotate(-45deg);
}
.mobile-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 60px);
  padding: 28px 16px 32px;
  background: #fff;
}
/* while the menu is open the page behind it stays put */
body:has(.mobile-menu[open]) {
  overflow: hidden;
}
/* the four sectors as a 2x2 of small tiles, a smaller echo of the sector cards */
.mobile-menu-sectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mobile-menu-sectors a {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
}
.mobile-menu-sectors a[aria-current="page"] {
  border-color: var(--red);
  color: var(--red);
}
.mobile-menu-page {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.mobile-menu-page a {
  font-size: 17px;
  font-weight: 600;
  color: var(--soft);
  text-decoration: none;
}
.mobile-menu-panel .button {
  margin-top: 32px;
  text-align: center;
}

/* ---------- sections ---------- */

section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.intro {
  border-top: 0;
  padding-top: 72px;
}
.intro .lead {
  font-size: 20px;
  color: var(--soft);
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border: 0;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: var(--red-dark);
  color: #fff;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 28px 0 0;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}
.facts li + li {
  margin-top: 8px;
}

/* services */
.services {
  margin: 28px 0 0;
}
.services dt {
  font-weight: 700;
}
.services dd {
  margin: 4px 0 22px;
  color: var(--soft);
}

/* projects */
.project {
  margin-top: 40px;
}

/* Prodetect data flow: three boxes with arrows, stacked on small screens */
.flow {
  display: flex;
  align-items: stretch;
  gap: 36px;
  list-style: none;
  padding: 0;
  margin: 6px 0 22px;
}
.flow li {
  position: relative;
  flex: 1;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--black);
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.35;
}
.flow li small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--soft);
}
.flow li + li::before {
  content: "→";
  position: absolute;
  left: -29px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  color: var(--black);
}
.flow .flow-key {
  border: 2px solid var(--red);
  color: var(--red);
}
.project img {
  border: 1px solid var(--line);
  margin: 6px 0 18px;
}

/* project groups: real references first, then sample (demo) projects */
.group-title {
  margin-top: 28px;
  font-size: 24px;
}
.group-next {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.project h3 {
  font-size: 20px;   /* one step below the group titles */
}

/* named solutions (Prodetect, Proorder, ...): "Pro" in black, the rest in red */
.product-title {
  margin-bottom: 16px;
}
.product-title b {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.product-title em,
.product-cards em {
  font-style: normal;
  color: var(--red);
}

/* where a solution is already running at a customer */
.ref-note {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--red);
  font-size: 16px;
  color: var(--soft);
}
.ref-note strong {
  color: var(--black);
}

/* the Pro series on the home page: one card per solution */
.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.product-cards li {
  margin: 0;
}
.product-cards a {
  display: block;
  height: 100%;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--black);
  text-decoration: none;
}
.product-cards a:hover {
  border-color: var(--red);
}
.product-cards b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.series-note {
  margin: 22px 0 0;
  color: var(--soft);
}

.product-cards p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--soft);
}
/* product anchors (/plastic/#prosync): stop below the sticky header */
.project {
  scroll-margin-top: 88px;
}
.services dt a {
  color: var(--red);
}

/* sector landing pages: one card per sector, two per row, one on phones */
.sector-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.sector-cards li {
  margin: 0;
}
.sector-cards a {
  display: block;
  height: 100%;
  padding: 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--black);
  text-decoration: none;
}
.sector-cards a:hover {
  border-color: var(--red);
}
.sector-cards img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  margin-bottom: 14px;
}
.sector-cards b {
  display: block;
  color: var(--red);
  font-size: 19px;
  line-height: 1.3;
}
.sector-cards span {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--soft);
}

/* why me */
.reasons {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.reasons li + li {
  margin-top: 14px;
}

/* first-step offer: the one boxed element on the page.
   The negative margin equals padding + border, so the text inside stays on the same
   left/right edge as the text above and below; only the red border sits outside. */
.offer-section {
  border-top: 0;
  padding-top: 0;
  scroll-margin-top: 88px;   /* no top padding here: header (72px) + 16px air */
}
.offer {
  --offer-pad: 28px;
  margin: 0 calc(-1 * (var(--offer-pad) + 2px));
  padding: 26px var(--offer-pad) 24px;
  border: 2px solid var(--red);
  border-radius: 4px;
}
.offer h2 {
  font-size: 26px;
}
.offer-action {
  margin: 20px 0 0;
}

/* contact */
#contact .soft {
  margin-bottom: 28px;
}

form {
  margin-top: 8px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}
.field .optional {
  font-weight: 400;
  color: var(--soft);
}
.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgb(10 10 11 / 0.35);
  border-radius: 4px;
  background: #fff;
  color: var(--black);
  font: inherit;
  font-size: 17px;
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.form-note {
  font-size: 15px;
  color: var(--soft);
}
.hidden {
  position: absolute;
  left: -9999px;
}

/* ---------- margin notes ---------- */

/* Text on the left, a short note in the free space on the right. The note stays in view
   while its block scrolls past. */
.annotated {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--note);
  column-gap: 56px;
  align-items: start;
}
.note {
  position: sticky;
  top: 96px;
  padding-left: 16px;
  border-left: 2px solid var(--red);
  font-size: 15px;
  line-height: 1.55;
  color: var(--soft);
}
.note p {
  margin: 0 0 12px;
}
.note p:last-child {
  margin-bottom: 0;
}
.note .facts {
  margin: 0;
}
.note .facts li + li {
  margin-top: 12px;
}
.intro .note {
  margin-top: 10px;
}
.project .note {
  margin-top: 64px;   /* level with the screen, below the product name */
}

/* ---------- full-width blocks ---------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 56px;
}
.reasons li + li {
  margin-top: 0;
}

/* process: three numbered steps side by side */
#process > ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
#process > ol > li {
  margin: 0;
  counter-increment: step;
}
#process > ol > li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
  font-weight: 800;
  color: var(--red);
}

/* "Serideki Diğer Çözümler": each name and its line in a column of its own */
.services {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: auto auto;
  grid-auto-columns: minmax(0, 1fr);
  column-gap: 40px;
}
.services dd {
  margin-bottom: 0;
}

/* the offer box: text on the left, the button on the right */
.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 56px;
  margin: 0;
}
.offer > * {
  grid-column: 1;
}
.offer .offer-action {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  margin: 0;
}
.offer .offer-action .button {
  white-space: nowrap;
}

/* contact form: short fields two by two, the message across */
main section > form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
form .field:has(textarea),
form .form-note,
form > button {
  grid-column: 1 / -1;
}
form > button {
  justify-self: start;
}

.note-quote {
  margin-top: 64px;
}
.note-quote p {
  font-size: 21px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--black);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 15px;
  color: var(--soft);
  text-align: center;
}
.site-footer a {
  color: var(--soft);
}
.footer-line {
  margin: 0 0 8px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 0;
}

/* ---------- simple pages (thanks, privacy) ---------- */

.page {
  padding: 56px 0 72px;
}
.page h2 {
  font-size: 22px;
  margin-top: 32px;
}

/* ---------- medium screens: notes fall under their block, cards go two by two ---------- */

@media (max-width: 960px) {
  .annotated {
    display: block;
  }
  .note,
  .intro .note,
  .project .note {
    position: static;
    margin-top: 20px;
  }
  .sector-cards,
  .product-cards {
    grid-template-columns: 1fr 1fr;
  }
  .offer {
    display: block;
  }
  .offer .offer-action {
    margin-top: 20px;
  }
  .note-quote {
    margin-top: 20px;
  }
  .nav-page a:not(.button) {
    display: none;   /* sections are one scroll away; the sectors and the offer stay */
  }
}

/* ---------- phones and small tablets: the burger menu ---------- */

@media (max-width: 760px) {
  .site-header .container {
    height: 60px;
  }
  .brand img {
    height: 22px;
  }
  .nav-sectors,
  .nav-page {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .reasons,
  #process > ol,
  main section > form {
    grid-template-columns: 1fr;
  }
  .services {
    grid-auto-flow: row;
    grid-template-rows: none;
  }
  .services dd {
    margin-bottom: 18px;
  }
}

/* ---------- small screens ---------- */

@media (max-width: 600px) {
  body {
    font-size: 17px;
  }
  section {
    scroll-margin-top: 32px;   /* header (60px) + 16px air - padding (44px) */
  }
  .project {
    scroll-margin-top: 76px;
  }
  .offer-section {
    scroll-margin-top: 76px;   /* no top padding: header (60px) + 16px air */
  }
  h1 {
    font-size: 34px;
  }
  h2 {
    font-size: 26px;
  }
  section {
    padding: 44px 0;
  }
  .intro {
    padding-top: 48px;
  }
  .offer {
    /* the container has 16px side padding; stay inside the screen */
    --offer-pad: 12px;
    padding-top: 20px;
    padding-bottom: 18px;
  }
  .offer h2 {
    font-size: 22px;
  }
  .sector-cards {
    grid-template-columns: 1fr;
  }
  .product-cards {
    grid-template-columns: 1fr;
  }
  .product-title b {
    font-size: 28px;
  }
  .flow {
    flex-direction: column;
    gap: 30px;
  }
  .flow li + li::before {
    content: "↓";
    left: 50%;
    top: -27px;
    transform: translateX(-50%);
  }
}
