/*
  Berk Zamak Döküm — temel stil (Bootstrap 5.3.3 yerine).
  1) Öğe sıfırlaması: eski Bootstrap Reboot değerleri birebir (değişkenler çözülmüş). Panelden girilen içerik
     her HTML öğesini getirebilir; bu yüzden içerikte bugün geçmeyen öğelerin (hr, blockquote, code...) kuralları da durur.
  2) Izgara: .container / .row ve sütunlar.
  3) Bileşenler: form alanı, çekirdek sayfalama şablonunun adları (pagination, page-item, page-link).
  Bu dosya eski bootstrap.min.css'in yerinde yüklenir (cms.css'ten sonra, tema dosyalarından önce): tema kuralları
  bunları ezer. Ayrıntı: project-docs/onyuz-kutuphanesiz.md
*/

/* ===== 1) Öğe sıfırlaması ===== */

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

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

/* Yazı tipi ailesi ve satır yüksekliği site.css'te (body) */
body {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  color: #212529;
  background-color: #fff;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

hr {
  margin: 1rem 0;
  color: inherit;
  border: 0;
  border-top: 1px solid;
  opacity: 0.25;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
}

h1 {
  font-size: calc(1.375rem + 1.5vw);
}

h2 {
  font-size: calc(1.325rem + 0.9vw);
}

h3 {
  font-size: calc(1.3rem + 0.6vw);
}

h4 {
  font-size: calc(1.275rem + 0.3vw);
}

@media (min-width: 1200px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.5rem;
  }
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
  text-decoration-skip-ink: none;
}

address {
  margin-bottom: 1rem;
  font-style: normal;
  line-height: inherit;
}

ol,
ul {
  padding-left: 2rem;
}

dl,
ol,
ul {
  margin-top: 0;
  margin-bottom: 1rem;
}

ol ol,
ol ul,
ul ol,
ul ul {
  margin-bottom: 0;
}

dt {
  font-weight: 700;
}

dd {
  margin-bottom: 0.5rem;
  margin-left: 0;
}

blockquote {
  margin: 0 0 1rem;
}

b,
strong {
  font-weight: bolder;
}

small {
  font-size: 0.875em;
}

mark {
  padding: 0.1875em;
  color: #212529;
  background-color: #fff3cd;
}

sub,
sup {
  position: relative;
  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Üzerine gelince yalnız değişken değişir (Bootstrap gibi): rengini kendi veren bağlantı (.cta-link vb.) üzerine
   gelince maviye dönmez */
a {
  color: var(--link-color, #0d6efd);
  text-decoration: underline;
}

a:hover {
  --link-color: #0a58ca;
}

a:not([href]):not([class]),
a:not([href]):not([class]):hover {
  color: inherit;
  text-decoration: none;
}

code,
kbd,
pre,
samp {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 1em;
}

pre {
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  overflow: auto;
  font-size: 0.875em;
}

pre code {
  font-size: inherit;
  color: inherit;
  word-break: normal;
}

code {
  font-size: 0.875em;
  color: #d63384;
  word-wrap: break-word;
}

a > code {
  color: inherit;
}

kbd {
  padding: 0.1875rem 0.375rem;
  font-size: 0.875em;
  color: #fff;
  background-color: #212529;
  border-radius: 0.25rem;
}

kbd kbd {
  padding: 0;
  font-size: 1em;
}

figure {
  margin: 0 0 1rem;
}

img,
svg {
  vertical-align: middle;
}

table {
  caption-side: bottom;
  border-collapse: collapse;
}

caption {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: rgba(33, 37, 41, 0.75);
  text-align: left;
}

th {
  text-align: inherit;
  text-align: -webkit-match-parent;
}

tbody,
td,
tfoot,
th,
thead,
tr {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
}

label {
  display: inline-block;
}

button {
  border-radius: 0;
}

button:focus:not(:focus-visible) {
  outline: 0;
}

button,
input,
optgroup,
select,
textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button,
select {
  text-transform: none;
}

[role="button"] {
  cursor: pointer;
}

select {
  word-wrap: normal;
}

select:disabled {
  opacity: 1;
}

[list]:not([type="date"]):not([type="datetime-local"]):not([type="month"]):not([type="week"]):not([type="time"])::-webkit-calendar-picker-indicator {
  display: none !important;
}

[type="button"],
[type="reset"],
[type="submit"],
button {
  -webkit-appearance: button;
}

[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled),
button:not(:disabled) {
  cursor: pointer;
}

::-moz-focus-inner {
  padding: 0;
  border-style: none;
}

textarea {
  resize: vertical;
}

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: calc(1.275rem + 0.3vw);
  line-height: inherit;
}

@media (min-width: 1200px) {
  legend {
    font-size: 1.5rem;
  }
}

legend + * {
  clear: left;
}

::-webkit-datetime-edit-day-field,
::-webkit-datetime-edit-fields-wrapper,
::-webkit-datetime-edit-hour-field,
::-webkit-datetime-edit-minute,
::-webkit-datetime-edit-month-field,
::-webkit-datetime-edit-text,
::-webkit-datetime-edit-year-field {
  padding: 0;
}

::-webkit-inner-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-color-swatch-wrapper {
  padding: 0;
}

::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}

::file-selector-button {
  font: inherit;
  -webkit-appearance: button;
}

output {
  display: inline-block;
}

iframe {
  border: 0;
}

summary {
  display: list-item;
  cursor: pointer;
}

