/* Petran Bilgi Teknolojileri — tek dosya CSS */

/* ---------- Yazı tipi: Inter (kendi sunucumuzda, değişken, wght 400-700) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext-wght.woff2") format("woff2");
  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: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-wght.woff2") format("woff2");
  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;
}

/* ---------- Tasarım token'ları (yalnızca açık tema) ---------- */
:root {
  --navy: #003366;
  --navy-dark: #002244;
  --red: #990000;
  --red-dark: #7A0000;
  --ink: #16202C;
  --muted: #5B6B7B;
  --line: #E3E8EE;
  --bg-soft: #F5F7FA;
  --white: #FFFFFF;

  --header-h: 72px;
  --section-y: clamp(72px, 10vw, 128px);
  --max: 1200px;
  --gutter: 24px;
  --strips-h: 190px;             /* hero altındaki iki şeridin yaklaşık yüksekliği (ekran görüntüsünden ölçülüp ayarlandı) */

  --hero-fallback-d: #1D3A5F;    /* fotoğraf gelene kadar (masaüstü, katmanlı ortalama renk) */
  --hero-fallback-m: #213E63;    /* fotoğraf gelene kadar (mobil) */
  --hero-overlay-m: .82;         /* mobil düz katman opaklığı */

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

@media (max-width: 900px) { :root { --header-h: 64px; } }
@media (max-width: 480px) { :root { --gutter: 20px; } }

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* Kaydırma payı yalnızca bölümlerdeki scroll-margin-top ile verilir (ikisi birden yazılırsa pay iki katına çıkar) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.0625rem, 1.03rem + .15vw, 1.125rem);   /* 17-18 px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--navy); }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Skip-link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; outline-color: var(--red); }

main { scroll-margin-top: var(--header-h); }   /* skip-link sonrası içerik yapışkan başlığın altında kalmasın */
main:focus { outline: none; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(22, 32, 44, .09); }

.header-inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 132px; height: 44px; }
@media (max-width: 900px) {
  .brand img { width: auto; height: 40px; }
}

.nav-list { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 30px); }
.site-nav a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-size: clamp(.875rem, .8rem + .25vw, .9375rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.site-nav a:not(.btn):hover { color: var(--red); }
.site-nav a:not(.btn).is-active { color: var(--navy); }
.site-nav a:not(.btn).is-active::after { transform: scaleX(1); }
.btn-login {
  min-height: 42px;
  padding: 8px 18px;
  font-size: .9375rem;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-login:hover { background: var(--navy); color: var(--white); }
.btn-login { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1040px) {
  .nav-list { gap: 14px; }
  .btn-login { padding: 8px 14px; font-size: .875rem; }
}
@media (min-width: 901px) and (max-width: 960px) {
  .nav-list { gap: 11px; }
  .header-inner { gap: 14px; }
  .site-nav a:not(.btn) { font-size: .8125rem; }
  .btn-login { padding: 8px 12px; font-size: .8125rem; }
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex: none;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, background-color .2s, top .2s;
}
.nav-toggle-bar { top: 23px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 8px var(--gutter) 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(22, 32, 44, .1);
  }
  .nav-open .site-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) {
    display: block;
    padding: 15px 4px;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav a:not(.btn).is-active { box-shadow: inset 3px 0 0 var(--navy); padding-left: 16px; }
  .nav-login { padding-top: 16px; }
  .btn-login { width: 100%; }
}

/* ---------- Hero ---------- */
.home { display: block; scroll-margin-top: var(--header-h); }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 560px;
  min-height: max(560px, calc(100vh - var(--header-h) - var(--strips-h)));
  min-height: max(560px, calc(100svh - var(--header-h) - var(--strips-h)));
  overflow: hidden;
  color: var(--white);
  background-color: var(--hero-fallback-d);
}
.hero-media { position: absolute; inset: 0; z-index: -2; display: block; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Lacivert katman: sol yazı tarafı koyu, sağ taraf açık */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 51, 102, .92) 0%, rgba(0, 51, 102, .75) 45%, rgba(0, 51, 102, .35) 100%);
}
@media (max-width: 768px) {
  .hero { background-color: var(--hero-fallback-m); }
  .hero::before { background: rgba(0, 51, 102, var(--hero-overlay-m)); }
}

.hero-inner { padding-block: clamp(48px, 8vw, 96px); }
/* Yazı bloğu gradyanın koyu (sol) tarafında kalsın: dar masaüstü/tablet genişliklerinde ekranın %60'ıyla sınırlı */
.hero-copy { max-width: min(640px, 60vw); }
@media (max-width: 768px) { .hero-copy { max-width: 640px; } }
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero-lead {
  margin-top: 20px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + .5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--white);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero :focus-visible { outline-color: var(--white); }

