:root {
  --bg: #faf9f7;
  --bg-alt: #f0efec;
  --text: #1f2937;
  --text-soft: #55606e;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-soft: #ccfbf1;
  --white: #ffffff;
  --border: #e5e2dc;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --font:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--text);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px;
  border-radius: 999px;
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.lang-btn:hover {
  color: var(--white);
}
.lang-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--text);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: relative;
  width: 100%;
  padding: 120px 0 44px;
  color: var(--white);
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0) 0%,
    rgba(15, 23, 42, 0.45) 55%,
    rgba(15, 23, 42, 0.78) 100%
  );
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.2;
}
.tagline {
  margin: 0 0 16px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.95;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.chip {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.9rem;
  font-weight: 600;
}
.chip-price {
  background: var(--accent);
  border-color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.btn:hover {
  background: var(--accent-dark);
}
.btn-big {
  font-size: 1.15rem;
  padding: 14px 34px;
}

/* Sections */
.section {
  padding: 56px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section h2 {
  margin: 0 0 24px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.25;
}
.section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 10px;
}

/* About (content from structured README version) */
.about p {
  margin: 0 0 16px;
}
.about p:has(+ ul) {
  font-weight: 700;
  color: var(--accent-dark);
  margin: 28px 0 10px;
}
.about ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.about li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.about li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-right: 10px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.g-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.g-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}
.g-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.g-item figcaption {
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--text-soft);
  text-align: center;
}

/* Docs (floor plan + PENB) */
.docs {
  display: grid;
  gap: 20px;
}
.doc img {
  aspect-ratio: auto;
  max-height: 620px;
  object-fit: contain;
  background: var(--white);
  display: block;
}
/* PENB is vertical — narrow and center it */
.doc--penb img {
  width: min(100%, 440px);
  margin: 0 auto;
}

/* Alternative ad versions */
.version {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 0 14px;
  overflow: hidden;
}
.version summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-dark);
  padding: 14px 18px;
  user-select: none;
}
.version summary:hover {
  background: var(--bg-alt);
}
.version-body {
  padding: 0 18px 16px;
  color: var(--text-soft);
}
.version-body p {
  margin: 10px 0;
}
.version-body strong {
  color: var(--text);
}

/* Contact */
.contact {
  text-align: center;
}
.contact p {
  margin: 0 0 22px;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.75);
  padding: 28px 0;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer p {
  margin: 4px 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 16, 0.93);
  padding: 24px;
}
.lightbox.open {
  display: flex;
}
.lb-img {
  max-width: min(92vw, 1400px);
  max-height: 84vh;
  border-radius: 8px;
  object-fit: contain;
}
.lb-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  color: #e5e7eb;
  padding: 0 80px;
}
.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lb-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lb-prev {
  left: 16px;
}
.lb-next {
  right: 16px;
}
.lb-close {
  top: 16px;
  transform: none;
  right: 16px;
  font-size: 1.5rem;
}
body.lb-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .section {
    padding: 40px 0;
  }
  .hero {
    min-height: 360px;
  }
  .lb-caption {
    padding: 0 16px;
    bottom: 12px;
  }
  .lb-prev {
    left: 8px;
  }
  .lb-next {
    right: 8px;
  }
  .lb-btn {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
