:root {
  --navy-900: #08182f;
  --navy-800: #0a1f3d;
  --navy-700: #12335c;
  --navy-600: #1c4779;
  /* Iskandinav mese referansindan ornekelenen ahsap ailesi (hsl 30deg). */
  --wood-600: #8e7052;
  --wood-500: #ad8e6f;
  --wood-400: #c0a891;
  --wood-300: #d4c2af;
  --wood-100: #ebe0d6;
  --cream: #f2ebe3;
  /* ALTIMACH logosundan ornekelenen lacivert. */
  --logo-navy: #031a43;
  --white: #ffffff;
  --ink: #16202f;
  --muted: #5d6b7d;
  --line: #ded2c4;
  --shadow-sm: 0 1px 2px rgba(8, 24, 47, .06), 0 4px 12px rgba(8, 24, 47, .05);
  --shadow-md: 0 12px 32px rgba(8, 24, 47, .1);
  --shadow-lg: 0 24px 60px rgba(8, 24, 47, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.shell {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-800);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.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;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--wood-600) 0%, var(--wood-400) 38%, rgba(173, 142, 111, 0) 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 46px; width: auto; object-fit: contain; }

.header-actions { display: flex; align-items: center; gap: 1.75rem; }

.site-nav { display: flex; align-items: center; gap: 2rem; }

.site-nav a {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  color: var(--navy-800);
  padding: .35rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--wood-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }

/* ---------- Language switch ---------- */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  padding: .2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
}

.lang-switch a {
  padding: .32rem .62rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1;
  text-decoration: none;
  color: var(--muted);
  transition: background .3s var(--ease), color .3s var(--ease);
}

.lang-switch a:hover { color: var(--logo-navy); }

.lang-switch a[aria-current="true"] {
  background: var(--logo-navy);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-800);
  transition: transform .3s var(--ease), opacity .2s linear;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ----------
   Bolumler arasinda sert renk siciramasi olmamasi icin her lacivert blok
   kendi icinde bir sonraki bolumun rengine dogru soner. */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

/* Kategoriler + temsilcilikler masaustunde tek ekrana sigsin diye olculer
   dvh'e bagli; ekran kisaldikca gorsel ve kartlar orantili kuculur. */
.categories {
  padding: clamp(1.5rem, 3.2dvh, 2.75rem) 0 clamp(1.5rem, 4.5dvh, 3.25rem);
  background:
    radial-gradient(80% 50% at 50% 4%, rgba(173, 142, 111, .22) 0%, transparent 65%),
    linear-gradient(180deg,
      var(--navy-900) 0%,
      var(--navy-800) 46%,
      var(--navy-700) 78%,
      var(--wood-500) 100%);
}

/* Baslik ve tum logolar duz krem zeminde otursun: izgaranin altinda da
   krem birakip lacivere donusu ondan sonra baslatiyoruz. */
.partners {
  background: linear-gradient(180deg, var(--wood-500) 0%, var(--wood-500) 86%, var(--navy-900) 100%);
  padding: clamp(.75rem, 1.5dvh, 1.5rem) 0 clamp(3rem, 11dvh, 7rem);
}

.partners .section-head h2 { color: #fff; }
.partners .section-head h2::after { background: var(--logo-navy); }

.partners .section-head { margin-bottom: clamp(.75rem, 1.6dvh, 1.35rem); }

/* Lacivert alan dogrudan "Konumumuz" basligiyla acilsin; ust bosluk minimum. */
.map-section {
  background: var(--navy-900);
  color: #fff;
  padding: clamp(1.5rem, 3dvh, 2.5rem) 0 clamp(1.5rem, 3dvh, 2.5rem);
}

.contact {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  padding: clamp(1.5rem, 3dvh, 2.5rem) 0 clamp(2.25rem, 4.5dvh, 3.5rem);
}

.map-section .section-head,
.contact .section-head { margin-bottom: clamp(.9rem, 2dvh, 1.5rem); }

.map-section .section-head h2,
.contact .section-head h2 { color: #fff; }

.map-section .section-head p,
.contact .section-head p { color: rgba(255, 255, 255, .68); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

.section-head h2 {
  margin: 0 0 .6rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -.015em;
  font-weight: 800;
  color: var(--navy-800);
}

.section-head h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: .9rem;
  background: var(--wood-500);
  border-radius: 2px;
}

.section-head p { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* ---------- Category cards ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s linear;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--wood-500);
}

.category-card[aria-pressed="true"] {
  border-color: var(--wood-500);
  box-shadow: 0 0 0 2px var(--wood-500), var(--shadow-md);
}

.category-media {
  position: relative;
  display: block;
  height: clamp(140px, 24dvh, 240px);
  overflow: hidden;
  background: var(--navy-800);
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(.78) brightness(.94);
  transition: transform 1s var(--ease), filter .7s var(--ease);
}

/* The veil slides away like a turning page, revealing the photo in full colour. */
.category-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 24, 47, .62), rgba(18, 51, 92, .34));
  transform: translateX(0);
  transition: transform .75s var(--ease);
}

.category-card:hover .category-veil,
.category-card:focus-visible .category-veil,
.category-card[aria-pressed="true"] .category-veil {
  transform: translateX(-101%);
}

