/* ==========================================================
   DESTRA HILLS — заеднички стил (index, landing)
   ========================================================== */

:root {
  /* длабок графит со топли златни акценти */
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --bg-3: #161618;
  --plan-bg: #0d0d0f;
  --panel: rgba(26, 25, 28, .72);
  --glass: rgba(20, 20, 23, .52);
  --glass-strong: rgba(14, 14, 16, .82);
  --line: rgba(255, 250, 240, .08);
  --line-2: rgba(255, 250, 240, .16);

  --text: #f7f4ef;
  --text-2: #c9c5bd;
  --muted: #8d8a84;

  --gold: #d9a75a;
  --gold-2: #f2cf8e;
  --gold-3: #a77a36;
  --sunset: #e8793a;
  --ember: #b6502a;

  --free: #7cc79f;
  --res: #e9b04f;
  --sold: #c4645d;

  --ff-sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --wrap: 1240px;
  --gutter: clamp(16px, 5vw, 56px);
  --sec: clamp(88px, 12vw, 168px);
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--ff-sans);
  font-weight: 350;
  font-size: 15.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* фино зрно преку целата страна — „филмски“ премиум ефект */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--gold); color: var(--bg); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.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;
}

/* ---------- типографија ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.h-display,
.h-serif {
  font-family: var(--ff-serif);
  font-weight: 300;
  color: var(--text);
  letter-spacing: -.005em;
  margin: 0;
}
.h-display { font-size: clamp(44px, 7.4vw, 104px); line-height: .98; }
.h-serif   { font-size: clamp(34px, 4.6vw, 64px);  line-height: 1.06; }
.h-serif em, .h-display em { font-style: italic; color: var(--gold-2); }

.h-caps {
  font-family: var(--ff-sans);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--text);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.5;
  margin: 0;
}

.lead {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.8;
  color: var(--text-2);
  max-width: 58ch;
}

.muted { color: var(--muted); }
.gold  { color: var(--gold); }

/* ознака за примерни податоци */
.ex {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--ff-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--gold-2);
  padding: 4px 7px 4px 8px;
  border: 1px dashed rgba(242, 207, 142, .55);
  border-radius: 20px;
  white-space: nowrap;
  font-style: normal;
}
.ex-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.ex-note .ex { flex: none; margin-top: 2px; }

/* ---------- лого ---------- */

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text);
  line-height: 1;
  user-select: none;
}
.logo-word {
  display: flex;
  align-items: center;
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 19px;
  letter-spacing: .42em;
  margin-right: -.42em;
}
.logo-word .lam {
  width: .74em;
  height: .72em;
  margin-left: .02em;
  margin-right: .42em;
  overflow: visible;
}
.logo-sub {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: .62em;
  color: var(--gold);
  padding-left: .62em;
}
.logo-sub i { flex: 1; height: 1px; background: currentColor; opacity: .75; }

/* ---------- копчиња ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 32px;
  font-family: var(--ff-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3));
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn:hover { box-shadow: 0 18px 40px -18px rgba(217, 167, 90, .7); transform: translateY(-1px); }
.btn:hover::after { transform: translateX(120%); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-ghost {
  color: var(--text);
  background: rgba(10, 10, 11, .25);
  border-color: var(--line-2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost::after { background: linear-gradient(110deg, transparent 30%, rgba(242, 207, 142, .18) 50%, transparent 70%); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); box-shadow: none; }

.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}
.link-arrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  transition: width .5s var(--ease);
}
.link-arrow:hover::after { width: 44px; }

/* ---------- статуси ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}
.status.slobodan   { color: var(--free); }
.status.rezerviran { color: var(--res); }
.status.prodaden   { color: var(--sold); }

/* ---------- форми ---------- */

