@import url('fonts/inter/inter.css');

/* ============================================================
   1. TOKEN'LAR
   ============================================================ */
:root {
  --ink: #101828;
  --body: #475467;
  --muted: #667085;
  --line: #EAECF0;
  --surface: #FFFFFF;
  --surface-alt: #F7F9FC;
  --brand: #3F6FA8;
  --brand-dark: #2C527E;
  --brand-tint: #E7EFFA;
  --footer-bg: #0F1B2D;

  --radius-sm: 8px;
  --radius-md: 12px;

  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-hover: 0 4px 12px rgba(16, 24, 40, .10);

  --font: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --section-y: 96px;
  --container-max: 1180px;
}

/* ============================================================
   2. TEMEL
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 16px; }

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.35; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 16px; padding-left: 20px; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   3. YERLEŞİM
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: var(--section-y) 0; }
.section-alt { background: var(--surface-alt); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Okunur satır uzunluğu — uzun metin blokları için */
.prose { max-width: 70ch; }
.prose p { color: var(--body); }

.items-center { align-items: center; }
.rounded { border-radius: var(--radius-md); }

.eyebrow {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.section-head { margin-bottom: 40px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--muted); max-width: 60ch; }

/* ============================================================
   4. İKONLAR
   ============================================================ */
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.125em;
}

/* ============================================================
   5. BUTONLAR VE BAĞLANTILAR
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-secondary {
  background: var(--surface);
  border-color: #D0D5DD;
  color: var(--ink);
}
.btn-secondary:hover { background: var(--surface-alt); color: var(--ink); }

.btn-on-dark { background: #fff; color: var(--ink); }
.btn-on-dark:hover { background: #E9EDF3; color: var(--ink); }

.btn-on-dark-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.btn-on-dark-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--brand);
}
.link-arrow .icon { transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ============================================================
   6. ÇİPLER
   ============================================================ */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.chip {
  display: inline-block;
  padding: 6px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--body);
}

/* ============================================================
   7. KARTLAR
   ============================================================ */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: #D6E0EE;
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-alt);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.card:hover .card-media img { transform: scale(1.03); }

/* Tıklanamayan bilgi kartları: hover'da kalkma/yakınlaşma "tıklanabilir" sinyali
   verir, oysa gidilecek bir yer yok. Bu varyant o affordance'ı kapatır. */
.card-static,
.card-static:hover {
  box-shadow: var(--shadow);
  transform: none;
  border-color: var(--line);
}
.card-static:hover .card-media img { transform: none; }

.card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  flex: 1;
}

.card-code {
  display: inline-block;
  padding: 3px 10px;
  background: var(--brand-tint);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--brand-dark);
}

/* .card-title h2 veya h3 olarak da kullanılır; başlık marjını sıfırla —
   .card-body zaten gap ile boşluk veriyor, marj üstüne binerdi. */
.card-title,
.card-body h2,
.card-body h3 { margin: 0; }

.card-title {
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--ink);
  flex: 1;
}

.card-body .link-arrow { margin-top: 4px; }

