/* ==========================================================================
   Katbilen marka katmanı — tüm sayfalar
   style.css'ten sonra yüklenir. Instagram görsel dili: sıcak traverten
   tonları, koyu lacivert başlıklar, hap biçimli butonlar, bol boşluk.
   ========================================================================== */

:root {
  --kb-ink: #142036;
  --kb-ink-soft: #3c475b;
  --kb-muted: #6b7180;
  --kb-blue: #0a5db2;
  --kb-sand: #f6f1e9;
  --kb-stone: #ece3d5;
  --kb-paper: #fbf9f5;
  --kb-line: rgba(20, 32, 54, 0.12);
  --kb-radius: 22px;
  --kb-ease: cubic-bezier(.2, .7, .2, 1);

  /* style.css belirteçlerini marka tonlarına çek */
  --color-navy: #142036;
  --color-navy-dark: #0e182a;
  --color-text-main: #142036;
  --color-text-muted: #6b7180;
  --color-bg-page: #fbf9f5;
  --color-bg-subtle: #f6f1e9;
  --color-border: #e6ddcf;
}

body {
  background: var(--kb-paper);
  color: var(--kb-ink);
}

/* --- Header ---------------------------------------------------------- */
.header-topbar { display: none; }
.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 249, 245, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.header-main {
  background: transparent;
  border-bottom: 1px solid var(--kb-line);
  box-shadow: none;
  padding: 18px 0;
}
.nav-link { color: var(--kb-ink); font-weight: 500; }
.nav-item.active > .nav-link { font-weight: 600; }
.dropdown-menu {
  border: 1px solid var(--kb-line);
  border-radius: 16px;
  background: var(--kb-paper);
  box-shadow: 0 24px 48px -24px rgba(20, 32, 54, .28);
}
.dropdown-link:hover { background: var(--kb-sand); color: var(--kb-ink); }
.btn-primary-action {
  background: var(--kb-ink);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  padding: 11px 22px;
}
.btn-primary-action:hover { background: var(--kb-blue); transform: none; box-shadow: none; }
.mobile-nav-drawer { background: var(--kb-paper); }

@media (max-width: 640px) {
  .header-main { padding: 12px 0; }
}

/* --- Footer ---------------------------------------------------------- */
.site-footer { background: var(--kb-ink); }

/* --- Etiket / üst başlıklar ----------------------------------------- */
.section-eyebrow,
.management-kicker,
.property-overline,
.property-cover-kicker,
.architecture-kicker,
.architecture-overline,
.legal-eyebrow,
.legal-section-label,
.quote-eyebrow,
.quote-section-index,
.contact-eyebrow,
.contact-section-label,
.resident-entry-eyebrow,
.guide-kicker {
  color: var(--kb-blue);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-eyebrow-bar,
.management-kicker i,
.architecture-kicker span,
.quote-eyebrow i {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* --- Başlık tipografisi ---------------------------------------------- */
main h1 {
  font-weight: 800;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
main h2 {
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* --- Butonlar: koyu, hap biçimli ------------------------------------- */
.about-button-primary,
.management-opening-primary,
.management-contact-button,
.architecture-button,
.legal-btn-dark,
.quote-form-submit button,
.resident-entry-form button[type="submit"],
.guide-aside-button,
.hero-v2-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--kb-ink);
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: none;
  transition: background .25s, color .25s, transform .25s var(--kb-ease);
}
.about-button-primary:hover,
.management-opening-primary:hover,
.management-contact-button:hover,
.architecture-button:hover,
.legal-btn-dark:hover,
.quote-form-submit button:hover,
.resident-entry-form button[type="submit"]:hover,
.guide-aside-button:hover,
.hero-v2-btn-primary:hover {
  background: var(--kb-blue);
  color: #fff;
  transform: none;
  box-shadow: none;
}

/* Açık zemin üzerinde beyaz hap buton (koyu bant / fotoğraf üstü) */
.about-button-light,
.legal-btn-light,
.property-cover-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--kb-ink);
  font-weight: 600;
  box-shadow: none;
  transition: background .25s;
}
.about-button-light:hover,
.legal-btn-light:hover,
.property-cover-link:hover { background: var(--kb-sand); color: var(--kb-ink); transform: none; }

.legal-btn-outline {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid var(--kb-line);
  background: transparent;
  color: var(--kb-ink);
  font-weight: 600;
}
.legal-btn-outline:hover { border-color: var(--kb-ink); }

