/* ============================================================
   RESIDENCE GARDENIA — Premium real-estate landing page
   Vanilla CSS · fully responsive · no external branding
   ============================================================ */

:root {
  --ink:        #161412;   /* near-black espresso  */
  --ink-soft:   #2a2622;
  --paper:      #f6f3ee;   /* warm off-white       */
  --paper-2:    #efeae1;
  --gold:       #b08d57;   /* brass accent         */
  --gold-deep:  #94733f;
  --line:       #e2dccf;
  --muted:      #7c756b;
  --white:      #ffffff;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1200px;
  --radius: 4px;
  --shadow: 0 18px 50px -20px rgba(22, 20, 18, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Section headers ---------- */
.section-head { margin-bottom: 32px; }
.section-head__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-head__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}
.btn--block { width: 100%; }

/* Dark secondary button (used on light backgrounds) */
.btn--dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn--dark:hover {
  background: #000;
  border-color: #000;
  transform: translateY(-2px);
}

/* ============================================================
   SITE HEADER (slim, sticky)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(22, 20, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
}
.site-header__brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.site-header__brand span { color: var(--gold); }
.site-header__nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.site-header__nav a {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.3s, color 0.3s;
}
.site-header__nav a:hover { color: var(--gold); opacity: 1; }
.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold);
  white-space: nowrap;
}
.site-header__phone svg { flex-shrink: 0; }

/* ============================================================
   SHOWCASE (main photo + "view all photos")
   ============================================================ */
.showcase {
  background: var(--ink);
  padding-bottom: 12px;
}
.showcase__stage {
  position: relative;
  background: #2a2622;
}
.showcase__img {
  display: block;
  width: 100%;
  height: min(54vh, 580px);
  object-fit: cover;
  cursor: zoom-in;
}
.showcase__all {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--white);
  background: rgba(22, 20, 18, 0.7);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}
.showcase__all:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.showcase__count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 0.72rem;
  background: rgba(255,255,255,0.22);
  border-radius: 11px;
}

/* Thumbnail strip under the main photo */
.showcase__thumbs {
  display: flex;
  gap: 10px;
  padding: 14px 0 2px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.showcase__thumbs::-webkit-scrollbar { height: 6px; }
.showcase__thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 3px; }
.showcase__thumb {
  flex: 0 0 auto;
  width: 104px;
  height: 68px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.55;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease);
}
.showcase__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase__thumb:hover { opacity: 1; }
.showcase__thumb.is-active { opacity: 1; border-color: var(--gold); }

/* ============================================================
   LEAD (key info, directly under the photo)
   ============================================================ */
.lead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.lead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px 40px;
  padding: 28px 24px;
}
.lead__head { flex: 1 1 420px; }
.lead__eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 10px;
}
.lead__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.lead__meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* ============================================================
   DESCRIPTION
   ============================================================ */
.description { padding: 22px 0 56px; border-top: 1px solid var(--line); }
.description__layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}
.description__text p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  margin-top: 20px;
  max-width: 62ch;
}
.description__text .section-head__title { margin-bottom: 8px; }

/* Collapsible body — clamp to ~7 lines with "виж повече" toggle */
.description__body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  overflow: hidden;
}
.description__body.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
}
.description__body p:first-child { margin-top: 14px; }
.description__more {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gold-deep);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.description__more:hover { color: var(--gold); }
.description__more::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.description__more[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }

.highlight-card {
  background: var(--ink);
  color: var(--white);
  padding: 40px 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 32px;
}
.highlight-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 22px;
}
.highlight-card ul { list-style: none; margin-bottom: 30px; }
.highlight-card li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.96rem;
  padding-left: 26px;
  position: relative;
}
.highlight-card li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.85rem;
}
.highlight-card li:last-child { border-bottom: none; }

/* ============================================================
   PARAMETERS
   ============================================================ */
