/* ==========================================================================
   KOTAŞ Harita Mühendislik — kurumsal tema
   Marka kırmızısı logodan alındı: #FE0000
   Koyu türevler WCAG AA/AAA kontrast için hesaplandı.
   Harici font/istek YOK — tüm tipografi sistem yazı tiplerinden.
   ========================================================================== */

:root {
  /* marka */
  --brand:      #FE0000;  /* logo kırmızısı — vurgu, çizgi, ikon */
  --brand-700:  #C80000;  /* buton / link — beyaz metinle 6.08:1 */
  --brand-800:  #A80000;  /* büyük yüzey — beyaz metinle 7.88:1 */
  --brand-900:  #8A0404;  /* derin yüzey — 10.0:1 */
  --brand-950:  #660606;
  --brand-50:   #FFF4F4;
  --brand-100:  #FFE5E5;
  --brand-200:  #FFC9C9;

  /* nötr */
  --ink:        #14161A;
  --ink-2:      #3A3F47;
  --ink-3:      #656C77;
  --line:       #E3E6EA;
  --bg:         #FFFFFF;
  --bg-2:       #F7F8FA;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(20,22,26,.06), 0 1px 3px rgba(20,22,26,.08);
  --shadow-md: 0 4px 12px rgba(20,22,26,.08), 0 2px 4px rgba(20,22,26,.05);
  --shadow-lg: 0 12px 32px rgba(20,22,26,.12);

  --wrap: 1160px;
  --gap: clamp(1rem, 2.5vw, 2rem);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  /* Site yalnızca aydınlık temada çalışır — tarayıcı karanlık modda olsa bile
     arka plan beyaz tonlarında kalır. */
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, .97rem + .12vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-900); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; }
li + li { margin-top: .35em; }
strong { font-weight: 650; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand-800); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; color: #fff; }