/* Metin bağlantıları */
.about-text-link,
.architecture-text-link,
.management-opening-secondary,
.contact-map-link {
  color: var(--kb-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.about-text-link:hover,
.architecture-text-link:hover,
.management-opening-secondary:hover,
.contact-map-link:hover { color: var(--kb-blue); }

/* --- Kartlar: düz, yumuşak köşeli ----------------------------------- */
.about-principle,
.about-process-step,
.legal-role-card,
.legal-rate-card,
.legal-workflow,
.guide-card,
.guide-aside-card,
.guide-summary,
.guide-toc,
.contact-office-card,
.resident-entry-panel,
.quote-form-panel,
.management-domain {
  border-radius: var(--kb-radius);
  box-shadow: none;
}
.about-principle,
.about-process-step,
.guide-card,
.guide-aside-card,
.contact-office-card,
.resident-entry-panel {
  border: 1px solid var(--kb-line);
  background: #fff;
}
.about-principle::before,
.about-process-step::before { display: none; }

/* Görseller: yumuşak köşe, gölgesiz */
.about-intro-visual,
.about-intro-visual img,
.architecture-hero-visual,
.contact-map-frame {
  border-radius: calc(var(--kb-radius) + 6px);
  box-shadow: none;
  overflow: hidden;
}
.about-intro-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }

/* Form alanları */
.quote-field input,
.quote-field select,
.quote-field textarea,
.resident-entry-input-wrap {
  border-radius: 14px;
  border-color: #e6ddcf;
  background: #fff;
}
.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus { border-color: var(--kb-ink); box-shadow: 0 0 0 3px rgba(20, 32, 54, .08); }

/* --- Sayfa düzeltmeleri --------------------------------------------- */

/* Hizmetler: yaşam alanı fotoğrafı */
.management-living-image { background: none; position: relative; overflow: hidden; }
.management-living-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}

/* Teklif al: fotoğraf */
.quote-intro { background: var(--kb-sand); }
.quote-intro-photo {
  position: relative;
  margin: 0;
  min-height: 380px;
  border-radius: calc(var(--kb-radius) + 6px);
  overflow: hidden;
}
.quote-intro-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}
.quote-intro-photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(251, 249, 245, .9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--kb-ink);
}
.quote-intro-photo figcaption span {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kb-blue);
  margin-bottom: 4px;
}
.quote-intro-photo figcaption strong { font-size: 1rem; letter-spacing: -.01em; }
.quote-aside-marker { display: none; }

@media (max-width: 900px) {
  .quote-intro-photo { min-height: 260px; }
}

/* Menü: aktif sayfa yalnızca alt çizgiyle */
.nav-link,
.nav-item.active > .nav-link,
.nav-link:hover { background: transparent; }
.nav-link:hover { color: var(--kb-blue); }

/* Koyu zeminde etiketler */
.legal-opening .legal-eyebrow,
.legal-late-fee .legal-section-label,
.legal-appeal .legal-section-label,
.guide-hero .guide-kicker,
.management-summary .management-kicker,
.property-approach .property-overline,
.property-cover .property-cover-kicker,
.architecture-cta .architecture-overline,
.architecture-cta .architecture-kicker { color: #9cc4f0; }

/* Sayfa sonu çağrı butonları */
.property-contact-inner > a {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--kb-ink);
  color: #fff;
  box-shadow: none;
}
.property-contact-inner > a:hover { background: var(--kb-blue); color: #fff; transform: none; }
.faq-contact-band a {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  box-shadow: none;
}

/* --- Politika sayfaları (gizlilik, çerez) ---------------------------- */
.policy-hero {
  padding: 64px 0 72px;
  background: var(--kb-sand);
  border-bottom: 1px solid var(--kb-line);
}
.policy-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-size: .85rem;
  color: var(--kb-muted);
}
.policy-breadcrumb a { color: var(--kb-ink); }
.policy-breadcrumb a:hover { color: var(--kb-blue); }
.policy-hero .section-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.policy-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  line-height: 1.04;
  color: var(--kb-ink);
}
.policy-lead {
  max-width: 62ch;
  margin: 22px 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--kb-ink-soft);
}
.policy-updated { margin: 18px 0 0; font-size: .88rem; color: var(--kb-muted); }

.policy-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 72px;
  padding-top: 72px;
  padding-bottom: 112px;
}
.policy-toc { position: sticky; top: 110px; align-self: start; }
.policy-toc > p {
  margin: 0 0 14px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kb-muted);
}
.policy-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--kb-line); }
.policy-toc a {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--kb-line);
  font-size: .92rem;
  color: var(--kb-ink-soft);
  transition: color .2s;
}
.policy-toc a span { color: var(--kb-blue); font-size: .78rem; font-weight: 600; padding-top: 2px; }
.policy-toc a:hover { color: var(--kb-ink); }

.policy-article { max-width: 780px; }
.policy-section { padding: 0 0 44px; margin-bottom: 44px; border-bottom: 1px solid var(--kb-line); scroll-margin-top: 110px; }
.policy-section:last-child { border-bottom: 0; margin-bottom: 0; }
.policy-section h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 18px;
  font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem);
  font-weight: 700;
  color: var(--kb-ink);
}
.policy-section h2 span { font-size: .85rem; font-weight: 600; color: var(--kb-blue); letter-spacing: 0; }
.policy-section h3 { margin: 28px 0 10px; font-size: 1.1rem; font-weight: 700; color: var(--kb-ink); }
.policy-section p,
.policy-section li { font-size: 1rem; line-height: 1.75; color: var(--kb-ink-soft); }
.policy-section p { margin: 0 0 14px; }
.policy-section ul { margin: 0 0 14px; padding-left: 20px; list-style: disc; }
.policy-section li { margin-bottom: 6px; }
.policy-section li::marker { color: var(--kb-blue); }
.policy-section strong { color: var(--kb-ink); }
.policy-section a { color: var(--kb-blue); text-decoration: underline; text-underline-offset: 3px; }
.policy-section code {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--kb-sand);
  font-size: .86em;
  color: var(--kb-ink);
}