.params { padding: 24px 0 34px; background: var(--paper); }
.params__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 30px;
}
.params__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  gap: 22px 56px;
  max-width: 860px;
}
.param {
  display: flex;
  align-items: center;
  gap: 14px;
}
.param__icon {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--gold);
}
.param__icon svg { width: 26px; height: 26px; }
.param__text {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ============================================================
   ADVANTAGES
   ============================================================ */
.advantages { padding: 32px 0 64px; }
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.advantage {
  padding: 38px 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.advantage:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.advantage__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--gold-deep);
  font-size: 1.3rem;
  margin-bottom: 22px;
}
.advantage h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.advantage p { color: var(--muted); font-size: 0.98rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: 64px 0; background: var(--paper-2); }
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact__lead {
  color: var(--ink-soft);
  font-size: 1.06rem;
  margin: 10px 0 34px;
  max-width: 40ch;
}
.contact__list { list-style: none; display: grid; gap: 18px; }
.contact__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
}
.contact__list-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
  border-radius: 50%;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact__list a:hover { color: var(--gold-deep); }

.contact__form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176,141,87,0.16);
}
.contact__form-note {
  margin-top: 14px;
  font-size: 0.9rem;
  min-height: 1.2em;
  color: var(--gold-deep);
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 54px 0; }
.footer__inner { text-align: center; display: grid; gap: 8px; }
.footer__brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  color: var(--white);
}
.footer__text { font-size: 0.92rem; }
.footer__copy { font-size: 0.78rem; opacity: 0.6; letter-spacing: 0.06em; }

/* ============================================================
   STICKY MOBILE CONTACT BAR
   ============================================================ */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;            /* persistent CTA on all screen sizes */
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 -10px 30px -12px rgba(0,0,0,0.5);
}
/* Reserve space so the fixed bar never overlaps the footer */
body { padding-bottom: 60px; }
.sticky-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.sticky-bar__btn--call { background: var(--gold); }
.sticky-bar__btn--mail { background: var(--ink); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(14, 12, 10, 0.94);
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.lightbox__close {
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}
.lightbox__nav--prev { left: 26px; }
.lightbox__nav--next { right: 26px; }
.lightbox__close:hover,
.lightbox__nav:hover { background: var(--gold); border-color: var(--gold); }
.lightbox__counter {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .description__layout { grid-template-columns: 1fr; gap: 40px; }
  .highlight-card { position: static; }
  .contact__layout { grid-template-columns: 1fr; gap: 40px; }
  .advantages__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-header__nav { display: none; }
  /* Fit brand + phone in the header on small phones */
  .site-header__inner { justify-content: space-between; gap: 12px; padding-left: 16px; padding-right: 16px; }
  .site-header__brand { font-size: 1rem; letter-spacing: 0.06em; }
  .site-header__phone { font-size: 0.8rem; gap: 6px; }
  .site-header__phone svg { width: 14px; height: 14px; }
  .contact { padding: 48px 0; }
  .advantages { padding: 10px 0 48px; }
  .params { padding: 18px 0 26px; }
  .description { padding: 16px 0 24px; }

  /* Showcase + lead on mobile */
  .showcase__img { height: 40vh; min-height: 240px; }
  .showcase__all { right: 14px; bottom: 14px; padding: 10px 14px; font-size: 0.74rem; }
  .showcase__thumb { width: 84px; height: 56px; }
  .lead__inner { padding: 22px 22px; }

  /* Parameters stay in 2 columns on small screens */
  .params__grid { gap: 16px 22px; max-width: none; }
  .param { gap: 10px; }
  .param__text { font-size: 0.92rem; }
  .param__icon svg { width: 22px; height: 22px; }
  .advantages__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact__form { padding: 28px 22px; }
}

@media (max-width: 400px) {
  .site-header__brand { font-size: 0.9rem; letter-spacing: 0.03em; }
  .site-header__phone { font-size: 0.74rem; }
}

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