/*
 * berkzamakdokum.com/de temel stilleri: öğe sıfırlaması, ızgara ve form alanı.
 * Kütüphane değildir; sitenin önceden yüklediği Bootstrap 5.3.3'ün kullanılan kısmının ölçülmüş karşılığıdır.
 * Değerler düz yazılır, CSS değişkeni yoktur. Yazı tipi ve tema dosyalarından ÖNCE yüklenir; tema kuralları
 * (site.css) bunları ezer.
 */

/* ---------- 1. Öğe sıfırlaması ---------- */

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

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  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);
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

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

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.5rem;
  }
}

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;
}

/* Bağlantı rengi: üzerine gelince yalnız sınıfsız bağlantıda değişir; :where seçicinin ağırlığını "a" ile eşit tutar,
   tema sınıfının verdiği renk üzerine gelince ezilmez (eski davranış: yalnız değişken değişiyordu) */
a {
  color: rgb(13, 110, 253);
  text-decoration: underline;
}

a:where(:hover) {
  color: rgb(10, 88, 202);
}

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;
}

[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;
}

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-inner-spin-button {
  height: auto;
}

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

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

::-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 12 px (sütun iç boşluğu, .row eksi kenarı); .container en büyük genişlikleri 540/720/960/1140/1320 */
.container,
.container-wide {
  width: 100%;
  padding-right: 12px;
  padding-left: 12px;
  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: -12px;
  margin-left: -12px;
}

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

/*
 * Sütunlar bileşen adıyla verilir (Bootstrap sütun adı kullanılmaz); sütun .row'un doğrudan çocuğudur.
 * Tam genişlik sütun ayrı sınıf istemez (.row > * zaten %100). Yeni bölüm yeni sütun adını buraya ekler.
 */

/* Her genişlikte yarım, 768 px'den itibaren çeyrek: ana sayfa süreç adımları */
.step-col {
  flex: 0 0 auto;
  width: 50%;
}

@media (min-width: 768px) {
  /* 1/6: hizmet detayında sol menü ve sağ düğmeler */
  .service-nav-col,
  .service-buttons-col {
    flex: 0 0 auto;
    width: 16.66666667%;
  }

  /* 1/4 */
  .footer-col,
  .step-col,
  .gallery-col,
  .page-aside {
    flex: 0 0 auto;
    width: 25%;
  }

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

  /* 1/2 */
  .footer-sign-col,
  .why-col,
  .offer-col,
  .about-col,
  .contact-col {
    flex: 0 0 auto;
    width: 50%;
  }

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

  /* 3/4: blog yazısı */
  .page-main {
    flex: 0 0 auto;
    width: 75%;
  }

  /* 5/6: hizmet detayında ana alan ve metin */
  .service-main-col,
  .service-text-col {
    flex: 0 0 auto;
    width: 83.33333333%;
  }
}

@media (min-width: 992px) {
  /* 1/4: ürün kategorisi görselleri */
  .product-col {
    flex: 0 0 auto;
    width: 25%;
  }

  /* 1/3: 404 formu alanları */
  .error-form-col {
    flex: 0 0 auto;
    width: 33.33333333%;
  }
}

/* ---------- 3. Görsel ve form alanı ---------- */

/* Görsel kutusuna sığar, oranı korunur */
.img-scale {
  max-width: 100%;
  height: auto;
}

.form-field {
  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;
}

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

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

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

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

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