.policy-facts { display: grid; gap: 0; margin: 0 0 18px; border-top: 1px solid var(--kb-line); }
.policy-facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--kb-line); }
.policy-facts dt { font-size: .88rem; font-weight: 600; color: var(--kb-muted); }
.policy-facts dd { margin: 0; color: var(--kb-ink); }

.policy-table-wrap { margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--kb-line); border-radius: 18px; background: #fff; }
.policy-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.policy-table th {
  padding: 14px 16px;
  background: var(--kb-sand);
  text-align: left;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--kb-ink);
}
.policy-table td { padding: 14px 16px; border-top: 1px solid var(--kb-line); vertical-align: top; line-height: 1.6; color: var(--kb-ink-soft); }
.policy-table td:first-child { font-weight: 600; color: var(--kb-ink); }
.policy-links { list-style: none !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; }
.policy-links li { margin: 0; }
.policy-links a {
  display: inline-flex;
  padding: 9px 18px;
  border: 1px solid var(--kb-line);
  border-radius: 999px;
  color: var(--kb-ink);
  text-decoration: none;
  font-weight: 500;
}
.policy-links a:hover { border-color: var(--kb-ink); }

@media (max-width: 900px) {
  .policy-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 80px; }
  .policy-toc { position: static; }
  .policy-hero { padding: 40px 0 48px; }
}
@media (max-width: 640px) {
  .policy-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .policy-table { min-width: 560px; }
}

/* Footer yasal bağlantılar */
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Teklif formu onay bağlantısı */
.quote-consent a { color: var(--kb-blue); text-decoration: underline; text-underline-offset: 3px; }

/* İletişim: harita onay alanı */
.contact-map-consent {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.7), transparent 60%),
    var(--kb-stone);
}
.contact-map-load {
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--kb-ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.contact-map-load:hover { background: var(--kb-blue); }
.contact-map-consent p { margin: 0; max-width: 30ch; font-size: .82rem; line-height: 1.5; color: var(--kb-ink-soft); }
.contact-map-consent a { color: var(--kb-ink); text-decoration: underline; }

/* --- Çerez bilgilendirme bandı ---------------------------------------- */
.cookie-notice {
  position: fixed;
  left: max(22px, env(safe-area-inset-left));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 1040; /* mobil menünün (1050/1100) altında kalır */
  display: flex;
  gap: 14px;
  box-sizing: border-box;
  width: min(420px, calc(100vw - 44px));
  padding: 18px 20px 18px 18px;
  border: 1px solid var(--kb-line);
  border-radius: 20px;
  background: rgba(251, 249, 245, .96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -24px rgba(20, 32, 54, .35);
  color: var(--kb-ink);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s var(--kb-ease), transform .35s var(--kb-ease);
}
.cookie-notice.is-visible { opacity: 1; transform: none; }
.cookie-notice[hidden] { display: none; }
.cookie-notice-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--kb-sand);
  color: var(--kb-ink);
}
.cookie-notice-icon svg { width: 22px; height: 22px; }
.cookie-notice-body { flex: 1 1 auto; min-width: 0; }
.cookie-notice-title { margin: 2px 0 4px; font-weight: 700; font-size: .98rem; letter-spacing: -.01em; }
.cookie-notice-body p:not(.cookie-notice-title) { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--kb-ink-soft); }
.cookie-notice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
.cookie-notice-ok {
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--kb-ink);
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.cookie-notice-ok:hover { background: var(--kb-blue); }
.cookie-notice-ok:focus-visible,
.cookie-notice-actions a:focus-visible { outline: 2px solid var(--kb-blue); outline-offset: 3px; }
.cookie-notice-actions a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--kb-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-notice-actions a:hover { color: var(--kb-blue); }

@media (max-width: 640px) {
  /* Mobilde ekranın altına yapışık, sade bir şerit */
  .cookie-notice {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--kb-line);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 32px -16px rgba(20, 32, 54, .28);
  }
  .cookie-notice-icon,
  .cookie-notice-title { display: none; }
  .cookie-notice-body p:not(.cookie-notice-title) { font-size: .86rem; line-height: 1.5; }
  .cookie-notice-actions { flex-wrap: nowrap; gap: 14px; margin-top: 12px; }
  .cookie-notice-ok { flex: 0 0 auto; min-height: 40px; padding: 0 20px; }
  /* Bant açıkken WhatsApp düğmesi bandın hemen üstünde durur */
  .has-cookie-notice .whatsapp-float { bottom: calc(var(--kb-cookie-h, 120px) + 12px); }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-notice { transition: none; }
}