/* ---------- Çözüm ortağı şeridi ---------- */
.partner-strip {
  overflow: hidden;
  padding: 22px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.strip-track {
  display: flex;
  width: max-content;
  animation: strip-scroll 60s linear infinite;
}
.partner-strip:hover .strip-track { animation-play-state: paused; }
@keyframes strip-scroll { to { transform: translateX(-50%); } }

.strip-list { display: flex; flex: none; align-items: center; }
.strip-list li { flex: none; display: flex; align-items: center; margin-right: 56px; }
.strip-list img {
  height: 44px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .25s, opacity .25s;
}
.strip-list img.is-wide { max-width: 148px; }
.strip-list img:hover { filter: none; opacity: 1; }
/* Solgun çözüm ortağı logoları (gri tonlu + opacity .7 ile beyaz zemine kontrastı < 3:1 ölçülenler): referanslardaki .is-faint ile aynı kural, hover aynı */
.strip-list img.is-faint { filter: grayscale(1) brightness(.85); opacity: .95; }
.strip-list img.is-faint:hover { filter: none; opacity: 1; }
/* Opak beyaz zeminli logo (Microsoft): brightness() beyaz zemini gri kutuya çevirir, bu yüzden yalnızca opacity .95 (kontrast ölçümü: 4,35:1) */
.strip-list img.is-faint-opaque { filter: grayscale(1); opacity: .95; }
.strip-list img.is-faint-opaque:hover { filter: none; opacity: 1; }

@media (max-width: 480px) {
  .partner-strip { padding: 18px 0; }
  .strip-list li { margin-right: 40px; }
  .strip-list img { height: 36px; max-width: 108px; }
  .strip-list img.is-wide { max-width: 124px; }
}

@media (prefers-reduced-motion: reduce) {
  .partner-strip { -webkit-mask-image: none; mask-image: none; }
  .strip-track { display: block; animation: none; width: auto; }
  .strip-copy { display: none; }
  .strip-list { flex-wrap: wrap; justify-content: center; row-gap: 20px; padding-inline: var(--gutter); }
  .strip-list li { margin-inline: 24px; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 480px) {
  .strip-list { row-gap: 14px; }
  .strip-list li { margin-inline: 10px; }
}

/* ---------- Rakam bandı ---------- */
.stats { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.stats-list { display: flex; justify-content: center; }
.stat {
  flex: 0 1 auto;
  padding: 20px clamp(20px, 6vw, 72px);
  text-align: center;
  line-height: 1.25;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-size: 2rem; font-weight: 700; color: var(--navy); letter-spacing: -.02em; }
.stat-label { font-size: 1rem; font-weight: 600; color: var(--ink); }
.stat-since { display: block; margin-top: 2px; font-size: .875rem; color: var(--muted); }
/* JS gelmeden önce satır yer tutucu olarak ayrılır (gizli ama yer kaplar), yüklemede yerleşim kaymaz. JS kapalıysa <noscript> stili yeniden gizler. */
.stat-since[hidden] { display: block !important; visibility: hidden; }
@media (max-width: 480px) {
  .stat { padding: 16px 12px; }
  .stat-num { font-size: 1.75rem; }
  .stat-label { font-size: .9375rem; }
}

/* ---------- Bölümler ---------- */
.section {
  padding-block: var(--section-y);
  scroll-margin-top: var(--header-h);
  background: var(--white);
}
.section-soft { background: var(--bg-soft); }

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--navy);
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 16px;
  background: var(--red);
}
.section-title + * { margin-top: 48px; }

/* ---------- Hakkımızda ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
.about-text { max-width: none; }
.about-text p + p { margin-top: 1.1em; }
.about-tagline { font-weight: 600; color: var(--navy); }

.about-boxes { display: grid; gap: 20px; }
.box {
  padding: 24px 26px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.box h3 { margin-bottom: 10px; font-size: 1.25rem; line-height: 1.3; color: var(--navy); }
.box p + p { margin-top: .9em; }
.box p, .policy li { font-size: 1rem; }
.policy { margin-top: 14px; }
.policy summary {
  display: inline-block;
  padding: 6px 0;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy ul { margin: 12px 0 14px; padding-left: 1.2em; list-style: disc; }
.policy li { margin-top: .5em; padding-left: .2em; }
.policy li::marker { color: var(--red); }
.policy[open] > p { margin-top: 0; font-size: 1rem; }
/* Açılır başlık: açıkken "gizle", kapalıyken "göster" */
.policy[open] .s-show, .policy:not([open]) .s-hide { display: none; }

/* ≥ 900 px: solda metin, sağda Misyon + Vizyon; Kalite Politikası altta tam genişlik */
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
  }
  .box-wide { grid-column: 1 / -1; }
  /* Geniş ekranda sütunlar eşit: sol metin ile Misyon+Vizyon yüksekliği dengelenir */
  @media (min-width: 1200px) { .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
  .policy ul { columns: 2; column-gap: clamp(32px, 5vw, 64px); }
  .policy li { break-inside: avoid; }
}
/* Metin sola yaslı: iki yana yaslama kelime boşluklarını bozduğu için kullanılmıyor. */