.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 8px; }
.field label,
.field .lbl {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label b { color: var(--gold); font-weight: 500; }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font: 400 16px/1.4 var(--ff-sans);
  color: var(--text);
  background: rgba(244, 238, 228, .035);
  border: 1px solid var(--line-2);
  border-radius: 0;
  outline: none;
  transition: border-color .3s, background .3s;
  -webkit-appearance: none;
  appearance: none;
}
.textarea { min-height: 104px; resize: vertical; }
.select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23d9a75a' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.select option { background: var(--bg-2); color: var(--text); }
.input::placeholder, .textarea::placeholder { color: #6b7488; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--gold);
  background: rgba(217, 167, 90, .06);
}
.input[type="date"] { color-scheme: dark; }
.field.invalid .input,
.field.invalid .select { border-color: var(--sold); }

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid var(--line-2);
  background: rgba(244, 238, 228, .04);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.consent input::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 1.6px solid var(--bg);
  border-bottom: 1.6px solid var(--bg);
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform .25s var(--ease);
}
.consent input:checked { background: var(--gold); border-color: var(--gold); }
.consent input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.consent input:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.consent.invalid input { border-color: var(--sold); }
.consent.invalid { color: #e2a29d; }

.form-hint { font-size: 12px; color: var(--muted); margin: 0; }

/* успешно испратено (демо) */
.form-success {
  display: none;
  text-align: center;
  padding: 36px 8px;
  animation: rise .8s var(--ease) both;
}
.form-success .tick {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
}
.form-success .tick svg { width: 26px; height: 26px; }
.form-success .tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .8s .25s var(--ease) forwards; }
.form-success h3 {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: 40px;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 10px;
}
.form-success p { margin: 0 auto; max-width: 36ch; }
.form-success small { display: block; margin-top: 18px; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.is-sent > form { display: none; }
.is-sent .form-success { display: block; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- анимации при скролање ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-reveal="img"] {
  opacity: 1;
  transform: none;
  clip-path: inset(12% 6% 12% 6%);
  transition: clip-path 1.5s var(--ease-io);
}
.js [data-reveal="img"] img { transform: scale(1.18); transition: transform 1.8s var(--ease-io); }
.js [data-reveal="img"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="img"].is-in img { transform: scale(1); }

/* ---------- плутачко копче за Viber / WhatsApp ---------- */

.fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.fab-main {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1a1206;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, var(--gold-3));
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7), 0 0 0 0 rgba(217, 167, 90, .5);
  animation: pulse 3.2s 2s infinite;
  transition: transform .4s var(--ease);
}
.fab-main svg { width: 26px; height: 26px; transition: transform .4s var(--ease), opacity .3s; }
.fab-main .ic-close { position: absolute; opacity: 0; transform: rotate(-90deg); }
.fab.open .fab-main { animation: none; }
.fab.open .fab-main .ic-chat { opacity: 0; transform: rotate(90deg); }
.fab.open .fab-main .ic-close { opacity: 1; transform: none; }

.fab-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.fab-item {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(14px) scale(.96);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.fab.open .fab-list { pointer-events: auto; }
.fab.open .fab-item { opacity: 1; transform: none; }
.fab.open .fab-item:nth-child(1) { transition-delay: .12s; }
.fab.open .fab-item:nth-child(2) { transition-delay: .06s; }
.fab-item span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(14, 14, 16, .92);
  border: 1px solid var(--line);
  padding: 9px 14px;
  backdrop-filter: blur(8px);
}
.fab-item i {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .8);
}
.fab-item i svg { width: 24px; height: 24px; }
.fab-item.viber i    { background: #7360f2; }
.fab-item.whatsapp i { background: #25d366; }
.fab-item.phone i    { background: var(--bg-3); border: 1px solid var(--line-2); color: var(--gold); }

/* единечно Viber копче (landing) */
.fab-viber {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #7360f2;
  color: #fff;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .8);
  animation: pulse-v 3.2s 2s infinite;
}
.fab-viber svg { width: 28px; height: 28px; }

@keyframes pulse   { 0%,70%,100% { box-shadow: 0 14px 34px -10px rgba(0,0,0,.7), 0 0 0 0 rgba(217,167,90,.45); } 35% { box-shadow: 0 14px 34px -10px rgba(0,0,0,.7), 0 0 0 16px rgba(217,167,90,0); } }
@keyframes pulse-v { 0%,70%,100% { box-shadow: 0 14px 34px -10px rgba(0,0,0,.8), 0 0 0 0 rgba(115,96,242,.5); } 35% { box-shadow: 0 14px 34px -10px rgba(0,0,0,.8), 0 0 0 16px rgba(115,96,242,0); } }

/* ---------- симулирано Viber известување (демо) ---------- */

.notify {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 180;
  width: min(360px, calc(100vw - 32px));
  padding: 14px 16px 12px;
  background: rgba(22, 20, 40, .94);
  border: 1px solid rgba(115, 96, 242, .45);
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-24px) scale(.97);
  pointer-events: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.notify.show { opacity: 1; transform: none; pointer-events: auto; }
.notify-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 11px; letter-spacing: .06em; color: #b9b2ff; }
.notify-top i { width: 22px; height: 22px; border-radius: 6px; background: #7360f2; color: #fff; display: grid; place-items: center; }
.notify-top i svg { width: 15px; height: 15px; }
.notify-top b { font-weight: 600; }
.notify-top span { margin-left: auto; color: var(--muted); }
.notify p { margin: 0; color: var(--text-2); }
.notify p strong { color: var(--text); font-weight: 600; }
.notify p em { font-style: normal; color: var(--muted); font-size: 12px; }
.notify small { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 10.5px; color: var(--muted); }

/* ---------- ознака „Демо верзија“ ---------- */

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-2);
  border: 1px solid rgba(217, 167, 90, .4);
  padding: 6px 12px;
  border-radius: 20px;
}
.demo-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 2s infinite;
}
@keyframes blink { 50% { opacity: .25; } }