.category-card:hover .category-media img,
.category-card:focus-visible .category-media img,
.category-card[aria-pressed="true"] .category-media img {
  transform: scale(1.08);
  filter: saturate(1.05) brightness(1);
}

.category-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.3rem 1rem;
  background: var(--wood-500);
}

.category-title {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--logo-navy);
  transition: color .5s var(--ease);
}

.category-card:hover .category-title,
.category-card:focus-visible .category-title,
.category-card[aria-pressed="true"] .category-title { color: #fff; }

.category-body::after {
  content: "";
  width: 46px;
  height: 4px;
  border-radius: 2px;
  background: var(--cream);
  transition: width .45s var(--ease);
}

.category-card:hover .category-body::after,
.category-card[aria-pressed="true"] .category-body::after { width: 72px; }

/* ---------- Partner grid ---------- */

/* Izgara yerine flexbox: CSS Grid eksik kalan son satiri ortalayamiyor,
   ogeler her zaman soldan diziliyor. Flexbox'ta justify-content bunu
   cozuyor, boylece panelden temsilcilik eklendikce son satir kendini
   yeni sayiya gore yeniden ortaliyor. Kolon sayisi tek yerden yonetiliyor. */
.partner-grid {
  --cols: 7;
  --grid-gap: .8rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--grid-gap);
}

/* flex-basis sabit, buyume kapali: aksi halde son satirdaki az sayida kart
   genisleyip ust satirdakilerden kalin gorunurdu. */
.partner-item {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--grid-gap)) / var(--cols));
  transition: filter .55s var(--ease), opacity .55s var(--ease), transform .55s var(--ease);
}

.partner-item.is-dimmed {
  filter: grayscale(1);
  opacity: .38;
  transform: scale(.97);
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  height: 100%;
  min-height: clamp(88px, 12.5dvh, 106px);
  padding: .8rem .7rem;
  border: 1px solid var(--wood-300);
  border-radius: 12px;
  background: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s linear;
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: var(--wood-600);
  box-shadow: var(--shadow-md);
}

/* Logolar tools/build-partner-logos.mjs tarafindan ayni tuvale ortalandigi
   icin hepsini tam genislikte verebiliyoruz; optik denge dosyalarin icinde. */
.partner-card img {
  width: 100%;
  height: auto;
  max-height: clamp(52px, 9dvh, 70px);
  object-fit: contain;
}

/* Logosu henuz gelmemis firmalar icin: satir yuksekligini bozmamasi adina
   logo kutusuyla ayni dikey alani kaplar. */
.partner-fallback {
  display: flex;
  align-items: center;
  min-height: clamp(52px, 9dvh, 70px);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .01em;
  color: var(--navy-700);
}

.empty-state {
  padding: 2.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  background: var(--white);
}

/* ---------- Map ---------- */

.map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 1;
  background: rgba(255, 255, 255, .05);
}

.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  height: 100%;
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, .62);
  background:
    repeating-linear-gradient(45deg, rgba(173, 142, 111, .09) 0 14px, transparent 14px 28px),
    rgba(255, 255, 255, .03);
}
.map-placeholder strong { color: #fff; font-size: 1.05rem; font-weight: 700; }

/* ---------- Contact ---------- */

/* E-posta tek kelime kadar kisa, adres ise bir cumle. Esit kolonlarda adres
   bosa bolunup karti sisiriyordu; flex ile adrese daha fazla pay veriyoruz ki
   tek satirda kalsin. Telefon karti sonradan eklenirse kendi payini aliyor. */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.25rem;
}

.contact-card { flex: 1 1 220px; }
.contact-card--wide { flex: 1.9 1 320px; }

.contact .section-head h2 { color: #fff; }
.contact .section-head p { color: rgba(255, 255, 255, .7); }

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .38rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-left: 3px solid var(--wood-400);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(6px);
}

.contact-label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wood-300);
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  word-break: break-word;
}
a.contact-value:hover { color: var(--wood-300); }
.contact-address { font-weight: 500; color: rgba(255, 255, 255, .78); font-size: .98rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .72);
  padding: 1.75rem 0;
  font-size: .9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */

/* Logo duvarinin kolon sayisi: ekran daraldikca kademeli azaliyor. Kart
   genisligi her kademede ~160-190px araliginda kaliyor, son satir da her
   kademede kendini ortaliyor. */
@media (max-width: 1080px) { .partner-grid { --cols: 6; } }
@media (max-width: 920px)  { .partner-grid { --cols: 5; } }
@media (max-width: 780px)  { .partner-grid { --cols: 4; } }
@media (max-width: 620px)  { .partner-grid { --cols: 3; } }
@media (max-width: 460px)  { .partner-grid { --cols: 2; } }

@media (max-width: 960px) {
  .category-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(1200px, 100% - 2rem); }
  html { scroll-padding-top: 76px; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 1rem 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }

  .header-inner { position: relative; min-height: 68px; }
  .header-actions { gap: .75rem; }
  .brand-logo { height: 38px; }

  .category-grid { grid-template-columns: 1fr; }
  .partner-card { min-height: 96px; padding: .85rem .75rem; }
  .partner-card img, .partner-fallback { max-height: 76px; min-height: 0; }
  .map-frame { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