/* ============================================================
   8. DUYARLI DAVRANIŞ — atomlar
   ============================================================ */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --section-y: 56px; }
  body { font-size: 1rem; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   9. HAREKET TERCİHİ
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   10. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .18s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 8px rgba(16, 24, 40, .08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 56px; width: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  flex: 1;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  position: relative;
  display: block;
  padding: 4px 0;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.nav-list a:hover { color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-list a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.header-phone:hover { color: var(--brand); }
.header-phone .icon { color: var(--brand); }

@media (max-width: 1080px) {
  .header-phone span { display: none; }
  .site-nav { gap: 20px; }
  .nav-list { gap: 18px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(16, 24, 40, .08);
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav-list a[aria-current="page"]::after { display: none; }
  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 20px;
  }
  .header-phone { justify-content: center; }
  .header-phone span { display: inline; }
}

/* ============================================================
   11. HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  height: min(72vh, 620px);
  overflow: hidden;
  background: var(--footer-bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg,
    rgba(16, 27, 45, .88) 0%,
    rgba(16, 27, 45, .55) 45%,
    rgba(16, 27, 45, .15) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.hero-content .eyebrow { color: #8FB4DE; }
.hero-content h1 { color: #fff; margin-bottom: 16px; }
.hero-content p {
  color: rgba(255, 255, 255, .85);
  font-size: 1.125rem;
  margin-bottom: 28px;
  max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-dots-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}
.hero-dots {
  display: flex;
  gap: 8px;
  padding-bottom: 36px;
}
.hero-dot {
  width: 24px;
  height: 3px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: background-color .2s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, .7); }
.hero-dot.is-active { background: var(--brand); }

@media (max-width: 768px) {
  .hero { height: min(60vh, 420px); }
  .hero-content p { font-size: 1rem; margin-bottom: 20px; }
  .hero-dots { padding-bottom: 24px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* ============================================================
   12. SAYFA BAŞLIĞI (iç sayfalar)
   ============================================================ */
.page-head {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  padding: 56px 0;
}
.page-head h1 { margin: 0; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: .8125rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: #C4CBD6; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

@media (max-width: 768px) {
  .page-head { padding: 40px 0; }
}

/* ============================================================
   13. CTA ŞERİDİ
   ============================================================ */
.cta-band {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-inner h2 { margin-bottom: 6px; font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.cta-inner p { color: var(--muted); margin: 0; }
.cta-inner .btn { flex: none; }

@media (max-width: 768px) {
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ============================================================
   14. FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: #C9D0DC;
  padding: 64px 0 0;
  font-size: .9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.footer-logo {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p { color: #9AA6B8; max-width: 34ch; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-sm);
  color: #C9D0DC;
  font-size: 1.125rem;
  transition: background-color .15s ease, color .15s ease;
}
.footer-social a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.footer-col h3 {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #C9D0DC; }
.footer-col a:hover { color: #fff; }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact .icon { margin-top: .45em; color: var(--brand); font-size: 1rem; }

.footer-bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
  font-size: .875rem;
  color: #8B95A7;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-top: 48px; }
}

/* ============================================================
   15. YATAY KART (kataloglar)
   ============================================================ */
.card-horizontal {
  flex-direction: row;
  align-items: stretch;
  max-width: 620px;
}
.card-horizontal .card-media {
  aspect-ratio: auto;
  flex: none;
  width: 160px;
}
.card-horizontal .card-body { justify-content: center; }
.card-meta { color: var(--muted); font-size: .875rem; }

@media (max-width: 560px) {
  .card-horizontal { flex-direction: column; }
  .card-horizontal .card-media { width: 100%; aspect-ratio: 4 / 3; }
}

/* ============================================================
   16. BELGE LİSTESİ
   ============================================================ */
.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.doc-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.doc-item:last-child { border-bottom: none; }
.doc-item:hover { background: var(--surface-alt); }

.doc-thumb {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  object-fit: cover;
}
.doc-title {
  flex: 1;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}
.doc-item .link-arrow { flex: none; }

@media (max-width: 640px) {
  .doc-item { flex-wrap: wrap; gap: 14px; }
  .doc-title { flex: 1 1 100%; order: 2; }
  .doc-item .link-arrow { order: 3; }
}

/* ============================================================
   17. İLETİŞİM
   ============================================================ */
.contact-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}
.contact-card .icon {
  display: block;
  font-size: 1.5rem;
  color: var(--brand);
  margin-bottom: 14px;
}
.contact-card h2 {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-card p { color: var(--ink); font-weight: 500; margin: 0; }
.contact-card a { color: var(--ink); font-weight: 500; }
.contact-card a:hover { color: var(--brand); }

.contact-map {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  .contact-map { height: 320px; }
}

/* ============================================================
   18. ATLAMA BAĞLANTISI
   ============================================================ */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }
