:root {
  color-scheme: light;
  --espresso: #10243F;
  --espresso-dark: #0F1923;
  --rust: #C9A84C;
  --ivory: #F5EFE6;
  --warm-line: #DED3C2;
  --text-brown: #2B2722;
  --muted-brown: #7A7167;
  --sand: #FBF8F3;
  --red: var(--rust);
  --red-dark: #B8893A;
  --ink: var(--espresso);
  --soft: var(--ivory);
  --line: var(--warm-line);
  --accent-contrast: #0F1923;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.65;
}

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

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

.shell {
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--red);
  color: var(--accent-contrast);
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

button,
.button,
.filter-pill,
.listing-tag {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.button:not(.secondary):not(.dark),
.filter-pill.is-active,
.listing-tag {
  color: var(--accent-contrast);
}

.sticky-enquiry .button:not(.secondary) {
  color: #ffffff !important;
}

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

.button img {
  width: 15px;
  height: 15px;
  margin-right: 8px;
}

.button:not(.secondary) img {
  filter: brightness(0) invert(1);
}

.button.secondary {
  margin-top: 10px;
  border: 1px solid var(--line);
  background: var(--sand);
  color: var(--espresso);
}

.button.secondary:hover {
  border-color: var(--red);
  color: var(--red);
}

.project-hero {
  background: linear-gradient(135deg, var(--espresso) 0%, #13294A 58%, var(--espresso-dark) 100%);
  padding: 58px 0 46px;
}

.project-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.project-title {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 600;
  line-height: 1.04;
}

.project-summary {
  margin: 18px 0 0;
  color: var(--sand);
  font-size: 15px;
  line-height: 1.8;
}

.blog-article-hero {
  min-height: 520px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  padding: 78px 0;
  text-align: center;
}

.blog-article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.blog-article-hero__content {
  max-width: 860px;
  position: relative;
  z-index: 1;
}

.blog-article-hero__meta {
  width: min(1060px, calc(100% - 36px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: absolute;
  top: 46px;
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
}

.blog-article-hero .eyebrow,
.blog-article-hero .project-summary {
  color: #ffffff;
}

.blog-article-hero .eyebrow {
  margin: 0;
}

.blog-article-hero .project-title {
  color: #ffffff;
}

.blog-article-hero__date {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.project-media {
  border: 1px solid rgba(250, 250, 246, 0.18);
  background: rgba(250, 250, 246, 0.08);
}

.project-media img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.facts-section,
.content-section {
  padding: 62px 0;
}

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

.fact-card {
  border: 1px solid var(--line);
  background: var(--sand);
  padding: 20px;
}

.fact-card span {
  display: block;
  color: var(--muted-brown);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.fact-card strong {
  display: block;
  margin-top: 7px;
  color: var(--espresso);
  font-size: 18px;
  line-height: 1.25;
}

.content-section {
  background: var(--ivory);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.project-content {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--text-brown);
  font-size: 15px;
  line-height: 1.85;
}

.project-content h2 {
  margin: 0 0 14px;
  color: var(--espresso);
  font-size: 30px;
  line-height: 1.12;
}

.project-content h2:not(:first-child) {
  margin-top: 42px;
}

.project-content h3 {
  margin: 26px 0 6px;
  color: var(--text-brown);
  font-size: 20px;
  line-height: 1.2;
}

.project-content p {
  margin: 0 0 16px;
}

.project-content blockquote {
  margin: 0 0 22px;
  border: 1px solid var(--warm-line);
  border-radius: 8px;
  background: var(--sand);
  padding: 18px 20px;
  color: var(--text-brown);
}

.project-content blockquote p {
  margin: 0;
}

.project-content blockquote p + p {
  margin-top: 12px;
}

.project-content table,
.project-content .unit-table {
  width: 100%;
  max-width: 100%;
  margin: 18px 0 8px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: var(--sand);
  color: var(--text-brown);
  font-size: 14px;
}

.project-content table th,
.project-content table td,
.project-content .unit-table th,
.project-content .unit-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
}

.project-content table th,
.project-content .unit-table th {
  background: var(--ivory);
  color: var(--espresso);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-content table td:first-child,
.project-content table td:nth-child(3),
.project-content .unit-table td:first-child,
.project-content .unit-table td:nth-child(3) {
  color: #333333;
  font-weight: 500;
}

.project-content table td:last-child,
.project-content .unit-table td:last-child {
  color: var(--red);
  font-weight: 800;
}

.project-content table tr:last-child td,
.project-content .unit-table tr:last-child td {
  border-bottom: 0;
}

.map-embed {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--sand);
  overflow: hidden;
}

.project-content .map-embed {
  margin: 18px 0 8px;
}

.map-embed iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: 0;
}

.project-content img {
  width: 100%;
  margin: 16px 0 8px;
  border: 1px solid var(--line);
  background: var(--sand);
}

.project-content figure {
  margin: 16px 0 8px;
}

.project-content figure img {
  margin: 0;
}

.project-content figcaption {
  margin-top: 7px;
  color: #8a8a8a;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.related-listings {
  margin-top: 44px;
}

.project-content .related-listings > h2 {
  margin-bottom: 18px;
  color: #555555;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}

.related-listings .launch-grid,
.related-listings__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.related-listings .launch-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--sand);
  padding: 24px;
}

.related-listings .launch-media {
  width: 100%;
  aspect-ratio: 1.6 / 1;
  display: block;
  overflow: hidden;
  background: var(--sand);
}

.project-content .related-listings .launch-media img {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  object-fit: cover;
}

.related-listings .launch-status {
  width: fit-content;
  min-height: 22px;
  display: flex;
  align-items: center;
  margin: 14px 0 10px;
  border-radius: 4px;
  background: var(--red);
  color: #ffffff;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-content .related-listings .launch-card h2 {
  margin: 16px 0 12px;
  color: #555555;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}

.related-listings .listing-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

.related-listings .listing-facts div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.related-listings .listing-facts dt {
  color: #8a8a8a;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.related-listings .listing-facts dd {
  margin: 0;
  color: #555555;
  font-size: 13px;
  line-height: 1.35;
}

.related-listings .listing-facts .highlight {
  color: var(--red);
  font-weight: 500;
}

.project-content .related-listings .launch-details {
  margin: 14px 0 18px;
  color: #777777;
  font-size: 12px;
  line-height: 1.6;
}

.related-listings .card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.related-listings .whatsapp-button,
.related-listings .details-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
}

.related-listings .whatsapp-button {
  background: var(--red);
  color: #ffffff !important;
}

.related-listings .whatsapp-button:hover {
  background: var(--red-dark);
}

.project-content .related-listings .whatsapp-button img {
  width: 14px;
  height: 14px;
  margin: 0 7px 0 0;
  border: 0;
  background: transparent;
  filter: brightness(0) invert(1);
}

.related-listings .details-button {
  border: 1px solid var(--line);
  background: var(--sand);
  color: #333333;
}

.sidebar-stack,
.content-layout > .sticky-enquiry {
  position: sticky;
  top: 20px;
}

.sidebar-stack {
  display: grid;
  gap: 14px;
}

.sticky-enquiry {
  border: 1px solid var(--line);
  background: var(--sand);
  padding: 22px;
}

.sticky-enquiry .button {
  width: 100%;
}

.sticky-enquiry h2 {
  margin: 0 0 10px;
  color: var(--espresso);
  font-size: 20px;
  line-height: 1.2;
}

.sticky-enquiry p {
  margin: 0 0 18px;
  color: var(--text-brown);
  font-size: 13px;
  line-height: 1.65;
}

.enquiry-portrait {
  width: 150px;
  margin: 0 auto 18px;
  text-align: center;
}

.enquiry-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.sidebar-map {
  border: 1px solid var(--line);
  background: var(--sand);
  overflow: hidden;
}

.sidebar-map .map-embed iframe {
  height: 260px;
}

@media (max-width: 900px) {
  .project-hero-inner,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .related-listings__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .project-hero-inner,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-stack,
  .content-layout > .sticky-enquiry {
    position: static;
  }
}

@media (max-width: 560px) {
  .launch-card {
    padding: 18px;
  }

  .facts-grid {
    grid-template-columns: 1fr;
  }

  .project-content table,
  .project-content .unit-table {
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .project-content table th,
  .project-content table td,
  .project-content .unit-table th,
  .project-content .unit-table td {
    overflow-wrap: normal;
  }
}

.project-hero,
.result-hero {
  background: linear-gradient(135deg, var(--espresso) 0%, #13294A 58%, var(--espresso-dark) 100%);
}

.facts-section,
.content-section {
  background: var(--ivory);
}

.fact-card,
.sticky-enquiry,
.sidebar-map,
.project-content table,
.project-content .unit-table,
.project-content img {
  border-color: var(--warm-line);
  background: var(--sand);
}

.project-content table th,
.project-content .unit-table th {
  background: var(--ivory);
  color: var(--espresso);
}

.project-content table td,
.project-content .unit-table td,
.project-content,
.sticky-enquiry p,
.project-summary {
  color: var(--text-brown);
}

.project-content h2,
.project-content h3,
.fact-card strong,
.sticky-enquiry h2 {
  color: var(--espresso);
}

.project-hero .eyebrow,
.project-content table td:last-child,
.project-content .unit-table td:last-child {
  color: var(--rust);
}

.project-hero .project-title {
  color: var(--ivory);
}

.project-hero .project-summary {
  color: var(--ivory) !important;
}
