:root {
  --ink: #202322;
  --muted: #66706b;
  --line: #e2d5cb;
  --paper: #ffffff;
  --soft: #f5ece4;
  --burgundy: #3b191b;
  --burgundy-dark: #170b0c;
  --clay: #7e4d45;
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 28px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  color: var(--white);
}

.project-page .site-header {
  position: fixed !important;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(23, 11, 12, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  transform: translateZ(0);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 750;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  background:
    url("assets/immovia-icon.png") center / 21px auto no-repeat,
    var(--soft);
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.header-cta {
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(20px, 7vw, 96px) 72px;
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 6, 7, 0.84), rgba(59, 25, 27, 0.38)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-mark {
  display: block;
  width: 86px;
  height: 86px;
  margin-bottom: 26px;
  border: 1px solid rgba(245, 236, 228, 0.42);
  border-radius: 24px;
  background:
    url("assets/immovia-icon.png") center / 48px auto no-repeat,
    var(--soft);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--burgundy);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 720;
}

.button.primary {
  background: var(--burgundy);
  color: var(--white);
}

.button.primary:hover {
  background: var(--burgundy-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.button.ghost {
  border-color: var(--line);
  color: var(--ink);
}

.section {
  padding: clamp(64px, 9vw, 116px) clamp(20px, 7vw, 96px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  background: var(--white);
}

.property-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.property-types span {
  border-left: 3px solid var(--burgundy);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 18px;
  font-weight: 720;
}

.project-section {
  background: var(--paper);
}

.project-hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 128px clamp(20px, 7vw, 96px) 72px;
  color: var(--white);
}

.project-hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.project-hero h1 {
  font-size: clamp(3.6rem, 10vw, 8.4rem);
}

.project-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.project-hero-meta span,
.project-hero-meta strong,
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  background: rgba(245, 236, 228, 0.93);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--burgundy);
  font-weight: 780;
}

.back-link {
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: stretch;
}

.project-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  background: var(--white);
  border-radius: 999px;
  padding: 12px 14px;
  color: var(--burgundy);
  font-weight: 780;
}

.project-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.project-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.project-summary span {
  color: var(--muted);
}

.project-summary strong {
  color: var(--burgundy);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
}

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

.unit-card {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px;
}

.unit-card p {
  margin-bottom: 18px;
}

.unit-card strong {
  color: var(--burgundy);
}

.project-info {
  background: var(--white);
}

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

.studio-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(230px, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  min-height: 240px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--soft);
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  object-fit: cover;
}

.gallery-item figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  border-radius: 999px;
  background: rgba(245, 236, 228, 0.94);
  padding: 10px 14px;
  color: var(--burgundy);
  font-weight: 800;
}

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

.detail-card {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft);
  padding: 24px;
}

.detail-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  border-radius: 16px;
  background: var(--burgundy);
  color: var(--soft);
}

.detail-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.detail-card p {
  margin-bottom: 0;
}

.availability-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.22fr);
  gap: clamp(28px, 6vw, 84px);
  background: var(--soft);
}

.unit-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
}

.unit-row {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr 0.9fr 0.8fr 1fr;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 18px;
}

.unit-row:last-child {
  border-bottom: 0;
}

.unit-row-head {
  background: var(--burgundy);
  color: var(--white);
  font-weight: 800;
}

.unit-row strong,
.unit-row span:last-child {
  color: var(--burgundy);
  font-weight: 800;
}

.unit-row-head span:last-child {
  color: var(--white);
}

.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(10, 6, 6, 0.88);
}

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

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 82vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.lightbox p {
  margin: 16px 0 0;
  color: var(--soft);
  font-weight: 800;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 236, 228, 0.4);
  border-radius: 999px;
  background: var(--soft);
  color: var(--burgundy);
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  background: var(--burgundy-dark);
  color: var(--white);
}

.trust-section p {
  color: rgba(255, 255, 255, 0.78);
}

.trust-grid {
  display: grid;
  gap: 1px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.trust-grid div {
  display: grid;
  gap: 8px;
  background: var(--burgundy-dark);
  padding: 24px;
}

.trust-grid strong {
  font-size: 1.3rem;
}

.trust-grid span {
  color: rgba(255, 255, 255, 0.72);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  background: var(--white);
}

.map-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  background: var(--white);
}

.map-section .button {
  margin-top: 12px;
}

.map-frame {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft);
}

.map-frame iframe {
  width: 100%;
  height: 430px;
  border: 0;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px clamp(20px, 7vw, 96px);
  background: var(--burgundy-dark);
  color: var(--white);
}

.footer-brand {
  display: flex;
  max-width: 680px;
  align-items: center;
  gap: 18px;
}

.footer-mark {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background:
    url("assets/immovia-icon.png") center / 36px auto no-repeat,
    var(--soft);
}

.footer-brand strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.footer-brand p,
.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.footer-copy {
  white-space: nowrap;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 14px 15px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.whatsapp {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 30;
  display: inline-flex;
  width: 56px;
  height: 56px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  background: #25d366;
  border-radius: 999px;
  padding: 0;
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

.whatsapp svg {
  width: 28px;
  height: 28px;
  margin-right: 0;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

@media (max-width: 860px) {
  .nav,
  .header-cta {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 104px;
  }

  .intro,
  .project-layout,
  .details-grid,
  .availability-section,
  .map-section,
  .trust-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .studio-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(240px, auto);
  }

  .gallery-item-large {
    grid-column: auto;
    grid-row: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-copy {
    white-space: normal;
  }

  .project-visual {
    min-height: 360px;
  }

  .project-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .property-types,
  .unit-list {
    grid-template-columns: 1fr;
  }

  .unit-table {
    gap: 12px;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .unit-row-head {
    display: none;
  }

  .unit-row {
    grid-template-columns: 1fr;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
  }

  .unit-row > * {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .unit-row > *::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 750;
  }

  .hero-actions,
  .project-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
