/* City Art Luxury Living — site styles */

:root {
  --ink: #0f0e0d;
  --ink-2: #171513;
  --ink-3: #221f1c;
  --ivory: #f4efe6;
  --sand: #e9e1d3;
  --stone: #cfc5b4;
  --gold: #c6a15b;
  --gold-hi: #e0c48a;
  --gold-lo: #765c2c; /* darker bronze: keeps small text readable (WCAG AA) on ivory/sand */
  --text: #2a2622;
  --text-soft: #5f574d;
  --on-dark: #ece6dc;
  --on-dark-soft: #a79e91;
  --line-dark: rgba(198, 161, 91, .22);
  --line-light: rgba(42, 38, 34, .14);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- language switching ---------- */
html[lang="bg"] body [lang="en"],
html[lang="en"] body [lang="bg"] { display: none !important; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(34px, 4.6vw, 54px); }
h3 { font-size: 28px; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--focus, var(--gold-hi)); outline-offset: 3px; }
.about, .amenities, .location, .contact { --focus: var(--ink); } /* gold ring is invisible on the light sections */
main:focus { outline: none; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 22px;
  font: 600 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.eyebrow.dark { color: var(--gold-lo); }

.section { padding: var(--section) 0; }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 640px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { border-color: rgba(236, 230, 220, .45); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold-hi); color: var(--gold-hi); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark:hover { background: var(--ink-3); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled { background: rgba(15, 14, 13, .94); box-shadow: 0 1px 0 var(--line-dark); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 84px; transition: height .4s var(--ease); }
.site-header.scrolled .header-inner { height: 68px; }
.brand img { width: 150px; transition: width .4s var(--ease); }
.site-header.scrolled .brand img { width: 128px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); margin-left: auto; }
.nav a {
  font: 500 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--on-dark); padding: 8px 0; position: relative;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav .nav-cta { border: 1px solid var(--gold); color: var(--gold-hi); padding: 12px 18px; }
.nav .nav-cta:hover { background: var(--gold); color: var(--ink); }

.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; border: 1px solid var(--line-dark); }
.lang-switch button {
  background: none; border: 0; color: var(--on-dark-soft); cursor: pointer;
  font: 600 11px/1 var(--sans); letter-spacing: .14em; padding: 9px 10px;
}
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }

.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-btn i { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--on-dark); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn i:first-of-type { top: 17px; }
.menu-btn i:last-of-type { top: 26px; }
.menu-btn[aria-expanded="true"] i:first-of-type { top: 21.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-of-type { top: 21.5px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden; isolation: isolate;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%;
  z-index: -2; transform: scale(1.06); animation: hero-zoom 14s var(--ease) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(15,14,13,.9) 0%, rgba(15,14,13,.62) 42%, rgba(15,14,13,.18) 75%),
    linear-gradient(0deg, rgba(15,14,13,.75) 0%, rgba(15,14,13,0) 35%),
    linear-gradient(180deg, rgba(15,14,13,.6) 0%, rgba(15,14,13,0) 22%);
}
.hero-content { padding-top: 120px; padding-bottom: 120px; }
.hero h1 { font-size: clamp(52px, 8.4vw, 112px); line-height: .98; margin-bottom: 28px; }
.hero h1 em { color: var(--gold-hi); font-style: italic; }
.hero-lead { max-width: 470px; font-size: clamp(16px, 1.5vw, 18px); color: var(--on-dark); opacity: .88; margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badge { position: absolute; right: var(--gutter); bottom: 40px; width: 128px; mix-blend-mode: lighten; }
.hero-content > * { animation: rise 1s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .1s; }
.hero-content > :nth-child(3) { animation-delay: .2s; }
.hero-content > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- facts ---------- */
.facts { background: var(--ink-2); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 34px 20px; text-align: center; font-size: 13px; letter-spacing: .04em; color: var(--on-dark-soft); }
.fact + .fact { border-left: 1px solid var(--line-dark); }
.fact strong { display: block; font: 500 34px/1.1 var(--serif); color: var(--gold-hi); letter-spacing: 0; margin-bottom: 6px; }

/* ---------- about (light) ---------- */
.about { background: var(--ivory); color: var(--text); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.about h2 { margin-bottom: 28px; color: var(--ink); }
.about-text p { color: var(--text-soft); max-width: 520px; }
.about-media { position: relative; margin: 0 0 60px; }
.about-media > img:first-child { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.about-inset {
  position: absolute; left: -48px; bottom: -60px; width: 38%;
  aspect-ratio: 2 / 3; object-fit: cover; border: 10px solid var(--ivory);
}

/* ---------- accommodation (dark) ---------- */
.stay { background: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--ink-2); border: 1px solid var(--line-dark); display: flex; flex-direction: column; }
.card-img { overflow: hidden; aspect-ratio: 4 / 3.4; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .card:hover .card-img img { transform: scale(1.05); } }
.card-body { padding: 30px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.card h3 { color: var(--ivory); margin-bottom: 6px; }
.card .cap { font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.card-body > p:not(.cap) { color: var(--on-dark-soft); font-size: 15px; }
.note { margin: 32px 0 0; font-size: 14px; color: var(--on-dark-soft); }

/* ---------- amenities (light) ---------- */
.amenities { background: var(--sand); color: var(--text); }
.amenities h2 { color: var(--ink); }
.amenity-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light);
}
.amenity-grid li {
  display: flex; flex-direction: column; gap: 18px;
  padding: 32px 26px 34px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
  font-weight: 500; font-size: 15px; line-height: 1.45; color: var(--text);
  transition: background .3s var(--ease);
}
@media (hover: hover) { .amenity-grid li:hover { background: rgba(255, 255, 255, .35); } }
.amenity-grid svg { width: 32px; height: 32px; fill: none; stroke: var(--gold-lo); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- gallery (dark) ---------- */
.gallery { background: var(--ink); }
/* A plain grid (not CSS columns): lazy-loading works, order matches the lightbox, and Safari renders it reliably */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-grid a { display: block; aspect-ratio: 1; overflow: hidden; cursor: zoom-in; background: var(--ink-2); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
@media (hover: hover) { .gallery-grid a:hover img { transform: scale(1.04); opacity: .9; } }

/* ---------- location (light) ---------- */
.location { background: var(--ivory); color: var(--text); }
.location-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.location h2 { color: var(--ink); margin-bottom: 28px; }
.location address { font: 500 22px/1.4 var(--serif); color: var(--ink); margin-bottom: 28px; }
.nearby { list-style: none; padding: 0; margin: 0 0 36px; border-top: 1px solid var(--line-light); }
.nearby li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-light); font-size: 15px; color: var(--text-soft); }
.nearby b { font-weight: 600; color: var(--gold-lo); white-space: nowrap; }
.map { min-height: 420px; background: var(--sand); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.85) contrast(1.05); }

/* ---------- FAQ (dark) ---------- */
.faq { background: var(--ink-2); }
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 80px); }
.faq-list { border-top: 1px solid var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font: 500 22px/1.3 var(--serif); color: var(--ivory);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--on-dark-soft); padding-right: 44px; margin: -6px 0 26px; }

