/*
  BK Kurumsal Web Sitesi — Temel Stiller (Reset + Tipografi + Yardımcılar)
*/

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

* {
  margin: 0;
}

/*
  Bazı bileşenler (kart, boş durum vb.) kendi display değerini
  (flex/grid) tanımladığından, JS ile eklenen "hidden" özelliğinin
  her zaman kazanmasını garantilemek için burada !important kullanılır.
*/
[hidden] {
  display: none !important;
}

/* Sabit (sticky) header, bir bağlantı (#id) ile gelindiğinde hedefin
   üstünü kapatmasın diye tüm çapa noktalarına üst boşluk bırakılır. */
[id] {
  scroll-margin-top: 100px;
}

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

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img,
video {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-heading);
  font-weight: var(--fw-semibold);
  color: var(--color-primary-strong);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

p {
  color: var(--color-text-muted);
}

p + p {
  margin-top: var(--space-4);
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- Erişilebilir Odak (Focus) Durumu ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Karanlık zemin üzerinde odak halkasını görünür tutmak için */
.dark-surface a:focus-visible,
.dark-surface button:focus-visible {
  outline-color: var(--color-orange-400);
}

/* ---------- Skip Link (Klavye erişilebilirliği) ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 1000;
  background: var(--color-primary-strong);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-semibold);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ---------- Kapsayıcı ve Bölüm Düzeni ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-11);
}

.section--tight {
  padding-block: var(--space-9);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section--dark p {
  color: var(--color-text-on-dark-muted);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

/* ---------- Bölüm Başlığı Yardımcıları ---------- */
.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-8);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.text-accent {
  color: var(--color-orange-600);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-xsmall);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-orange-600);
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--color-orange-500);
}

.section--dark .eyebrow {
  color: var(--color-orange-400);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.section--dark .lead {
  color: var(--color-text-on-dark-muted);
}

/* ---------- Yardımcı Sınıflar ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.placeholder-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xsmall);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-orange-700);
  background: var(--color-orange-100);
  border: var(--border-width) dashed var(--color-orange-500);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
}

/* Görsel/foto/video gelecek boşlukları için yer tutucu kutu */
.media-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: linear-gradient(180deg, var(--color-ink-700), var(--color-ink-900));
  color: var(--color-text-on-dark-muted);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  padding: var(--space-5);
}

.media-placeholder__label {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-on-dark);
  opacity: 0.85;
}

.media-placeholder--light {
  background: var(--color-gray-100);
  color: var(--color-text-muted);
}

.media-placeholder--light .media-placeholder__label {
  color: var(--color-text-muted);
}

/* Kaydırma ile beliren içerik (JS ile .is-visible eklenir) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Sayfa Üst Banner (İç sayfalar) ---------- */
.page-header {
  background: var(--color-off-white);
  color: var(--color-text);
  border-bottom: var(--border-width) solid var(--color-border);
  padding-block: var(--space-9) var(--space-8);
}

.page-header__eyebrow {
  color: var(--color-orange-600);
}

/* Koyu lacivert varyant: iç sayfa hero'su (ör. Kurumsal) için */
.page-header--dark {
  background-color: var(--color-navy-stat);
  color: var(--color-white);
  border-bottom: none;
  border-top: 3px solid var(--color-orange-500);
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-header--dark h1 {
  color: var(--color-white);
}

.page-header--dark .page-header__eyebrow {
  color: var(--color-orange-400);
}

.page-header--dark .lead {
  color: var(--color-text-on-dark-muted);
}

.page-header--dark .breadcrumb {
  color: var(--color-text-on-dark-muted);
}

.page-header--dark .breadcrumb a {
  color: var(--color-white);
}

.page-header--dark .breadcrumb a:hover,
.page-header--dark .breadcrumb a:focus-visible {
  color: var(--color-orange-400);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--color-orange-600);
}

.breadcrumb__sep {
  opacity: 0.5;
}

/* ---------- Uzun Metin İçerikleri (KVKK, Gizlilik, Çerez vb.) ---------- */
.prose {
  max-width: 42rem;
}

.prose h2 {
  font-size: 1.375rem;
  margin-top: var(--space-9);
  margin-bottom: var(--space-3);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.125rem;
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.prose p {
  margin-bottom: var(--space-4);
}

.prose ul,
.prose ol {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose a {
  color: var(--color-ink-700);
  text-decoration: underline;
  text-decoration-color: var(--color-orange-500);
}

/* ---------- İletişim Bilgi Satırları ---------- */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-info-item {
  display: flex;
  gap: var(--space-4);
}

.contact-info-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-off-white);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-ink-700);
}

.contact-info-item__icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-item h3 {
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

.contact-info-item p {
  font-size: var(--fs-small);
  margin: 0;
}

.working-hours {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--fs-small);
}

.working-hours__row {
  display: flex;
  justify-content: space-between;
  padding-block: var(--space-2);
  border-bottom: var(--border-width) solid var(--color-border);
  color: var(--color-text-muted);
}

.working-hours__row span:last-child {
  color: var(--color-text);
  font-weight: var(--fw-medium);
}

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
