:root {
  --ink: #13211f;
  --muted: #5d6864;
  --paper: #f7f4ed;
  --white: #ffffff;
  --teal: #007d83;
  --teal-dark: #00565b;
  --deep: #0d2c2b;
  --gold: #c79242;
  --line: rgba(19, 33, 31, 0.14);
  --shadow: 0 24px 60px rgba(16, 39, 37, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 3.5vw, 46px);
  color: var(--white);
  background: rgba(7, 24, 23, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  font-weight: 850;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: clamp(0.9rem, 1vw, 1.02rem);
  font-weight: 750;
}

nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

nav a:not(.nav-cta):hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-cta {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}

#investment,
#site-info,
#measurement,
#location,
#property,
#growth,
#gallery,
#contact {
  scroll-margin-top: 92px;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  justify-items: end;
  overflow: hidden;
  color: var(--white);
  background: #122623;
  background-image: url("assets/images/header-pool-reflection.jpeg");
  background-position: center 54%;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 23, 22, 0.08), rgba(4, 23, 22, 0.1) 44%, rgba(4, 23, 22, 0.78) 100%),
    linear-gradient(180deg, rgba(4, 23, 22, 0.52), rgba(4, 23, 22, 0.08) 42%, rgba(4, 23, 22, 0.36));
  z-index: 1;
}

.hero picture,
.hero picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero picture img {
  object-fit: cover;
  object-position: center 54%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 26% 28%, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(90deg, rgba(4, 23, 22, 0), rgba(4, 23, 22, 0.26) 58%, rgba(4, 23, 22, 0.52));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(620px, calc(100% - 36px));
  padding: 88px clamp(24px, 5vw, 72px) 56px 0;
  text-align: right;
}

.hero-content .eyebrow,
.hero-copy {
  margin-left: auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 4.75vw, 4.65rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 600px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.hero-actions,
.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

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

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.intro-band,
.details-section,
.property-section,
.gallery-section,
.opportunity-section,
.contact-section {
  padding: clamp(72px, 9vw, 132px) clamp(18px, 5vw, 72px);
}

.intro-grid,
.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 54px;
  overflow: hidden;
  border-radius: 14px;
}

.metric-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 28px;
  border-radius: 14px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(13, 44, 43, 0.78), rgba(0, 125, 131, 0.48)),
    url("assets/images/header-resort-panorama.jpg") center / cover;
  box-shadow: 0 18px 42px rgba(16, 39, 37, 0.14);
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.metric-card:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(0, 86, 91, 0.72), rgba(13, 44, 43, 0.48)),
    url("assets/images/lake-view.jpeg") center / cover;
}

.metric-card:nth-child(3) {
  background:
    linear-gradient(145deg, rgba(13, 44, 43, 0.74), rgba(199, 146, 66, 0.38)),
    url("assets/images/lawn-and-resort.jpeg") center / cover;
}

.metric-card:nth-child(4) {
  background:
    linear-gradient(145deg, rgba(13, 44, 43, 0.76), rgba(0, 125, 131, 0.4)),
    url("assets/images/garden-overview.jpg") center / cover;
}

.metrics span {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 16px;
  color: var(--white);
  font-size: clamp(1.85rem, 3vw, 2.8rem);
  font-weight: 850;
  line-height: 1;
}

.metric-card p {
  position: relative;
  z-index: 1;
  max-width: 260px;
  color: rgba(255, 255, 255, 0.78);
}

.details-grid span,
.property-grid p,
.opportunity-list p,
.contact-section p,
footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.metrics .metric-card p {
  color: rgba(255, 255, 255, 0.78);
}

.details-section {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.details-section .section-heading p:not(.section-kicker),
.gallery-section .section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.detail-card {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  padding: 24px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(13, 44, 43, 0.78), rgba(0, 125, 131, 0.48)),
    url("assets/images/header-resort-panorama.jpg") center / cover;
  box-shadow: 0 18px 42px rgba(16, 39, 37, 0.14);
}

.detail-card::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.detail-card::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 22px;
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
}

.detail-card.featured {
  grid-column: span 2;
  background:
    linear-gradient(145deg, rgba(13, 44, 43, 0.78), rgba(0, 125, 131, 0.48)),
    url("assets/images/lawn-and-resort.jpeg") center / cover;
}

.detail-card:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(13, 44, 43, 0.78), rgba(0, 125, 131, 0.48)),
    url("assets/images/main-pool-activity.jpeg") center / cover;
}

.detail-card:nth-child(3) {
  background:
    linear-gradient(145deg, rgba(13, 44, 43, 0.78), rgba(0, 125, 131, 0.48)),
    url("assets/images/children-pool.jpeg") center / cover;
}

.detail-card:nth-child(4),
.detail-card:nth-child(5) {
  background:
    linear-gradient(145deg, rgba(13, 44, 43, 0.78), rgba(0, 125, 131, 0.48)),
    url("assets/images/restaurant-terrace.jpeg") center / cover;
}