/* ------------------------------------------------------------------ topbar */
.topbar {
  background: var(--brand-950);
  color: #FFD9D9;
  font-size: .875rem;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  align-items: center; justify-content: space-between; min-height: 42px;
}
.topbar a { color: #FFE9E9; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: .35rem 1.35rem; }
.topbar-contact span { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.topbar-contact svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.social { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; min-height: 32px; min-width: 32px;
  border-radius: 50%; text-decoration: none;
  transition: all .2s ease; flex: none;
}
.social svg { width: 16px; height: 16px; fill: currentColor; display: block; flex: none; }
.topbar .social a { background: rgba(255,255,255,.15); color: #fff; }
.topbar .social a:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }

/* ------------------------------------------------------------------ header */
.masthead {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.masthead::before {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-800) 55%, var(--brand-950) 100%);
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: inherit; }
.brand img { width: 46px; height: 46px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand-800); }
.brand-sub { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

.nav-toggle, .nav-toggle-label { display: none; }
.nav ul {
  display: flex; align-items: stretch; gap: .15rem;
  list-style: none; margin: 0; padding: 0;
}
/* global "li + li { margin-top }" kuralını yatay menüde sıfırla —
   aksi hâlde ilk madde diğerlerinden yukarıda kalıyor */
.nav li, .nav li + li { margin: 0; display: flex; }
.nav a {
  display: flex; align-items: center; padding: .6rem .85rem; border-radius: var(--radius);
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem;
  line-height: 1.25;
}
.nav a:hover { background: var(--brand-50); color: var(--brand-800); }
.nav a[aria-current="page"] { color: var(--brand-800); background: var(--brand-50); box-shadow: inset 0 -2px 0 var(--brand); }
/* alt sayfalarda üst bölümü daha hafif işaretle */
.nav a[aria-current="true"] { color: var(--brand-800); box-shadow: inset 0 -2px 0 var(--brand-200); }

@media (max-width: 900px) {
  .nav-toggle-label {
    display: grid; place-items: center; width: 46px; height: 46px; cursor: pointer;
    border: 1px solid var(--line); border-radius: var(--radius); color: var(--brand-800);
  }
  .nav-toggle-label svg { width: 24px; height: 24px; fill: currentColor; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
    box-shadow: var(--shadow-md);
  }
  .nav ul { flex-direction: column; padding: .5rem clamp(1rem, 4vw, 2rem) 1rem; gap: .1rem; }
  .nav a { padding: .8rem .75rem; font-size: 1rem; }
  .nav-toggle:checked ~ .nav { max-height: 26rem; }
}

/* -------------------------------------------------------------------- hero & slider */
.hero {
  position: relative; overflow: hidden;
  background: var(--brand-900);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70rem 30rem at 88% -10%, rgba(254,0,0,.55), transparent 60%),
    linear-gradient(115deg, var(--brand-950) 0%, var(--brand-900) 45%, var(--brand-800) 100%);
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; padding-block: clamp(3rem, 7vw, 5.5rem); max-width: 1160px; }
.hero h1 { color: #fff; max-width: 21ch; margin-bottom: .6em; }
.hero p { color: #FFE0E0; font-size: clamp(1.02rem, .98rem + .35vw, 1.2rem); max-width: 58ch; margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero Slider (Dynamic Carousel) - Sabit Yükseklik & Genişlik */
.hero-slider {
  position: relative; overflow: hidden; background: var(--brand-950);
  height: clamp(430px, 50vh, 540px); width: 100%;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 1;
  transition: opacity .6s ease-in-out, visibility .6s ease-in-out;
  display: flex; align-items: center; width: 100%; height: 100%;
}
.hero-slide.active {
  opacity: 1; visibility: visible; z-index: 2;
}
.hero-slide-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-slide-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .95;
  filter: brightness(.95) contrast(1.04); transform: scale(1.03); transition: transform 6s ease;
}
.hero-slide.active .hero-slide-bg img {
  transform: scale(1.0);
}
.hero-slide-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right,
      rgba(10, 2, 3, 0.78) 0%,
      rgba(12, 2, 4, 0.52) 45%,
      rgba(140, 0, 0, 0.15) 75%,
      rgba(10, 2, 3, 0.05) 100%);
}
.hero-slide-content {
  position: relative; z-index: 2; padding-block: clamp(2rem, 4vw, 3.5rem); color: #fff; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .85rem; border-radius: 99px; font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; background: rgba(254,0,0,.25);
  color: #FFB0B0; border: 1px solid rgba(254,0,0,.4); margin-bottom: 1rem;
}
.hero-badge.alert-badge {
  background: #FE0000; color: #FFF; border-color: #FF4D4D; box-shadow: 0 0 16px rgba(254,0,0,.5);
  animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.hero-slide h1 { color: #fff; max-width: 23ch; margin-bottom: .5em; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.25; }
.hero-slide p { color: #FFE0E0; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 58ch; margin-bottom: 1.6em; line-height: 1.6; }

.slider-controls {
  position: absolute; bottom: 1.25rem; right: clamp(1rem, 4vw, 3rem); z-index: 10;
  display: flex; align-items: center; gap: .75rem;
}
.slider-arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.4); color: #fff; display: grid; place-items: center;
  cursor: pointer; transition: all .2s ease; backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: var(--brand); border-color: var(--brand); transform: scale(1.08); }
.slider-arrow svg { width: 20px; height: 20px; fill: currentColor; }
.slider-prev svg { transform: rotate(180deg); }
.slider-dots { display: flex; gap: .5rem; align-items: center; }
.slider-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35);
  border: none; cursor: pointer; transition: all .25s ease; padding: 0;
}
.slider-dot.active { width: 28px; border-radius: 6px; background: var(--brand); }