/* ---------- модал ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
}
.modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 5, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.modal-card {
  position: relative;
  width: min(1080px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9);
  opacity: 0;
  transform: translateY(30px) scale(.98);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  overscroll-behavior: contain;
}
.modal.open { visibility: visible; pointer-events: auto; }
.modal.open .modal-bg { opacity: 1; }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text);
  background: rgba(10, 10, 11, .6);
  transition: border-color .3s, color .3s, transform .4s var(--ease);
}
.modal-x:hover { border-color: var(--gold); color: var(--gold); transform: rotate(90deg); }
.modal-x svg { width: 16px; height: 16px; }
body.lock { overflow: hidden; }

/* ---------- план на стан (SVG) ---------- */

.plan-svg { width: 100%; height: auto; overflow: visible; }
.plan-svg .wall-out { fill: none; stroke: var(--gold); stroke-width: 3.2; }
.plan-svg .wall-in  { fill: none; stroke: var(--gold); stroke-width: 1.3; opacity: .8; }
.plan-svg .room     { fill: rgba(217, 167, 90, .035); }
.plan-svg .room.living { fill: rgba(217, 167, 90, .07); }
.plan-svg .win      { stroke: var(--gold-2); stroke-width: 1.2; }
.plan-svg .win-gap  { stroke: var(--plan-bg); stroke-width: 5; }
.plan-svg .door     { fill: none; stroke: var(--gold); stroke-width: .9; opacity: .55; }
.plan-svg .terr     { stroke: var(--gold); stroke-width: 1.2; stroke-dasharray: 5 4; opacity: .85; }
.plan-svg .rl       { font-family: var(--ff-sans); font-weight: 400; fill: var(--text); letter-spacing: .08em; text-transform: uppercase; }
.plan-svg .ra       { font-family: var(--ff-sans); font-weight: 300; fill: var(--muted); }
.plan-svg .north    { stroke: var(--muted); fill: none; stroke-width: 1; }
.plan-svg .north-t  { font-family: var(--ff-sans); font-size: 9px; fill: var(--muted); letter-spacing: .1em; }

/* вистински архитектонски план (слика) — „ливче хартија“ врз темната подлога */
img.plan-real {
  display: block;
  background: #f7f4ee;
  border-radius: 10px;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .55);
  object-fit: contain;
}
.page img.plan-real { box-shadow: none; border: 1px solid rgba(0, 0, 0, .06); }

/* ---------- футер ---------- */

.foot {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 72px 0 calc(40px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(232, 121, 58, .04));
}

/* ---------- достапност ---------- */

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js [data-reveal="img"] { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal="img"] img { transform: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .form-row { grid-template-columns: 1fr; }
  .btn { min-height: 52px; padding: 0 24px; letter-spacing: .2em; }
  .fab-main, .fab-viber { width: 56px; height: 56px; }
  .modal { padding: 0; place-items: end center; }
  .modal-card { max-height: 94dvh; border-left: 0; border-right: 0; border-bottom: 0; transform: translateY(60px); }
}