/* ---------- contact (light) ---------- */
.contact { background: var(--sand); color: var(--text); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.contact h2 { color: var(--ink); margin-bottom: 22px; }
.contact-info > p { color: var(--text-soft); max-width: 420px; margin-bottom: 0; }
.contact-card { background: var(--ivory); padding: clamp(28px, 4vw, 48px); box-shadow: 0 30px 60px -40px rgba(15, 14, 13, .35); }
.phone { display: inline-block; margin: 0 0 22px; font: 500 clamp(30px, 3.4vw, 40px)/1.1 var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 1px solid var(--gold); }
.quick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.quick a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--line-light); color: var(--text);
}
.quick a:hover { border-color: var(--gold-lo); color: var(--gold-lo); }
.contact-card address { color: var(--text-soft); font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding: 48px 0; font-size: 14px; color: var(--on-dark-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner img { width: 140px; }
.footer-inner a { display: inline-block; padding: 6px 0; color: var(--gold-hi); text-decoration: none; }
.copy { margin: 0; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 9, 8, .96);
  display: flex; align-items: center; justify-content: center; padding: 56px 72px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--on-dark); cursor: pointer;
  font: 300 44px/1 var(--serif); width: 56px; height: 56px;
}
.lightbox button:hover { color: var(--gold-hi); }
.lb-close { top: 10px; right: 14px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; margin: 0; font-size: 12px; letter-spacing: .2em; color: var(--on-dark-soft); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px;
    padding: 80px 40px; background: var(--ink-2); border-left: 1px solid var(--line-dark);
    transform: translateX(100%); visibility: hidden; z-index: -1;
  }
  .nav.open { transform: none; visibility: visible; }
  /* animate only when the menu is toggled, never when the window is resized/rotated */
  .nav.anim { transition: transform .45s var(--ease), visibility 0s linear .45s; }
  .nav.anim.open { transition: transform .45s var(--ease), visibility 0s; }
  html.menu-open { overflow: hidden; }
  html.menu-open body::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(10, 9, 8, .55); }
  .nav a { font-size: 15px; padding: 12px 0; }
  .nav .nav-cta { margin-top: 18px; padding: 14px 22px; }
  .header-tools { margin-left: auto; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .cards { grid-template-columns: 1fr 1fr; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { grid-template-columns: 1fr; gap: 0; }
}
/* tablet: the third card would sit alone on its row — lay it out full width, image beside text */
@media (min-width: 761px) and (max-width: 1020px) {
  .cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
  .cards > .card:last-child:nth-child(odd) .card-img { flex: 0 0 50%; aspect-ratio: auto; min-height: 280px; }
}
@media (max-width: 760px) {
  .about-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { margin: 0 0 40px 28px; }
  .about-inset { left: -28px; bottom: -40px; }
  .cards { grid-template-columns: 1fr; }
  .hero-badge { width: 92px; bottom: 24px; }
  .hero-content { padding-bottom: 140px; }
  .map, .map iframe { min-height: 340px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-grid a:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
}
@media (max-width: 480px) {
  .brand img { width: 120px; }
  .hero-actions .btn { width: 100%; }
  .amenity-grid li { padding: 24px 18px; }
  .fact { padding: 26px 12px; }
  .fact strong { font-size: 28px; }
  .lightbox { padding: 56px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 4px; transform: none; }
}
@media (max-width: 380px) {
  .fact { padding: 24px 8px; }
  .fact strong { font-size: 24px; white-space: nowrap; }
  .contact-card { padding: 24px 18px; }
  .phone { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
