/* ============================================================
   SIMGETEK — Temel katman
   Reset + tipografi siniflari (Figma TEXT style'larinin birebir karsiligi)
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body-m-size);
  line-height: var(--text-body-m-lh);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Figma 1440px sabit genislikte tasarlandi; altinda akiskan kuculur */
  min-width: 320px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

img { height: auto; }

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Odak gostergesi — Figma'da tanimli degil.
   Cift katman: ic beyaz halka koyu zeminde, dis lacivert halka acik zeminde
   gorunur. Boylece foto, lacivert veya beyaz — her zeminde AA gecer. */
:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--color-blue);
  border-radius: 2px;
}
/* Koyu zeminlerde dis halkayi acik maviye cevir (lacivert uzerinde kaybolmasin) */
.header :focus-visible,
.footer :focus-visible,
.about :focus-visible,
.banner :focus-visible,
.megamenu :focus-visible {
  box-shadow: 0 0 0 4px var(--color-cyan);
}

/* Ekran okuyucuya acik, gorsel olarak gizli */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 8px; }


/* ------------------------------------------------------------
   Tipografi siniflari — Figma TEXT style adlariyla birebir
   ------------------------------------------------------------ */

.t-h2 { font-size: var(--text-heading-2-size); line-height: var(--text-heading-2-lh); font-weight: var(--text-heading-2-weight); }
.t-h3 { font-size: var(--text-heading-3-size); line-height: var(--text-heading-3-lh); font-weight: var(--text-heading-3-weight); }
.t-h4 { font-size: var(--text-heading-4-size); line-height: var(--text-heading-4-lh); font-weight: var(--text-heading-4-weight); }
.t-h5 { font-size: var(--text-heading-5-size); line-height: var(--text-heading-5-lh); font-weight: var(--text-heading-5-weight); }
.t-h6 { font-size: var(--text-heading-6-size); line-height: var(--text-heading-6-lh); font-weight: var(--text-heading-6-weight); }

.t-body-l   { font-size: var(--text-body-l-size);   line-height: var(--text-body-l-lh);   font-weight: var(--text-body-l-weight); }
.t-body-m   { font-size: var(--text-body-m-size);   line-height: var(--text-body-m-lh);   font-weight: var(--text-body-m-weight); }
.t-web      { font-size: var(--text-text-web-size); line-height: var(--text-text-web-lh); font-weight: var(--text-text-web-weight); }

/* Albert Sans — tasarimda Blog / Urun Detay / Entegre Cozumler'de gecen ikinci font.
   Birebir korunuyor (kullanici karari: "ne kullandilarsa o"). */
.t-body-alt {
  font-family: var(--text-body-text-family);
  font-size: var(--text-body-text-size);
  line-height: var(--text-body-text-lh);
  font-weight: var(--text-body-text-weight);
}

.t-btn      { font-size: var(--text-button-l-size); line-height: var(--text-button-l-lh); font-weight: var(--text-button-l-weight); }
.t-btn-k    { font-size: var(--text-k-button-size); line-height: var(--text-k-button-lh); font-weight: var(--text-k-button-weight); }
.t-tab      { font-size: var(--text-tab-menu-size); line-height: var(--text-tab-menu-lh); font-weight: var(--text-tab-menu-weight); }
.t-footer      { font-size: var(--text-footer-size);      line-height: var(--text-footer-lh);      font-weight: var(--text-footer-weight); }
.t-footer-menu { font-size: var(--text-footer-menu-size); line-height: var(--text-footer-menu-lh); font-weight: var(--text-footer-menu-weight); }
.t-menu-takip  { font-size: var(--text-menu-takip-size);  line-height: var(--text-menu-takip-lh);  font-weight: var(--text-menu-takip-weight); }

/* Mobil stilleri */
.t-m-h2    { font-size: var(--text-m-h2-size);     line-height: var(--text-m-h2-lh);     font-weight: var(--text-m-h2-weight); }
.t-m-h3    { font-size: var(--text-m-h3-size);     line-height: var(--text-m-h3-lh);     font-weight: var(--text-m-h3-weight); }
.t-m-body  { font-size: var(--text-m-govde-size);  line-height: var(--text-m-govde-lh);  font-weight: var(--text-m-govde-weight); }
.t-m-text  { font-size: var(--text-m-metin-size);  line-height: var(--text-m-metin-lh);  font-weight: var(--text-m-metin-weight); }
.t-m-small { font-size: var(--text-m-ygovde-size); line-height: var(--text-m-ygovde-lh); font-weight: var(--text-m-ygovde-weight); }
.t-m-btn   { font-size: var(--text-buton-mobil-size); line-height: var(--text-buton-mobil-lh); font-weight: var(--text-buton-mobil-weight); }

