/* ============ Design tokens ============ */
:root {
  --green: #1a3c2a;
  --green-700: #15301f;
  --green-50: #eef3ef;
  --gold: #c9a84c;
  --gold-dark: #b0902f;
  --ink: #1c2520;
  --muted: #5c6b62;
  --line: #e4e9e5;
  --bg: #ffffff;
  --bg-soft: #f6f8f6;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(26, 60, 42, .08);
  --shadow-lg: 0 20px 50px rgba(26, 60, 42, .14);
  --maxw: 1140px;
  --font: 'Raleway', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.container--narrow { max-width: 760px; }

.section { padding: 64px 0; }
.section__title { font-size: clamp(26px, 5vw, 40px); font-weight: 800; color: var(--green); letter-spacing: -.02em; }
.section__lead { color: var(--muted); margin-top: 10px; max-width: 640px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 12px; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 17px 30px; font-size: 17px; }
.btn--primary { background: var(--gold); color: #2a2208; box-shadow: 0 8px 20px rgba(201, 168, 76, .35); }
.btn--primary:hover { background: var(--gold-dark); box-shadow: 0 12px 26px rgba(201, 168, 76, .45); }
.btn--ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); }
.btn--ghost-dark { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn--ghost-dark:hover { background: var(--green); color: #fff; }
.btn--outline { background: transparent; color: var(--green); border: 1.5px solid var(--line); }
.btn--outline:hover { border-color: var(--green); }
.btn--phone { background: var(--green-50); color: var(--green); padding: 9px 14px; font-size: 14px; }
.btn--phone:hover { background: #e2ebe4; }
.btn .i { font-size: 1.05em; }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-weight: 800; font-size: 20px; color: var(--green); letter-spacing: -.02em; }
.logo span { color: var(--gold); }
.header__right { display: flex; align-items: center; gap: 12px; }
.header__scarcity { font-size: 13px; color: var(--muted); font-weight: 600; }
.header__scarcity::before { content: "🟢"; margin-right: 5px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lang-btn { background: #fff; border: 0; padding: 7px 11px; font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer; }
.lang-btn.is-active { background: var(--green); color: #fff; }

/* ============ Hero ============ */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background: url('../assets/renders/facade-10.jpg') center/cover no-repeat;
  transform: scale(1.04);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21, 48, 31, .55) 0%, rgba(21, 48, 31, .35) 35%, rgba(21, 48, 31, .82) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 90px 18px; max-width: 760px; }
.badge { display: inline-block; background: var(--gold); color: #2a2208; font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero__title { font-size: clamp(30px, 6.5vw, 56px); line-height: 1.07; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero__subtitle { font-size: clamp(16px, 2.6vw, 20px); margin-top: 18px; max-width: 600px; color: #eef3ef; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ============ Trust bar ============ */
.trust { background: var(--green); color: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 26px 18px; text-align: center; }
.trust__item { padding: 8px; }
.trust__item b { display: block; font-size: clamp(18px, 3vw, 26px); font-weight: 800; color: var(--gold); }
.trust__item span { font-size: 13px; color: #cdd8d0; }

/* ============ Catalog ============ */
.catalog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 4/3; background: var(--bg-soft); cursor: zoom-in; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--plain { display: flex; align-items: center; justify-content: center; font-size: 44px; color: var(--green-50); }
.card__badge { position: absolute; top: 12px; left: 12px; background: #e8483a; color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: 21px; font-weight: 800; color: var(--green); }
.card__meta { color: var(--muted); font-size: 14px; }
.card__price { font-size: 20px; font-weight: 800; color: var(--ink); margin-top: 4px; }
.card__perSqm { font-size: 13px; color: var(--muted); font-weight: 600; }
.card .btn { margin-top: auto; width: 100%; }

/* ============ Location ============ */
.location { background: var(--bg-soft); }
.location__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; margin-top: 28px; align-items: center; }
.location__text p { color: var(--muted); font-size: 17px; }
.location__icons { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.location__icons li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.location__map { aspect-ratio: 16/11; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #dfe6e0; }
.location__map iframe { width: 100%; height: 100%; border: 0; }

/* ============ Terms ============ */
.terms__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.term { background: var(--green-50); border-radius: var(--radius); padding: 28px 22px; text-align: center; }
.term__icon { font-size: 34px; }
.term__value { font-size: 22px; font-weight: 800; color: var(--green); margin: 8px 0 2px; }
.term__label { color: var(--muted); font-size: 14px; }

/* ============ Gallery ============ */
.gallery__viewport { position: relative; margin-top: 30px; }
.gallery__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.gallery__track::-webkit-scrollbar { height: 6px; }
.gallery__track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
.gallery__slide { flex: 0 0 auto; width: min(78%, 520px); scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: var(--bg-soft); cursor: zoom-in; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 26px; line-height: 1; color: var(--green); cursor: pointer; display: none; }
.gallery__nav--prev { left: -10px; }
.gallery__nav--next { right: -10px; }

/* ============ Developer ============ */
.developer__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.developer__name { font-size: 22px; font-weight: 800; color: var(--gold-dark); margin: 14px 0 8px; }
.developer__inner p:last-child { color: var(--muted); }

/* ============ FAQ ============ */
.faq__list { margin-top: 26px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; background: none; border: 0; text-align: left; font-family: var(--font); font-size: 17px; font-weight: 700; color: var(--ink); padding: 20px 40px 20px 0; cursor: pointer; position: relative; }
.faq__q::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--gold-dark); transition: transform .2s; }
.faq__item.is-open .faq__q::after { content: "−"; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s cubic-bezier(.2,.7,.2,1); color: var(--muted); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { overflow: hidden; padding: 0 0 20px; }

/* ============ Final CTA ============ */
.final-cta { background: linear-gradient(135deg, var(--green) 0%, var(--green-700) 100%); color: #fff; padding: 72px 0; text-align: center; }
.final-cta__title { font-size: clamp(26px, 5vw, 40px); font-weight: 800; }
.final-cta__buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }
.final-cta .btn--ghost-dark { color: #fff; border-color: rgba(255, 255, 255, .6); }
.final-cta .btn--ghost-dark:hover { background: #fff; color: var(--green); }
.final-cta__socials { display: flex; gap: 18px; justify-content: center; margin-top: 26px; }
.final-cta__socials a { color: #cdd8d0; font-weight: 600; font-size: 14px; }
.final-cta__socials a:hover { color: var(--gold); }

/* ============ Footer ============ */
.footer { background: var(--green-700); color: #9fb0a4; padding: 22px 0; font-size: 13px; }
.footer__inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a:hover { color: var(--gold); }

/* ============ Floating + sticky ============ */
.float-tg {
  position: fixed; right: 18px; bottom: 84px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #229ED9; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(34, 158, 217, .5); transition: transform .15s;
}
.float-tg:hover { transform: scale(1.08); }
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
  display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px;
}
.sticky-bar__info { display: flex; flex-direction: column; line-height: 1.25; }
.sticky-bar__info strong { color: var(--green); font-size: 16px; }
.sticky-bar__info span { font-size: 12px; color: var(--muted); }

/* ============ Lightbox ============ */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 22, 16, .9); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 95%; max-height: 90%; border-radius: 10px; }
.lightbox__close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; line-height: 1; }

/* ============ Responsive ============ */
@media (min-width: 900px) {
  .gallery__nav { display: flex; }
}
@media (max-width: 860px) {
  .catalog__grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .terms__grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .location__grid { grid-template-columns: 1fr; }
  .location__map { order: -1; }
}
@media (max-width: 760px) {
  .header__scarcity, .btn--phone span:not(.i) { display: none; }
  .sticky-bar { display: flex; }
  .float-tg { bottom: 78px; }
  body { padding-bottom: 70px; }
}
@media (max-width: 460px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .hero__cta .btn { flex: 1; }
}

/* ============================================================
   REFINED THEME + MOTION (override layer)
   One accent (gold) over the green base. Motion resolves, never loops.
   ============================================================ */
:root {
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --gold-soft: #e8d9a8;
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Display serif on headings ---- */
.hero__title,
.section__title,
.final-cta__title,
.card__title,
.developer__name { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }
.hero__title { font-weight: 700; }
h1, h2, h3 { text-wrap: balance; }

/* ---- Keyframes (all resolve to a rest state) ---- */
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.12); } }
@keyframes shimmer { from { left: -60%; } to { left: 140%; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---- Quiet background wash (single warm tint, static) ---- */
body { background:
    radial-gradient(820px 480px at 108% -6%, rgba(201, 168, 76, .07), transparent 60%),
    #ffffff;
  background-attachment: fixed;
}

/* ---- Hero: one slow settle, single tonal overlay ---- */
.hero__bg { animation: kenburns 22s var(--ease-out) forwards; }
.hero__overlay {
  background: linear-gradient(180deg, rgba(13, 38, 24, .50) 0%, rgba(13, 38, 24, .34) 40%, rgba(13, 38, 24, .86) 100%);
}
.hero__content > * { opacity: 0; animation: fadeUp .7s var(--ease-out) forwards; }
.hero__content .badge { animation-delay: .05s; }
.hero__content .hero__title { animation-delay: .16s; }
.hero__content .hero__subtitle { animation-delay: .28s; }
.hero__content .hero__cta { animation-delay: .40s; }

/* ---- Badge: solid gold, no pulse ---- */
.badge { background: var(--gold); color: #2a2208; }

/* ---- Primary button: gold fill, shimmer only on hover ---- */
.btn--primary {
  background: linear-gradient(135deg, #ffd34e 0%, #e7b53a 45%, #c9a84c 100%);
  position: relative; overflow: hidden;
}
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-18deg); opacity: 0;
}
.btn--primary:hover::after { animation: shimmer .9s var(--ease-out); }
.btn--primary:hover { box-shadow: 0 12px 26px rgba(201, 168, 76, .45); transform: translateY(-2px); }

/* ---- Trust bar: static deep-green ---- */
.trust { background: linear-gradient(120deg, var(--green-700), var(--green)); }
.trust__item { font-size: 15px; font-weight: 600; color: #e7efe9; }
.trust__item b { display: inline; font-size: 1.05em; color: var(--gold); }

/* ---- Section titles: solid gold underline ---- */
.section__title { position: relative; display: inline-block; }
.section__title::after {
  content: ""; position: absolute; left: 0; bottom: -10px; width: 48px; height: 3px; border-radius: 3px;
  background: var(--gold);
}

/* ---- Cards: thin gold reveal bar, restrained hover ---- */
.card { position: relative; }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.card:hover::before { transform: scaleX(1); }
.card:hover { box-shadow: var(--shadow-lg); }
.card__badge { background: var(--coral, #e8483a); }
.card__media img { transition: transform .5s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.05); }
.card__price { color: var(--green); }

/* ---- Location / Terms: soft single tint ---- */
.location { background: var(--bg-soft); }
.location__icons li { transition: transform .2s, border-color .2s, background .2s; }
.location__icons li:hover { transform: translateY(-2px); border-color: var(--gold); background: #fff; }
.term { background: var(--green-50); border: 1px solid var(--line); transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.term:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.term__icon { display: inline-block; }

/* ---- Portfolio (developer) ---- */
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; text-align: left; }
.portfolio__card { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: zoom-in; }
.portfolio__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.portfolio__card:hover img { transform: scale(1.05); }
.portfolio__card:hover { box-shadow: var(--shadow-lg); }
.portfolio__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px; background: linear-gradient(180deg, transparent 40%, rgba(13, 38, 24, .82) 100%); }
.portfolio__tag { align-self: flex-start; background: var(--gold); color: #2a2208; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.portfolio__name { color: #fff; font-size: 18px; font-weight: 700; font-family: var(--font-display); text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
@media (max-width: 760px) { .portfolio { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }

/* ---- FAQ hover ---- */
.faq__q { transition: color .2s; }
.faq__q:hover { color: var(--gold-dark); }

/* ---- Final CTA: static deep gradient + soft gold glow ---- */
.final-cta {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-700) 100%);
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; width: 460px; height: 460px; top: -160px; right: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, .28), transparent 65%);
}
.final-cta__inner { position: relative; z-index: 1; }

/* ---- Floating Telegram: hover only, no perpetual motion ---- */
.float-tg { transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.float-tg:hover { transform: scale(1.08); box-shadow: 0 12px 28px rgba(34, 158, 217, .55); }

.sticky-bar { background: #fff; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); will-change: opacity, transform; }
.reveal--in { opacity: 1; transform: none; }

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__content > * { opacity: 1 !important; }
}
