/* Cool daylight · renovation canvas — Trenčín / Dlhé hony */
:root {
  --ink: #1a2430;
  --ink-soft: #3d4a58;
  --muted: #5e6b78;
  --paper: #eef2f5;
  --paper-deep: #e2e8ee;
  --white: #fafbfc;
  --accent: #2a5566;
  --accent-hover: #1e3f4c;
  --accent-soft: #c8d6de;
  --wood: #7a6548;
  --mint: #8fa9a3;
  --line: rgba(26, 36, 48, 0.12);
  --font-display: "Syne", "Trebuchet MS", sans-serif;
  --font-body: "Source Sans 3", "Trebuchet MS", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --wrap: min(68rem, calc(100% - 2 * var(--space)));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  line-height: 1.65;
  background:
    radial-gradient(120% 80% at 10% -10%, #d5e3ea 0%, transparent 55%),
    radial-gradient(90% 60% at 100% 20%, #e8ebe4 0%, transparent 45%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
}

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

a {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.wrap--narrow {
  max-width: 36rem;
  margin-inline: auto;
}

.wrap--split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 820px) {
  .wrap--split {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Wide panorama: keep sky + rooftops; crop balcony railing first */
  object-position: center 32%;
  transform: scale(1.08);
  animation: hero-drift 22s var(--ease) infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.08) translate3d(1.2%, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.8%, -0.6%, 0);
  }
}

@media (max-width: 640px) {
  .hero__img {
    /* Tall phones crop sides hard — bias slightly left toward autumn canopy */
    object-position: 42% 28%;
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(12, 22, 32, 0.22) 0%,
      rgba(12, 22, 32, 0.18) 38%,
      rgba(12, 22, 32, 0.55) 68%,
      rgba(12, 22, 32, 0.82) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 7vw, 5rem);
  animation: rise-in 1s var(--ease) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.2rem + 2.8vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

.hero__title {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.hero__lead {
  margin: 0 0 1.5rem;
  max-width: 42ch;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.5;
  color: rgba(250, 251, 252, 0.88);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--white);
  color: var(--ink);
}

.btn--primary:hover {
  background: #e8eef2;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(250, 251, 252, 0.55);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(250, 251, 252, 0.08);
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section--facts {
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 11px,
      rgba(42, 85, 102, 0.035) 11px,
      rgba(42, 85, 102, 0.035) 12px
    ),
    linear-gradient(180deg, rgba(250, 251, 252, 0.72), rgba(238, 242, 245, 0.9));
}

.section--place {
  background: linear-gradient(105deg, #dfe8ee 0%, #eef2f5 48%, #e6ebe4 100%);
}

.section--story {
  position: relative;
}

.section--story::before {
  content: "";
  position: absolute;
  inset: 12% auto 12% 0;
  width: min(8px, 1.2vw);
  background: linear-gradient(180deg, var(--accent), var(--mint));
  opacity: 0.55;
}

.section--floorplan {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(42, 85, 102, 0.08), transparent 55%),
    linear-gradient(180deg, #e8eef2 0%, #f4f7f9 100%);
}

.floorplan {
  margin: 0;
}

.floorplan__open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.2rem;
  background: var(--white);
  cursor: zoom-in;
  transition: border-color 0.25s var(--ease);
}

.floorplan__open:hover,
.floorplan__open:focus-visible {
  border-color: rgba(42, 85, 102, 0.35);
}

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

.floorplan__open img {
  width: 100%;
  height: auto;
  max-height: min(70vh, 36rem);
  object-fit: contain;
  margin-inline: auto;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 15px,
      rgba(26, 36, 48, 0.03) 15px,
      rgba(26, 36, 48, 0.03) 16px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 15px,
      rgba(26, 36, 48, 0.03) 15px,
      rgba(26, 36, 48, 0.03) 16px
    ),
    #f0f3f5;
}

.floorplan figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.section--gallery {
  background: var(--white);
}

.section--contact {
  background:
    radial-gradient(80% 70% at 80% 0%, rgba(42, 85, 102, 0.1), transparent 60%),
    var(--paper);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section--facts h2 {
  font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4rem);
  font-variant-numeric: tabular-nums;
}

.section__lead {
  margin: 0 0 1.75rem;
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: clamp(1.15rem, 1.05rem + 0.3vw, 1.3rem);
  line-height: 1.55;
}

.facts {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 700px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

.facts__item {
  display: grid;
  grid-template-columns: minmax(6.5rem, 8rem) 1fr;
  gap: 0.75rem 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.facts__item dt {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts__item dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.address {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 500;
}

.text-link {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1em;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.text-link:hover {
  color: var(--accent-hover);
}

.place-photo {
  margin: 0;
}

.place-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.2rem;
}

.place-photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.story-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}

.story-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.35rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.story-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  opacity: 0.7;
}

/* —— Gallery —— */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
}

@media (min-width: 960px) {
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery__item {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper-deep);
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 0.15rem;
  text-align: left;
  color: inherit;
  font: inherit;
  animation: gallery-in 0.7s var(--ease) both;
}

.gallery__item:nth-child(1) { animation-delay: 0.02s; }
.gallery__item:nth-child(2) { animation-delay: 0.06s; }
.gallery__item:nth-child(3) { animation-delay: 0.1s; }
.gallery__item:nth-child(4) { animation-delay: 0.14s; }
.gallery__item:nth-child(5) { animation-delay: 0.18s; }
.gallery__item:nth-child(6) { animation-delay: 0.22s; }
.gallery__item:nth-child(n + 7) { animation-delay: 0.26s; }

@keyframes gallery-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__img,
  .hero__content,
  .gallery__item {
    animation: none !important;
  }

  .hero__img {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.gallery__item--wide {
  grid-column: 1 / -1;
}

.gallery__item--wide img {
  aspect-ratio: 21 / 9;
  object-position: center 35%;
}

.gallery__item--plan img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  background: #eef1f3;
  padding: 0.5rem;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.04);
}

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

.gallery__cap {
  display: block;
  padding: 0.55rem 0.65rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--white);
}

/* —— Contact —— */
.contact-line {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 500;
}

.placeholder {
  color: var(--wood);
  border-bottom: 1px dashed rgba(122, 101, 72, 0.55);
  text-decoration: none;
}

a.placeholder:hover {
  color: var(--accent);
}

.contact-hint {
  margin: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-hint code {
  font-size: 0.85em;
}

/* —— Footer —— */
.footer {
  padding: 2rem 0 2.75rem;
  border-top: 1px solid var(--line);
  background: #e6ebf0;
}

.footer__brand {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.footer__note {
  margin: 0;
  max-width: 40rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* —— Lightbox —— */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(12, 18, 26, 0.92);
  color: var(--white);
}

.lightbox__figure {
  margin: 0;
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.lightbox__img {
  max-height: calc(100dvh - 5rem);
  max-width: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 0.15rem;
}

.lightbox__cap {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(250, 251, 252, 0.8);
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  opacity: 0.85;
  transition: opacity 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  opacity: 1;
}

.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 2rem;
  z-index: 2;
}

@media (max-width: 640px) {
  .lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    padding: 3rem 0.75rem 1rem;
  }

  .lightbox__nav {
    position: absolute;
    bottom: 1rem;
  }

  .lightbox__nav--prev {
    left: 0.75rem;
  }

  .lightbox__nav--next {
    right: 0.75rem;
  }

  .lightbox__figure {
    grid-row: 1;
  }
}