/* Renk yardimcilari */
.c-navy    { color: var(--color-navy); }
.c-white   { color: var(--color-white); }
.c-sky     { color: var(--color-sky); }
.c-blue    { color: var(--color-blue); }
.c-muted   { color: var(--color-text-muted); }

/* ------------------------------------------------------------
   Form durumları — Figma'da ÇİZİLMEDİ, site token'larıyla türetildi.
   Hata rengi #C62828: hem beyaz (5.9:1) hem lacivert (4.6:1) zeminde
   WCAG AA geçiyor; formlar iki zeminde de kullanılıyor.
   ------------------------------------------------------------ */
.form-error {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #FF8A8A;                 /* lacivert zemin (Kariyer) */
}
.karfield .form-error,
.karform__consents .form-error { color: #FF8A8A; }
.tekfield .form-error,
.tekcard .form-error { color: #C62828; }   /* beyaz kart zemini (Teklif) */
.form-error[hidden] { display: none; }

.is-invalid input,
.is-invalid select,
.is-invalid textarea {
  border-color: #C62828 !important;
  box-shadow: inset 0 0 0 1px #C62828;
}
.karfield.is-invalid input,
.karfield.is-invalid select,
.karfield.is-invalid textarea { border-color: #FF8A8A !important; box-shadow: inset 0 0 0 1px #FF8A8A; }

.form-status {
  margin: 16px 0 0;
  padding: 14px 18px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
  border-left: 4px solid currentColor;
}
.form-status--ok { color: #1B5E20; background: #E8F5E9; }
.form-status--err { color: #B71C1C; background: #FFEBEE; }
.karform__fields .form-status--ok { color: #C8F5CE; background: rgba(27, 94, 32, .35); }
.karform__fields .form-status--err { color: #FFC9C9; background: rgba(183, 28, 28, .35); }
.form-status[hidden] { display: none; }

button[type="submit"][disabled] { opacity: .6; cursor: progress; }

/* ------------------------------------------------------------
   Yazdırma — Figma'da tasarlanmadı. Amaç: teknik sayfaların
   (ürün, kapasite, iletişim) kağıda okunur çıkması.
   ------------------------------------------------------------ */
@media print {
  @page { margin: 16mm; }

  html, body { background: #fff !important; color: #000 !important; }

  /* Gezinme, dekor ve etkileşim ögeleri kağıda basılmaz */
  .header, .footer, .skip-link, .header__burger, .drawer, .megamenu,
  .hero__sub, .blogtabs, .projfilter, .tabbar, .prodmenu, .stepper,
  .fabvideo, .karhero__actions, .e404__actions,
  .form-status, button, .projview, .sdnav { display: none !important; }

  /* Arka plan görselleri yerine düz zemin */
  .bg-media, .projhero .bg-media, .fabhero .bg-media,
  .karform__deco, .tekdeco, .about__decor, .footer__decor { display: none !important; }
  /* Kahraman bölümleri kağıtta 400-1000px boş kutu bırakıyordu; yüksekliği
     içeriğe indiriyoruz ve üstlerindeki negatif marjı sıfırlıyoruz. */
  [class*="hero"] {
    height: auto !important; min-height: 0 !important; overflow: visible !important;
    padding-top: 0 !important; padding-bottom: 16px !important;
  }
  [class*="hero"] [class*="__inner"],
  [class*="hero"] [class*="__title"],
  [class*="hero"] [class*="__sub"] { padding-top: 0 !important; }
  .projfilter, .pdinfo, .bdpanel, .tekstack { margin-top: 0 !important; }

  [class*="hero"], [class*="__panel"], .machine__specs, .tekcard, .ilecard,
  .pdinfo, .bdpanel, .fabcard, .karappr__panel {
    background: #fff !important; color: #000 !important; box-shadow: none !important;
  }
  .tekcard, .ilecard, .fabcard, .machine__specs { border: 1px solid #999 !important; }
  [class*="hero"] *, .machine__specs *, .tekcard *, .ilecard *,
  .pdinfo *, .bdpanel *, .fabcard *, .karappr__panel * { color: #000 !important; }

  main { padding-top: 0 !important; }
  section, article, figure, .tekcard, .ilecard, .fabcard { break-inside: avoid; }
  h1, h2, h3 { break-after: avoid; }

  img { max-width: 100% !important; height: auto !important; }

  /* Bağlantı adresleri metne eklenir — kağıtta tıklanamaz */
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }
  a[href^="#"]::after, a[href^="mailto"]::after, a[href^="tel"]::after { content: ""; }
}