@media (max-width: 640px) {
  .hero-slider { height: 520px; }
  .slider-controls { bottom: 0.85rem; right: 1rem; }
  .slider-arrow { width: 36px; height: 36px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: var(--radius);
  font-weight: 650; font-size: .97rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.value-card .ico svg, .contact-card .ico svg { flex: none; }
a[href^="tel:"] { white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--brand-800); }
.btn-primary:hover { background: var(--brand-100); color: var(--brand-950); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn-solid { background: var(--brand-700); color: #fff; }
.btn-solid:hover { background: var(--brand-900); color: #fff; }
.btn-outline { border-color: var(--brand-700); color: var(--brand-700); }
.btn-outline:hover { background: var(--brand-50); }

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(1.75rem, 3.5vw, 2.75rem); }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 62ch; margin-bottom: clamp(1rem, 1.8vw, 1.4rem); }
.section-head h2 { margin-bottom: .35em; }
.section-head > :last-child { margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: .45rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--brand); border-radius: 2px; }
.section-head p { color: var(--ink-2); margin-bottom: 0; }

.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(clamp(15rem, 28vw, 20rem), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }

/* Proje şeridi: Masaüstünde 4 proje HER ZAMAN tek satırda 4 eşit sütuna yayılır. */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.6rem, 1.2vw, 1.25rem);
  width: 100%;
}
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; gap: 1rem; }
}
.grid-4 .card {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.grid-4 .card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
}
.grid-4 .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.grid-4 .card-body {
  padding: .85rem .95rem 1rem;
  display: flex;
  align-items: center;
}
.grid-4 .card-body h3 {
  font-size: clamp(.88rem, .8rem + .25vw, 1rem);
  line-height: 1.35;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ------------------------------------------------------------------- cards */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.25rem 1.35rem 1.4rem; flex: 1; }
.card-body h3 { margin-bottom: .4em; }
.card-link:hover .card-body h3 { color: var(--brand-800); }
.card-body p { color: var(--ink-2); font-size: .95rem; margin-bottom: 0; }

.value-card { border-top: 4px solid var(--brand); padding: 1.5rem 1.4rem; background: var(--bg);
  border-radius: var(--radius-lg); border-inline: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* ikon ve başlık aynı satırda */
.value-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .7rem; }
.value-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50);
  color: var(--brand-700); display: grid; place-items: center; flex: none; }
.value-card .ico svg { width: 24px; height: 24px; fill: currentColor; }
.value-card h3 { margin: 0; }
.value-card p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* --------------------------------------------------------- service listing */
.svc-list { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.svc-list li { margin: 0; }
.svc-list a {
  display: flex; align-items: center; gap: .7rem; height: 100%;
  padding: .95rem 1.1rem; border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: var(--radius); background: var(--bg); text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .96rem;
  transition: background-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.svc-list a:hover { background: var(--brand-50); color: var(--brand-800); transform: translateX(2px); box-shadow: var(--shadow-sm); }
.svc-list a::after { content: "›"; margin-left: auto; color: var(--brand); font-size: 1.3rem; line-height: 1; }

/* ------------------------------------------------------------- breadcrumbs */
.crumbs { background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: .875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: .8rem 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: .4rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand-700); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ----------------------------------------------------------- page / article */
.page-head { padding-block: clamp(2rem, 5vw, 3.25rem) clamp(1.25rem, 3vw, 2rem); }
.page-head h1 { margin-bottom: .3em; }
.page-head .lede { color: var(--ink-2); font-size: clamp(1.02rem, 1rem + .3vw, 1.15rem); max-width: 66ch; margin: 0; }

.prose { max-width: 74ch; }
.prose > :first-child { margin-top: 0; }
/* içerik metinleri iki yana yaslı; Türkçe heceleme ile boşluk yığılması engellenir
   (html lang="tr" olduğu için tarayıcı Türkçe heceleme sözlüğünü kullanır) */
.prose p, .prose li {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
}
/* kısa satırlarda ve bağlantı listelerinde yaslama bozuk göründüğü için hariç tut */
.prose li:has(> a:only-child), .prose p:has(> a:only-child) { text-align: left; hyphens: manual; }
.prose h2 { margin-top: 2em; padding-bottom: .3em; border-bottom: 2px solid var(--brand-100); }
.prose h3 { margin-top: 1.6em; color: var(--brand-800); }
.prose img { border-radius: var(--radius); margin-block: 1.5rem; box-shadow: var(--shadow-sm); }
.prose ul li::marker { color: var(--brand); }
.prose ol li::marker { color: var(--brand-700); font-weight: 700; }
.prose blockquote {
  margin: 1.5rem 0; padding: .9rem 1.25rem; border-left: 4px solid var(--brand);
  background: var(--brand-50); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2);
}
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.5rem; font-size: .95rem; }
.prose th, .prose td { padding: .65rem .8rem; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--brand-50); color: var(--brand-900); font-weight: 650; }
.prose a { font-weight: 500; }

