:root {
  --paper: #f5f1e8;
  --paper-2: #ece6da;
  --ink: #18201c;
  --muted: #6a6d66;
  --line: #d9d0bf;
  --panel: #fffaf0;
  --panel-strong: #26352f;
  --green: #426b55;
  --blue: #456f91;
  --amber: #b8752a;
  --danger: #9f3b2f;
  --shadow: 0 18px 48px rgb(37 43 38 / 12%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

body.has-lightbox {
  overflow: hidden;
}

body[data-lang="pl"] .lang-en,
body[data-lang="en"] .lang-pl {
  display: none !important;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  background: rgb(24 32 28 / 92%);
  color: #fffaf0;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgb(255 255 255 / 40%);
  background: var(--amber);
  color: #fff;
  font-size: 13px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
}

.site-nav a {
  padding: 10px 0;
  color: rgb(255 250 240 / 82%);
  text-decoration: none;
}

.site-nav a:hover {
  color: #fff;
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 8%);
}

.lang-toggle {
  min-width: 42px;
  height: 32px;
  border: 0;
  background: transparent;
  color: rgb(255 250 240 / 72%);
  cursor: pointer;
  font: 700 13px ui-sans-serif, system-ui, sans-serif;
}

.lang-toggle.is-active {
  background: #fffaf0;
  color: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: calc(92svh - 68px);
  padding: min(14vh, 120px) clamp(22px, 6vw, 88px) clamp(54px, 7vw, 96px);
  overflow: hidden;
  color: #fffaf0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(13 18 15 / 88%) 0%, rgb(13 18 15 / 62%) 42%, rgb(13 18 15 / 18%) 100%),
    url("/assets/photo-hmo/kitchen-view-3.jpg") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -1;
  background: linear-gradient(0deg, var(--paper), transparent);
}

.hero-content {
  max-width: 870px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font: 700 13px/1.4 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: .98;
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(48px, 8vw, 104px);
}

.hero-copy {
  max-width: 700px;
  margin: 26px 0 0;
  color: rgb(255 250 240 / 88%);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.38;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font: 700 14px ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--amber);
  color: #fff;
}

.button.primary:hover {
  background: #985f20;
}

.button.secondary {
  border-color: rgb(255 250 240 / 42%);
  color: #fffaf0;
}

.button.secondary:hover {
  background: rgb(255 255 255 / 10%);
}

.band,
.banded {
  background: var(--paper-2);
}

.snapshot {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 124px;
  padding: 26px clamp(18px, 4vw, 42px);
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font: 700 12px ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
}

.metric strong {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.section {
  padding: clamp(64px, 9vw, 116px) clamp(22px, 6vw, 88px);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 900px;
  font-size: clamp(36px, 5.5vw, 72px);
}

.section-heading h1 {
  max-width: 900px;
  font-size: 64px;
}

.section-heading p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.finance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel h3 {
  margin: 0 0 20px;
  font-size: 22px;
}

.rows {
  display: grid;
  gap: 12px;
}

.rows div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 14px/1.4 ui-sans-serif, system-ui, sans-serif;
}

.rows strong {
  color: var(--ink);
  text-align: right;
}

.accent-panel {
  background: var(--panel-strong);
  color: #fffaf0;
}

.accent-panel p {
  color: rgb(255 250 240 / 76%);
}

.room-size-note {
  margin: 18px 0 0;
  color: var(--muted);
  font: 13px/1.45 ui-sans-serif, system-ui, sans-serif;
}

.big-number {
  margin: 22px 0 10px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: .92;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(320px, 1.22fr);
  align-items: start;
  gap: clamp(28px, 6vw, 80px);
}

.split-section.reverse {
  grid-template-columns: minmax(320px, 1.18fr) minmax(0, .82fr);
}

.split-section.reverse .section-heading {
  order: 2;
}

