/* Khalif public site — the əmlakagenti (real-estate.az) design language,
   in Khalif's own colours (owner, 2026-11-05: «real-estate.az'ın dizayn dilini
   kullan ama birebir onu alma»).

   What is borrowed: Montserrat, heavy tight headlines with one highlighted
   word, wide-tracked uppercase eyebrows, gradient pill buttons with a soft
   glow, white 20–24px cards on a cool tinted canvas, numbered step cards,
   "app window" frames, a deep navy footer.
   What is ours: the K mark's steel blue (#5290B9 → #3D7AA4), the copy, the
   data, and every page's structure.

   Loaded after base.html's inline block, so these tokens win. Templates speak
   only in tokens (var(--ink), var(--acc)…) — change a value here and the whole
   public site follows. Light-only on purpose: the public pages still carry
   inline light colours, and a half-dark page is worse than none. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand: #5290B9;
  --acc: #3D7AA4; --acc-hi: #336C93; --acc-deep: #2A5C7E;
  --acc-soft: rgba(61,122,164,.10); --acc-50: #EEF4F9; --acc-100: #DDEAF3;
  --navy: #0B1724;
  --ink: #0F1B2A; --text: #2E3A48; --muted: #5E6B7A; --muted-2: #8A95A2;
  --line: #E2E8EF; --line-2: #EDF1F5;
  --fill: #F3F7FA; --page: #FFFFFF;
  --grad: linear-gradient(100deg, #63A4D2 0%, #3D7AA4 52%, #2C6490 100%);
  --grad-soft: linear-gradient(180deg, #EAF2F8 0%, #F6F9FC 60%, #FFFFFF 100%);
  --shadow-xs: 0 1px 2px rgba(15,35,60,.05);
  --shadow-sm: 0 1px 2px rgba(15,35,60,.04), 0 4px 14px rgba(15,35,60,.05);
  --shadow: 0 2px 6px rgba(15,35,60,.04), 0 14px 36px rgba(15,35,60,.07);
  --shadow-lg: 0 10px 30px rgba(15,35,60,.08), 0 30px 80px rgba(15,35,60,.12);
  --glow: 0 10px 26px rgba(61,122,164,.30), 0 2px 8px rgba(61,122,164,.18);
  --ring: 0 0 0 4px rgba(61,122,164,.16);
  --r-sm: 12px; --r: 18px; --r-lg: 24px; --r-xl: 32px;
  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}

body { font-family: var(--font); color: var(--text); background: var(--page); }
.ap, .font-display { font-family: var(--font); }
h1, h2, h3, h4 { color: var(--ink); }
::selection { background: var(--acc-100); color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #CBD5DF; }

/* ── shared vocabulary (.ap-*) restyled ─────────────────────────────────── */
.ap-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--acc); }
.ap-h1 { font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.ap-h2 { font-weight: 800; letter-spacing: -.03em; }
.ap-h3 { font-weight: 700; }
.ap-lead { color: var(--muted); }
.ap-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.ap-fillcard { background: var(--fill); border-radius: var(--r-lg); }
.ap-btn { font-weight: 700; font-size: 15px; border-radius: 999px; padding: 13px 26px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.ap-btn:hover { transform: translateY(-1px); }
.ap-btn-fill { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.ap-btn-fill:hover { background: var(--grad); color: #fff; box-shadow: 0 14px 32px rgba(61,122,164,.38), 0 2px 8px rgba(61,122,164,.2); }
.ap-btn-soft { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.ap-btn-soft:hover { background: #fff; color: var(--acc); border-color: var(--acc-100); }
.ap-btn-dark { background: var(--navy); }
.ap-glass { background: rgba(255,255,255,.88); }
.ap-lift:hover { box-shadow: var(--shadow); }
.ap-a { color: var(--acc); } .ap-a:hover { color: var(--acc-deep); }
.legal a { color: var(--acc); }
.eyebrow { color: var(--acc); }
.eyebrow::before { background: var(--acc); }

/* ── page furniture used across pages ───────────────────────────────────── */
.ks-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .26em;
  text-transform: uppercase; color: var(--acc); margin: 0 0 14px; }
.ks-hl { color: var(--acc); background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
.ks-chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 16px;
  border-radius: 999px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-xs);
  font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: color .15s, border-color .15s, transform .2s var(--ease); }
.ks-chip:hover { color: var(--acc); border-color: var(--acc-100); transform: translateY(-1px); }
.ks-chip svg, .ks-chip i { width: 15px; height: 15px; color: var(--acc); }
.ks-tile { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  color: #fff; box-shadow: 0 8px 18px -8px currentColor; }
.ks-tile svg { width: 22px; height: 22px; color: #fff; }
.ks-tile.t-blue { background: linear-gradient(140deg,#6FB0DD,#3D7AA4); color: #3D7AA4; }
.ks-tile.t-green { background: linear-gradient(140deg,#4CD49A,#16A46C); color: #16A46C; }
.ks-tile.t-orange { background: linear-gradient(140deg,#FFAA5C,#F07A22); color: #F07A22; }
.ks-tile.t-violet { background: linear-gradient(140deg,#9F8BFA,#6A52E0); color: #6A52E0; }
.ks-tile.t-pink { background: linear-gradient(140deg,#FF7EAA,#E2457B); color: #E2457B; }
.ks-tile.t-teal { background: linear-gradient(140deg,#4FD1D9,#1597A6); color: #1597A6; }
.ks-tile svg { stroke: #fff; }
.ks-window { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); overflow: hidden; }
.ks-window-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: #FBFCFE; }
.ks-dots { display: flex; gap: 6px; flex: none; }
.ks-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.ks-dots i:nth-child(1) { background: #FF5F57; } .ks-dots i:nth-child(2) { background: #FEBC2E; } .ks-dots i:nth-child(3) { background: #28C840; }
.ks-url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--fill); border-radius: 999px;
  padding: 7px 14px; font-size: 12.5px; color: var(--text); font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ks-url svg { width: 13px; height: 13px; color: var(--muted); flex: none; }

/* ── header ─────────────────────────────────────────────────────────────── */
.ks-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.ks-head.is-scrolled { border-bottom-color: var(--line-2); box-shadow: 0 6px 24px -18px rgba(15,35,60,.35); }
.ks-head-in { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px,4vw,32px); height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ks-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.ks-logo-mark { width: 34px; height: 34px; color: var(--brand); display: inline-block; }
.ks-logo-word { font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--ink); }
.ks-logo-word b { font-weight: 800; color: var(--acc); }
.kh-links { display: flex; align-items: center; }
.kh-link { position: relative; padding: 8px 16px; font-size: 13px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink); text-decoration: none; transition: color .15s; }
.kh-link + .kh-link::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px;
  margin-top: -7px; background: var(--line); }
.kh-link:hover, .kh-link.is-on { color: var(--acc); }
.ks-head-act { display: flex; align-items: center; gap: 10px; }
.kh-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  background: var(--grad); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none;
  box-shadow: var(--glow); transition: transform .2s var(--ease); }
.kh-cta:hover { transform: translateY(-1px); color: #fff; }
.kh-cta svg { width: 16px; height: 16px; }
.kh-menu { display: none; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line-2);
  background: #fff; box-shadow: var(--shadow-xs); place-items: center; color: var(--ink); cursor: pointer; }
.kh-menu svg { width: 20px; height: 20px; }
.kh-drawer { border-top: 1px solid var(--line-2); background: #fff; }
.kh-drawer nav { max-width: 1240px; margin: 0 auto; padding: 12px 16px 18px; display: grid; gap: 2px; }
.kh-drawer a.d-link { padding: 13px 14px; border-radius: 14px; color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; }
.kh-drawer a.d-link:hover { background: var(--fill); color: var(--acc); }
.kh-drawer a.d-link svg { width: 16px; height: 16px; color: var(--muted-2); }
.kh-drawer .d-sep { height: 1px; background: var(--line-2); margin: 6px 14px; }
@media (max-width: 1080px) { .kh-link { padding: 8px 11px; letter-spacing: .06em; font-size: 12.5px; } }
@media (max-width: 900px) { .kh-links { display: none; } .kh-menu { display: grid; } .ks-head-in { height: 64px; } }
@media (max-width: 520px) { .kh-cta { display: none; } }
@media (min-width: 901px) { .kh-drawer { display: none !important; } }

/* ── footer ─────────────────────────────────────────────────────────────── */
.ks-foot { position: relative; overflow: hidden; margin-top: 0; color: #B8C4D2;
  background: radial-gradient(900px 420px at 92% 0%, rgba(82,144,185,.38), transparent 60%), var(--navy); }
.ks-foot-in { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(52px,7vw,80px) clamp(16px,4vw,32px) 28px; }
.ks-foot-grid { display: grid; gap: 40px; grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1fr; }
.ks-foot .ks-logo-word { color: #fff; }
.ks-foot .ks-logo-word b { color: #8EC0E2; }
.ks-foot-about { margin: 16px 0 0; font-size: 14px; line-height: 1.7; max-width: 300px; color: #B8C4D2; }
.ks-foot-h { font-size: 14px; font-weight: 700; color: #fff; margin: 0 0 16px; }
.ks-foot a.f-link { display: block; font-size: 14px; color: #B8C4D2; text-decoration: none; padding: 6px 0; transition: color .15s; }
.ks-foot a.f-link:hover { color: #fff; }
.ks-foot .f-note { display: block; font-size: 14px; padding: 6px 0; color: #8C9AAB; }
.ks-foot-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ks-foot-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); color: #fff; text-decoration: none;
  font-size: 13.5px; font-weight: 600; transition: background .15s; }
.ks-foot-pill:hover { background: rgba(255,255,255,.14); color: #fff; }
.ks-foot-pill svg { width: 15px; height: 15px; }
.ks-foot-soc { display: flex; gap: 8px; margin-top: 14px; }
.ks-foot-soc a { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: #DCE5EE; }
.ks-foot-soc a:hover { background: rgba(255,255,255,.14); }
.ks-foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex;
  flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: #8C9AAB; }
.ks-foot-bottom a { color: #B8C4D2; text-decoration: underline; text-underline-offset: 3px; }
.ks-foot-bottom a:hover { color: #fff; }
.ks-foot-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 1000px) { .ks-foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .ks-foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .ks-foot-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; } }

@media (prefers-reduced-motion: reduce) { .ks-chip, .kh-cta, .ap-btn { transition: none; } }