.article-layout { display: grid; gap: clamp(1.75rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0,1fr) 19rem; } }
.aside { align-self: start; position: sticky; top: 96px; display: grid; gap: 1.25rem; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem 1.3rem; background: var(--bg-2); }
.aside-box h2 { font-size: 1.05rem; margin-bottom: .8em; }
.aside-box ul { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.aside-box li { margin: 0; }
.aside-box li + li { border-top: 1px solid var(--line); }
.aside-box a:not(.btn) { display: block; padding: .5rem 0; text-decoration: none; color: var(--ink-2); }
.aside-box a:not(.btn):hover { color: var(--brand-700); }
/* kenar çubuğundaki butonlar liste bağlantısı stilinden etkilenmesin */
.aside-box .btn { width: 100%; }
.aside-box .btn-primary { color: var(--brand-800); }
.aside-box .btn-primary:hover { color: var(--brand-950); }
.aside-box .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.aside-box .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.14); }
.aside-cta { background: var(--brand-900); color: #fff; border-color: var(--brand-900); }
.aside-cta h2, .aside-cta p { color: #fff; }
.aside-cta p { font-size: .93rem; color: #FFDCDC; }

/* --------------------------------------------------------------- overflow */
.scroll-x { overflow-x: auto; }

/* ------------------------------------------------------------- references */
.ref-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.ref-grid li {
  margin: 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); font-size: .93rem; font-weight: 550;
  display: flex; align-items: center; gap: .55rem;
}
.ref-grid li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.ref-grid a { text-decoration: none; color: var(--ink); }
.ref-grid a:hover { color: var(--brand-700); text-decoration: underline; }

/* ---------------------------------------------------------------- gallery */
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.gallery a { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* ------------------------------------------------------------------ harita */
.map { margin: 2rem 0 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); }
.map iframe { display: block; width: 100%; height: clamp(18rem, 42vw, 26rem); border: 0; }
.map figcaption {
  display: flex; flex-wrap: wrap; gap: .85rem 1.25rem; align-items: center;
  justify-content: space-between; padding: 1rem 1.15rem; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--ink-2);
}
.map-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.map-actions .btn { padding: .6rem 1.1rem; font-size: .9rem; }

/* -------------------------------------------------- mobil hızlı eylem çubuğu */
.mobilebar { display: none; }
@media (max-width: 780px) {
  .mobilebar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; inset: auto 0 0 0; z-index: 200;
    background: var(--bg); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(20,22,26,.12);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobilebar a {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .95rem .5rem; text-decoration: none; font-weight: 700; font-size: .88rem;
    letter-spacing: .01em; min-height: 54px;
  }
  .mobilebar a:first-child { background: var(--brand-700); color: #fff; }
  .mobilebar a:first-child:active { background: var(--brand-900); }
  .mobilebar a:last-child { background: var(--bg); color: var(--brand-800); border-left: 1px solid var(--line); }
  .mobilebar a:last-child:active { background: var(--brand-50); }
  .mobilebar svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
  /* sabit çubuk içeriği kapatmasın */
  body { padding-bottom: 58px; }
}

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; background: var(--bg); }
.contact-card .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-700); color: #fff;
  display: grid; place-items: center; margin-bottom: .9rem; }
.contact-card .ico svg { width: 22px; height: 22px; fill: currentColor; }
.contact-card h3 { margin-bottom: .3em; font-size: 1.05rem; }
.contact-card p, .contact-card address { margin: 0; font-style: normal; color: var(--ink-2); font-size: .96rem; }
.contact-card a { font-weight: 600; }