.media-frame {
  margin: 0;
  border: 1px solid var(--line);
  background: #111;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.media-frame img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.placeholder-grid div {
  min-height: 132px;
  display: grid;
  align-items: end;
  padding: 18px;
  border: 1px dashed rgb(66 107 85 / 55%);
  color: var(--green);
  font: 700 15px ui-sans-serif, system-ui, sans-serif;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.gallery-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item button {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-feature img {
  min-height: 100%;
  aspect-ratio: 4 / 3;
}

.gallery figcaption {
  min-height: 54px;
  padding: 14px 16px 16px;
  color: var(--muted);
  font: 700 13px/1.35 ui-sans-serif, system-ui, sans-serif;
}

.gallery-item button:hover img {
  filter: saturate(1.08) contrast(1.04);
}

.video-note {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.video-note strong {
  font-size: 24px;
}

.video-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.video-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .45fr);
  gap: 18px;
  margin-top: 18px;
}

.video-player {
  display: grid;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0e1310;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-current-copy {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 3vw, 28px);
}

.video-current-copy .eyebrow {
  margin: 0;
}

.video-current-copy h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.video-current-copy p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.video-timeline {
  display: grid;
  gap: 10px;
}

.video-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 4px 14px;
  align-content: center;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.video-step span:first-child {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(184 117 42 / 34%);
  background: rgb(184 117 42 / 10%);
  color: var(--amber);
  font: 700 13px ui-sans-serif, system-ui, sans-serif;
}

.video-step strong {
  align-self: end;
  font: 700 18px/1.2 Georgia, "Times New Roman", serif;
}

.video-step small {
  align-self: start;
  color: var(--muted);
  font: 700 12px/1.35 ui-sans-serif, system-ui, sans-serif;
}

.video-step:hover,
.video-step.is-active {
  border-color: rgb(184 117 42 / 72%);
  background: var(--panel-strong);
  color: #fffaf0;
}

.video-step:hover small,
.video-step.is-active small {
  color: rgb(255 250 240 / 70%);
}

.video-step:hover span:first-child,
.video-step.is-active span:first-child {
  border-color: rgb(255 250 240 / 32%);
  background: var(--amber);
  color: #fff;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 78px clamp(18px, 5vw, 72px) 40px;
  background: rgb(13 18 15 / 92%);
  color: #fffaf0;
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  display: grid;
  gap: 12px;
  max-width: min(1180px, 86vw);
  max-height: 86vh;
  margin: 0;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 74vh;
  margin: 0 auto;
  border: 1px solid rgb(255 250 240 / 24%);
  object-fit: contain;
  box-shadow: 0 24px 80px rgb(0 0 0 / 34%);
}

.lightbox figcaption {
  color: rgb(255 250 240 / 80%);
  font: 700 14px ui-sans-serif, system-ui, sans-serif;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgb(255 250 240 / 28%);
  background: rgb(255 250 240 / 8%);
  color: #fffaf0;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
}

.lightbox-close {
  top: 18px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);
  font-size: 48px;
  line-height: 1;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgb(255 250 240 / 18%);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  counter-increment: process;
  font: 700 16px ui-sans-serif, system-ui, sans-serif;
}

.process-list li::before {
  content: counter(process, decimal-leading-zero);
  display: block;
  margin-bottom: 28px;
  color: var(--amber);
}

.form-section {
  background: var(--panel-strong);
  color: #fffaf0;
}

.form-cta-section {
  background: var(--panel-strong);
  color: #fffaf0;
}

.form-cta-section .section-heading {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.form-cta-section .section-heading p:not(.eyebrow),
.form-section .section-heading p:not(.eyebrow) {
  color: rgb(255 250 240 / 74%);
}

.form-cta-section .section-heading p:not(.eyebrow) {
  margin-right: auto;
  margin-left: auto;
}

.form-cta-section .button {
  margin-top: 8px;
}

.enquiry-page {
  background: var(--panel-strong);
}

.enquiry-form-section {
  min-height: calc(100svh - 68px);
  padding-top: 72px;
}

.enquiry-form-section .section-heading {
  margin-right: auto;
  margin-bottom: 30px;
  margin-left: auto;
  text-align: center;
}

.enquiry-form-section .section-heading p:not(.eyebrow) {
  margin-right: auto;
  margin-left: auto;
}

.enquiry-form-section .investor-form {
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.investor-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
}

.investor-form label {
  display: grid;
  gap: 8px;
  font: 700 13px ui-sans-serif, system-ui, sans-serif;
}

.investor-form input,
.investor-form select,
.investor-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgb(255 250 240 / 22%);
  background: rgb(255 250 240 / 9%);
  color: #fffaf0;
  padding: 12px;
  font: 15px ui-sans-serif, system-ui, sans-serif;
}

.investor-form textarea {
  resize: vertical;
}

.investor-form option {
  color: var(--ink);
}

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

.check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 12px !important;
  color: rgb(255 250 240 / 86%);
  font-weight: 500 !important;
}

.check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.privacy {
  margin: 0;
  color: rgb(255 250 240 / 66%);
  font: 13px/1.5 ui-sans-serif, system-ui, sans-serif;
}

.hp-field {
  position: absolute;
  left: -100vw;
}

.form-status {
  min-height: 24px;
  color: #fffaf0;
  font: 700 14px ui-sans-serif, system-ui, sans-serif;
}

.form-status.error {
  color: #ffd3c9;
}

.form-status.success {
  color: #d7f2df;
}

.site-footer {
  padding: 24px clamp(22px, 6vw, 88px);
  background: #141a17;
  color: rgb(255 250 240 / 72%);
  font: 14px ui-sans-serif, system-ui, sans-serif;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    display: none;
  }

  .snapshot,
  .finance-grid,
  .placeholder-grid,
  .gallery,
  .process-list,
  .investor-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-feature {
    grid-column: span 2;
  }

  .split-section,
  .split-section.reverse,
  .video-stage {
    grid-template-columns: 1fr;
  }

  .split-section.reverse .section-heading {
    order: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
    padding: 0 14px;
    gap: 10px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: calc(88svh - 64px);
    padding: 84px 20px 42px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .section-heading h1 {
    font-size: 42px;
  }

  .section {
    padding: 58px 20px;
  }

  .snapshot,
  .finance-grid,
  .placeholder-grid,
  .gallery,
  .process-list,
  .enquiry-form-section .investor-form,
  .investor-form {
    grid-template-columns: 1fr;
  }

  .gallery-feature {
    grid-column: auto;
    grid-row: auto;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .video-note {
    grid-template-columns: 1fr;
  }

  .video-step {
    min-height: 92px;
  }

  .lightbox {
    padding: 76px 14px 26px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-prev {
    left: 18px;
  }

  .lightbox-next {
    right: 18px;
  }
}