/* ---------- Çözüm kartları ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  padding: 28px 26px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform .2s, box-shadow .2s;
}
.card .icon { display: block; width: 28px; height: 28px; margin-bottom: 18px; color: var(--navy); }
.card h3 { font-size: 1.25rem; line-height: 1.3; color: var(--navy); }
.card p { margin-top: 10px; font-size: 1rem; color: var(--ink); }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(22, 32, 44, .08); }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Logo karoları (Çözüm Ortakları, Referanslar) ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: background-color .25s, border-color .25s;
}
.tile img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
  transition: filter .25s, opacity .25s;
}
.tile:hover img { filter: none; opacity: 1; }
.tile img.is-wide { max-width: min(100%, 150px); }
/* Solgun logolar: gri tonlu + opacity .7 ile beyaz zemine kontrastı 3:1'in altında ölçülenler.
   Opacity .95 ve hafif koyulaştırma. contrast() denendi ama en koyu pikselleri orta griden açık olan logolarda işe yaramadı. Hover aynı. */
.tile img.is-faint { filter: grayscale(1) brightness(.85); opacity: .95; }
.tile:hover img.is-faint { filter: none; opacity: 1; }
.tile img.is-faint-opaque { filter: grayscale(1); opacity: .95; }   /* opak beyaz zeminli logo (Microsoft): brightness() yok, bkz. şerit kuralı */
.tile:hover img.is-faint-opaque { filter: none; opacity: 1; }
.tile-grid-refs .tile { min-height: 104px; }
.tile-grid-refs .tile img { max-height: 56px; }
/* Beyaz yazılı (şeffaf) logolar: normalde gri siluet, hover'da lacivert karoda tek renk beyaz siluet */
.tile img.is-white { filter: brightness(0); opacity: .7; }
.tile-invert:hover { background: var(--navy); border-color: var(--navy); }
.tile-invert:hover img.is-white { filter: brightness(0) invert(1); opacity: 1; }
@media (min-width: 700px) { .tile-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; } }
/* Çok dar ekran: ızgaralar tek sütuna düşmesin, 2 sütun sabit */
@media (max-width: 351px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- İletişim ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}
/* İki bilgi kartı aynı stil ve aynı yükseklik, içerik üstten başlar */
.info-card {
  padding: 28px 28px 30px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.contact-list { display: grid; gap: 22px; align-content: start; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }
.ci-icon { flex: none; width: 22px; height: 22px; margin-top: 4px; color: var(--red); }
.contact-label { display: block; font-size: .9375rem; font-weight: 600; color: var(--muted); }
.contact-value { display: block; font-size: 1.125rem; font-weight: 600; color: var(--ink); text-decoration: none; }
a.contact-value { color: var(--navy); }
a.contact-value:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.address-card .ci-icon { width: 28px; height: 28px; margin: 0 0 14px; }
.address-card h3 { font-size: 1.25rem; line-height: 1.3; color: var(--navy); }
.address-card address { margin: 10px 0 24px; font-style: normal; }
.nowrap { white-space: nowrap; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Alt bilgi (açık zemin) ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px clamp(24px, 6vw, 72px);
  align-items: center;
  padding-block: 40px 32px;
}
.footer-brand img { width: 132px; height: 44px; }
.footer-contact p { font-size: 1rem; }
.footer-contact p + p { margin-top: 4px; }
.footer-contact a { display: inline-block; font-weight: 600; text-decoration: none; }   /* tıklama alanı satır yüksekliği kadar (≥ 24 px) */
.footer-contact a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { grid-column: 1 / -1; padding-top: 20px; font-size: .9375rem; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card:hover { transform: none; transition: none; }
}

.page-end { height: 1px; }
