:root {
  --green-950: #062f24;
  --green-900: #0a3f31;
  --green-800: #0f5a45;
  --green-650: #1c7b5c;
  --green-500: #2fa879;
  --mint-100: #eaf7ef;
  --mint-50: #f5fbf7;
  --sand: #f4efe5;
  --ivory: #fffdf8;
  --ink: #10231d;
  --muted: #64736d;
  --line: #dce8e1;
  --gold: #c9a24c;
  --white: #ffffff;
  --danger: #b33b3b;
  --success: #19734f;
  --shadow: 0 18px 60px rgba(6, 47, 36, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid rgba(220, 232, 225, 0.85);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--green-950);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-900);
  color: var(--white);
  font-size: 19px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--green-900);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  background: var(--mint-100);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--green-900);
  font-size: 1.25rem;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--mint-50);
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-650);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--green-950);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.7rem, 6vw, 5.7rem);
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0;
}

.lead {
  max-width: 760px;
  color: #314840;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero {
  min-height: calc(100vh - 74px);
  padding: 72px 0 44px;
  display: flex;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 47, 36, 0.88) 0%, rgba(6, 47, 36, 0.52) 43%, rgba(6, 47, 36, 0.08) 100%),
    url("../images/hero-red-sea-resort.png") center / cover no-repeat;
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero h1,
.hero .eyebrow {
  color: var(--white);
}

.hero .lead {
  max-width: 660px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

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

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

.button.dark {
  background: var(--green-950);
  color: var(--white);
}

.button.light {
  background: var(--mint-100);
  color: var(--green-900);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 54px;
}

.stat {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.stat strong {
  display: block;
  color: var(--white);
  font-size: 1.35rem;
}

.stat span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 48px;
}

.copy-stack {
  display: grid;
  gap: 18px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.feature {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.feature strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green-900);
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--sand);
}

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

.page-hero {
  padding: 76px 0 52px;
  background: var(--mint-50);
  border-bottom: 1px solid var(--line);
}

.page-hero .lead {
  margin-top: 18px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-900);
  font-weight: 750;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--white);
}

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

.property-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 10px 36px rgba(16, 35, 29, 0.06);
}

.property-visual {
  position: relative;
  min-height: 150px;
  background:
    linear-gradient(135deg, rgba(6, 47, 36, 0.18), rgba(47, 168, 121, 0.2)),
    url("../images/apartment-terrace-red-sea.png") center / cover no-repeat;
}

.property-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6, 47, 36, 0.88);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
}

.property-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.property-meta,
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.property-meta span,
.facts span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--green-900);
  font-size: 0.82rem;
  font-weight: 750;
}

.price {
  margin-top: auto;
  color: var(--green-950);
  font-size: 1.1rem;
  font-weight: 850;
}

.cta-link {
  color: var(--green-650);
  font-weight: 850;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 44px;
  align-items: start;
}

.contact-panel,
.form-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 36px rgba(16, 35, 29, 0.06);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-list a,
.contact-list span {
  display: block;
  color: var(--green-900);
  font-weight: 750;
}

.map-embed {
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mint-50);
}

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

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--green-950);
  font-size: 0.92rem;
  font-weight: 780;
}

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

textarea {
  min-height: 148px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(47, 168, 121, 0.18);
  border-color: var(--green-500);
}

.checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.error-text {
  min-height: 18px;
  color: var(--danger);
  font-size: 0.82rem;
}

.field.invalid input,
.field.invalid textarea,
.field.invalid select {
  border-color: var(--danger);
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: var(--radius);
  font-weight: 750;
}

.form-status.success {
  display: block;
  background: #e6f5ed;
  color: var(--success);
}

.form-status.error {
  display: block;
  background: #fae9e9;
  color: var(--danger);
}

.legal-box {
  max-width: 850px;
  display: grid;
  gap: 20px;
}

.note {
  padding: 16px;
  border-left: 4px solid var(--gold);
  background: #fff8e8;
  color: #574420;
}

.site-footer {
  padding: 38px 0;
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--white);
  font-weight: 700;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 16px 18px;
    flex-direction: column;
    align-items: stretch;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    border-radius: var(--radius);
  }

  .stats,
  .feature-list,
  .property-grid,
  .grid-2,
  .contact-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 88px 0 34px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 58px 0;
  }

  .stats {
    margin-top: 34px;
  }

  .contact-panel,
  .form-panel {
    padding: 20px;
  }

  .brand {
    gap: 9px;
  }
}