progress {
  vertical-align: baseline;
}

[hidden] {
  display: none !important;
}

/* ===== 2) Izgara ===== */
/* Kenar boşluğu (gutter) 1.5rem: kapsayıcı ve sütunda yarısı dolgu, satırda yarısı eksi kenar boşluğu */

.container {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-top: 0;
}

/*
  Sütunlar bileşen adıyla verilir (Bootstrap col-* adı kullanılmaz). Sütun .row'un doğrudan çocuğudur; .row > *
  her çocuğa %100 genişlik ve 0.75rem yatay dolgu verir, tam genişlik sütunun ayrıca sınıfa ihtiyacı yoktur.
  Yeni bölüm yeni sütun adını buraya ekler. Kırılımlar: md = 768px, lg = 992px.
*/

/* Telefonda da yarım: ana sayfa "neden biz" adımları, belgeler */
.why-step-col,
.document-col {
  flex: 0 0 auto;
  width: 50%;
}

@media (min-width: 768px) {
  /* 1/6 */
  .detail-sidebar-col,
  .detail-buttons-col {
    flex: 0 0 auto;
    width: 16.66666667%;
  }

  /* 1/4 */
  .why-step-col,
  .document-col,
  .sector-image-col,
  .footer-col {
    flex: 0 0 auto;
    width: 25%;
  }

  /* 1/3 */
  .service-col,
  .home-ref-text-col,
  .counter-col,
  .about-box-col,
  .blog-col {
    flex: 0 0 auto;
    width: 33.33333333%;
  }

  /* 1/2 */
  .why-image-col,
  .why-list-col,
  .upload-col,
  .quote-form-col,
  .about-image-col,
  .about-text-col,
  .contact-info-col,
  .contact-form-col,
  .sign-col {
    flex: 0 0 auto;
    width: 50%;
  }

  /* 2/3 */
  .home-ref-image-col {
    flex: 0 0 auto;
    width: 66.66666667%;
  }

  /* 5/6 */
  .detail-main-col,
  .detail-text-col {
    flex: 0 0 auto;
    width: 83.33333333%;
  }

  /* Blog yazısı: 10/12, ortalı */
  .blog-detail-col {
    flex: 0 0 auto;
    width: 83.33333333%;
    margin-left: 8.33333333%;
  }
}

@media (min-width: 992px) {
  /* 1/4 */
  .product-image-col {
    flex: 0 0 auto;
    width: 25%;
  }

  /* 1/3 */
  .form-col-third,
  .gallery-col,
  .product-aside-col,
  .category-card-col {
    flex: 0 0 auto;
    width: 33.33333333%;
  }

  /* 5/12 – 7/12: ana sayfa SSS */
  .faq-image-col {
    flex: 0 0 auto;
    width: 41.66666667%;
  }

  .faq-list-col {
    flex: 0 0 auto;
    width: 58.33333333%;
  }

  /* 2/3 */
  .product-main-col {
    flex: 0 0 auto;
    width: 66.66666667%;
  }

  /* Kariyer formu .row dışında: 8/12, ortalı */
  .career-col {
    flex: 0 0 auto;
    width: 66.66666667%;
    margin-left: 16.66666667%;
  }
}

/* İletişim sayfası haritası: kapsayıcısız tam genişlik */
.maps {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}

/* ===== 3) Bileşenler ===== */

/* Alt bilgi şeridindeki imza sağa yaslı */
.sign-credit {
  text-align: right;
}

/* Form alanı */
.field-input {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  appearance: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.field-input[type="file"] {
  overflow: hidden;
}

.field-input[type="file"]:not(:disabled):not([readonly]) {
  cursor: pointer;
}

.field-input:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.field-input::-webkit-date-and-time-value {
  min-width: 85px;
  height: 1.5em;
  margin: 0;
}

.field-input::-webkit-datetime-edit {
  display: block;
  padding: 0;
}

.field-input::placeholder {
  color: rgba(33, 37, 41, 0.75);
  opacity: 1;
}

.field-input:disabled {
  background-color: #e9ecef;
  opacity: 1;
}

.field-input::file-selector-button {
  padding: 0.375rem 0.75rem;
  margin: -0.375rem -0.75rem;
  margin-inline-end: 0.75rem;
  color: #212529;
  background-color: #f8f9fa;
  pointer-events: none;
  border-color: inherit;
  border-style: solid;
  border-width: 0;
  border-inline-end-width: 1px;
  border-radius: 0;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.field-input:hover:not(:disabled):not([readonly])::file-selector-button {
  background-color: #e9ecef;
}

textarea.field-input {
  min-height: calc(1.5em + 0.75rem + 2px);
}

@media (prefers-reduced-motion: reduce) {
  .field-input,
  .field-input::file-selector-button {
    transition: none;
  }
}

/* Sayfalama: çekirdek şablonunun (partials/pagination) adları */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
}

.pagination.justify-content-center {
  justify-content: center;
}

.page-link {
  position: relative;
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  color: #0d6efd;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #dee2e6;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.page-link:hover {
  z-index: 2;
  color: #0a58ca;
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

.page-link:focus {
  z-index: 3;
  color: #0a58ca;
  background-color: #e9ecef;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.active > .page-link {
  z-index: 3;
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.page-item:not(:first-child) .page-link {
  margin-left: -1px;
}

.page-item:first-child .page-link {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.page-item:last-child .page-link {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

@media (prefers-reduced-motion: reduce) {
  .page-link {
    transition: none;
  }
}