.detail-card:nth-child(6) {
  background:
    linear-gradient(145deg, rgba(13, 44, 43, 0.78), rgba(0, 125, 131, 0.48)),
    url("assets/images/site-map-satellite.jpg") center / cover;
}

.detail-card:nth-child(7) {
  background:
    linear-gradient(145deg, rgba(13, 44, 43, 0.78), rgba(0, 125, 131, 0.48)),
    url("assets/images/garden-overview.jpg") center / cover;
}

.detail-card:nth-child(9),
.detail-card:nth-child(10) {
  background:
    linear-gradient(145deg, rgba(13, 44, 43, 0.78), rgba(0, 125, 131, 0.48)),
    url("assets/images/hotel-building.jpg") center / cover;
}

.details-grid strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 24px 0 12px;
  color: var(--white);
  font-size: clamp(1.55rem, 2.6vw, 2.3rem);
  line-height: 1;
}

.details-grid span {
  position: relative;
  z-index: 1;
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
}

.site-map-figure {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 0.6fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  margin: 42px 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-map-figure img {
  width: 100%;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 18px 42px rgba(16, 39, 37, 0.12);
}

.site-map-figure figcaption {
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
}

.site-map-figure figcaption span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.split-section {
  padding: 0 clamp(18px, 5vw, 72px) clamp(72px, 9vw, 132px);
}

.image-panel {
  min-height: 620px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.text-panel {
  padding: clamp(16px, 3vw, 42px);
}

.text-panel p {
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-left: 22px;
  border-left: 3px solid var(--gold);
  font-weight: 700;
}

.map-card {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  padding: 0;
  border-radius: 14px;
  color: var(--white);
  overflow: hidden;
  background: var(--deep);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.map-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.map-card span {
  padding: 0 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-card strong {
  padding: 0 24px 24px;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.12;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

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

.property-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

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

.property-grid article div {
  padding: 20px;
}

.opportunity-section {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  background: #102522;
  color: var(--white);
}

.opportunity-copy {
  max-width: 650px;
}

.opportunity-copy p,
.opportunity-list p {
  color: rgba(255, 255, 255, 0.72);
}

.opportunity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.opportunity-list div {
  min-height: 190px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
}

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

.gallery-item {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #d9ded9;
  cursor: zoom-in;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-more {
  margin-top: 26px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.contact-section {
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.contact-card {
  align-items: flex-start;
  flex-direction: column;
  padding: clamp(24px, 4vw, 42px);
  border: 0;
  border-radius: 18px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(13, 44, 43, 0.96), rgba(0, 86, 91, 0.82)),
    url("assets/images/restaurant-terrace.jpeg") center / cover;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-bottom: 4px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.contact-label {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-line {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.contact-lines {
  display: grid;
  gap: 6px;
}

.contact-actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 4px;
}

.contact-action {
  display: grid;
  min-height: 94px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
}

.action-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--deep);
  background: var(--white);
}

.action-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.text-link {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.contact-note {
  font-size: 0.96rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #ffffff;
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 70px 24px 24px;
  background: rgba(5, 17, 16, 0.9);
}

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

.lightbox img {
  max-width: min(1180px, 100%);
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 2.3rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-count {
  position: absolute;
  left: 50%;
  bottom: 24px;
  margin: 0;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.38);
  font-size: 0.92rem;
  transform: translateX(-50%);
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 122px;
  }

  #investment,
  #site-info,
  #measurement,
  #location,
  #property,
  #growth,
  #gallery,
  #contact {
    scroll-margin-top: 122px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  .intro-grid,
  .split-section,
  .opportunity-section,
  .contact-section,
  .site-map-figure {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  .image-panel,
  .image-panel img {
    min-height: 440px;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: fixed;
    padding: 12px 16px;
  }

  nav {
    font-size: 0.9rem;
  }

  nav a {
    min-height: 36px;
    padding: 8px 10px;
  }

  .nav-cta {
    padding: 8px 12px;
  }

  .hero {
    min-height: 820px;
    align-items: end;
    justify-items: start;
    background-position: 47% center;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(4, 23, 22, 0.58), rgba(4, 23, 22, 0.16) 36%, rgba(4, 23, 22, 0.82)),
      linear-gradient(90deg, rgba(4, 23, 22, 0.56), rgba(4, 23, 22, 0.2));
  }

  .hero picture img {
    object-position: 47% center;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(4, 23, 22, 0), rgba(4, 23, 22, 0.52));
  }

  .hero-content {
    width: 100%;
    padding: 176px 18px 56px;
    text-align: left;
  }

  .hero-content .eyebrow,
  .hero-copy {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  h1 {
    max-width: 560px;
    font-size: clamp(2.45rem, 11vw, 3.45rem);
  }

  .metrics,
  .details-grid,
  .property-grid,
  .opportunity-list,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 240px;
  }

  .gallery-item.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .detail-card.featured {
    grid-column: span 1;
  }

  .lightbox {
    padding-inline: 12px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  footer {
    flex-direction: column;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }
}