/* ---------------------------------------------------------------- SSS/FAQ */
.faq { margin: 2.25rem 0 0; }
.faq h2 { margin-bottom: .8em; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: .55rem; background: var(--bg); overflow: hidden;
}
.faq-item > summary {
  cursor: pointer; list-style: none; padding: .9rem 2.6rem .9rem 1.1rem;
  font-weight: 650; color: var(--ink); position: relative; text-align: left;
  min-height: 46px; display: flex; align-items: center;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; line-height: 1; color: var(--brand); font-weight: 400;
}
.faq-item[open] > summary { background: var(--brand-50); color: var(--brand-900); }
.faq-item[open] > summary::after { content: "–"; }
.faq-item > summary:hover { background: var(--brand-50); }
.faq-item p { margin: 0; padding: .25rem 1.1rem 1.05rem; color: var(--ink-2); font-size: .96rem; }

/* --------------------------------------------------------- eş anlamlı terimler */
.alt-terms { margin: 2rem 0 0; }
.alt-terms h2 { font-size: 1.05rem; margin-bottom: .7em; color: var(--ink-2);
  border-bottom: 0; padding-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.chips li {
  margin: 0; padding: .32rem .7rem; border: 1px solid var(--line); border-radius: 100px;
  background: var(--bg-2); font-size: .84rem; color: var(--ink-3); text-align: left;
}
.area-note {
  margin: 1.75rem 0 0; padding: .9rem 1.1rem; border-left: 3px solid var(--brand);
  background: var(--brand-50); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .94rem; color: var(--ink-2); text-align: left;
}

/* ----------------------------------------------------------- bölge listesi */
.bolge-list {
  display: grid; gap: .6rem; list-style: none; padding: 0; margin: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}
.bolge-list li {
  margin: 0; padding: .9rem 1.05rem; border: 1px solid var(--line);
  border-left: 3px solid var(--brand); border-radius: var(--radius); background: var(--bg);
}
.bolge-list strong { display: block; color: var(--brand-800); margin-bottom: .2rem; }
.bolge-list span { font-size: .86rem; color: var(--ink-3); }

/* -------------------------------------------------------------- CTA strip */
.cta {
  background: linear-gradient(115deg, var(--brand-900), var(--brand-700));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between;
}
.cta h2 { color: #fff; margin: 0 0 .3em; }
.cta p { color: #FFDCDC; margin: 0; max-width: 52ch; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--bg-2); color: var(--ink-2); margin-top: clamp(2.5rem, 6vw, 4rem); font-size: .93rem; }
.footer-top { border-top: 4px solid var(--brand); }
.footer .wrap { padding-block: clamp(2rem, 4vw, 3rem); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-800); margin-bottom: .65rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 0; line-height: 1.35; }
.footer li + li { margin-top: .2rem; }
.footer a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; transition: color 0.15s ease; padding-block: 1px; display: inline-block; }
.footer a:hover { color: var(--brand-700); text-decoration: underline; }
.footer .f-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.footer .f-brand img { width: 40px; height: 40px; }
.footer .f-brand strong { color: var(--brand-800); font-size: 1.2rem; }
.footer address { font-style: normal; line-height: 1.6; font-size: 0.92rem; }
.footer-contact-list { list-style: none; padding: 0; margin: .85rem 0 1rem 0; display: flex; flex-direction: column; gap: .35rem; }
.footer-contact-list a { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.footer-contact-list svg { width: 15px; height: 15px; fill: var(--brand-700); flex: none; }

.footer .social { margin-top: .9rem; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.footer .social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; min-height: 36px; min-width: 36px;
  border-radius: 50%; background: var(--brand-800); color: #fff;
  border: none; box-shadow: 0 2px 5px rgba(0,0,0,.15);
  transition: all .2s ease; text-decoration: none;
}
.footer .social a:hover {
  background: var(--brand); color: #fff; transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(168,0,0,.3); text-decoration: none;
}
.footer .social svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.footer-bottom { border-top: 1px solid var(--line); background: var(--bg); }
.footer-bottom .wrap {
  padding-block: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  align-items: center; justify-content: space-between; font-size: .85rem; color: var(--ink-3);
}

/* -------------------------------------------------------------------- 404 */
.notfound { text-align: center; padding-block: clamp(3rem, 9vw, 6rem); }
.notfound .code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; color: var(--brand); line-height: 1; letter-spacing: -.04em; }

/* -------------------------------------------------------------- utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* ============================ MOBİL OPTİMİZASYON ========================== */
@media (max-width: 640px) {
  /* dokunma hedefleri en az 44px (WCAG 2.5.5) */
  .nav a, .svc-list a, .aside-box a, .footer ul a, .topbar a, .crumbs a { min-height: 44px; }
  .svc-list a, .aside-box a { padding-block: .8rem; }
  .footer li + li { margin-top: .15rem; }
  .footer ul a { display: inline-flex; align-items: center; min-height: 44px; }
  .social a { width: 36px; height: 36px; min-height: 36px; min-width: 36px; border-radius: 50%; }

  /* butonlar tam genişlik — parmakla isabet kolaylaşır */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta .hero-actions { width: 100%; }

  /* okunabilirlik: dar ekranda yaslama boşluk açtığı için sola hizala */
  .prose p, .prose li { text-align: left; }
  .hero h1 { max-width: none; }
  .hero p { max-width: none; }

  /* harita başlığı alt alta */
  .map figcaption { flex-direction: column; align-items: flex-start; }
  .map-actions { width: 100%; }
  .map-actions .btn { flex: 1; }

  /* tablolar yatay kaydırılabilir olsun, sayfayı taşırmasın */
  .prose table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 400px) {
  .topbar { font-size: .8rem; }
  .brand-sub { display: none; }
  .chips li { font-size: .8rem; }
}

/* sayfanın hiçbir koşulda yatay kaymaması için güvenlik ağı */
html, body { max-width: 100%; overflow-x: clip; }

@media print {
  .topbar, .masthead, .crumbs, .footer, .cta, .aside { display: none !important; }
  body { color: #000; background: #fff; }
  a::after { content: " (" attr(href) ")"; font-size: .85em; }
}

/* ============================ WHATSAPP & UI MODERNİZASYONU ========================== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background-color: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.2s ease;
  animation: wa-pulse 3s infinite;
}
.wa-float:hover {
  background-color: #20ba5a;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  color: #FFFFFF;
  text-decoration: none;
}
.wa-float svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6), 0 4px 16px rgba(37, 211, 102, 0.3); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0), 0 4px 16px rgba(37, 211, 102, 0.3); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 4px 16px rgba(37, 211, 102, 0.3); }
}
@media (max-width: 780px) {
  .wa-float {
    bottom: 72px;
    right: 16px;
    padding: 12px;
    border-radius: 50%;
  }
  .wa-float .wa-text {
    display: none;
  }
}

/* Kart Mikro-Etkileşimleri */
.card, .value-card, .contact-card, .aside-box {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover, .value-card:hover, .contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-200);
}
.card-media {
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-media img {
  transition: transform 0.4s ease;
}
.card:hover .card-media img {
  transform: scale(1.04);
}

/* İletişim Formu Stilleri */
.contact-form-section {
  width: 100%;
}
.contact-form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.contact-form-card .form-head {
  margin-bottom: 1.75rem;
}
.contact-form-card .form-head h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--brand-800);
  margin: 0 0 0.5rem 0;
}
.contact-form-card .form-head p {
  color: var(--ink-2);
  margin: 0;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-700);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(254, 0, 0, 0.12);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}
.service-detail-hero-img img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------------------------------------------------- İMAR BARIŞI UYARI BANNERI */
.imar-barisi-banner {
  background: linear-gradient(135deg, #FFF4F4 0%, #FFE5E5 100%);
  border: 2px solid var(--brand-700);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-block: 1rem 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.imar-barisi-banner .banner-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--brand-700);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.imar-barisi-banner h3 {
  margin: 0 0 0.5rem 0;
  color: var(--brand-950);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}
.imar-barisi-banner p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.6;
}
.imar-barisi-banner .banner-act {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.imar-barisi-alert {
  background: #FFF4F4;
  border-left: 5px solid var(--brand-700);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.imar-barisi-alert .alert-icon {
  font-size: 1.75rem;
  line-height: 1;
}
.imar-barisi-alert h3 {
  margin: 0 0 0.4rem 0;
  color: var(--brand-900);
  font-size: 1.15rem;
}
.imar-barisi-alert p {
  margin: 0 0 0.5rem 0;
  color: var(--ink);
  font-size: 0.95rem;
}
