:root {
  --ink: #18231f;
  --muted: #61716b;
  --line: #dfe6e1;
  --paper: #fbfcf8;
  --soft: #eef5ec;
  --brand: #176b56;
  --brand-dark: #0f473a;
  --gold: #c79633;
  --sea: #237a8f;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(20, 42, 34, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, .55);
  background: rgba(251, 252, 248, .86);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--brand);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.desktop-nav {
  display: flex;
  gap: 22px;
  color: #34463f;
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a {
  padding: 8px 0;
}

.header-cta,
.primary-btn,
.secondary-btn,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 750;
}

.header-cta,
.primary-btn {
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(23, 107, 86, .2);
}

.header-cta {
  padding: 0 18px;
}

.primary-btn,
.secondary-btn {
  padding: 0 20px;
}

.secondary-btn {
  color: var(--brand-dark);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 56px);
  overflow: hidden;
  background: #16231e;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 24, 20, .86), rgba(10, 24, 20, .54) 42%, rgba(10, 24, 20, .12)),
    url("assets/setia-alam-township-hero.png") center / cover no-repeat;
  transform: scale(1.06);
  animation: heroBackgroundMove 18s ease-in-out infinite alternate;
  transform-origin: center;
  will-change: transform, background-position;
}

@keyframes heroBackgroundMove {
  0% {
    background-position: center center;
    transform: scale(1.06) translate3d(0, 0, 0);
  }

  100% {
    background-position: 58% center;
    transform: scale(1.12) translate3d(-18px, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  color: var(--white);
  padding-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 800;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 780px;
  font-size: clamp(46px, 8vw, 88px);
}

h2 {
  font-size: clamp(30px, 4vw, 52px);
}

.hero-copy {
  max-width: 690px;
  margin: 18px 0 24px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.hero-search {
  display: flex;
  width: min(720px, 100%);
  padding: 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
}

.hero-search button {
  padding: 0 16px;
  color: var(--white);
  background: var(--brand-dark);
}

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

.domain-panel {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(24px, 4vw, 48px);
  z-index: 2;
  width: min(360px, calc(100% - 36px));
  padding: 18px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(9, 24, 20, .68);
  backdrop-filter: blur(14px);
}

.domain-panel span,
.domain-panel strong {
  display: block;
}

.domain-panel span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.domain-panel strong {
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.domain-panel p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.5;
}

.quick-filters {
  display: flex;
  gap: 10px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  background: var(--white);
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  color: #34463f;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  font-weight: 750;
}

.filter-chip.active {
  color: var(--white);
  border-color: var(--brand);
  background: var(--brand);
}

.school-map-panel {
  padding: clamp(34px, 5vw, 62px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: #f4f8f3;
}

.school-map-panel[hidden],
.rental-focus-panel[hidden],
.freehold-panel[hidden],
.commercial-panel[hidden] {
  display: none;
}

.school-map-panel .section-head {
  margin-bottom: 18px;
}

.google-map-frame {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(20, 42, 34, .08);
}

.google-map-frame iframe {
  width: 100%;
  height: min(72vh, 760px);
  min-height: 520px;
  display: block;
  border: 0;
  border-radius: 8px;
}

.residence-distance-key {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.residence-distance-key span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--white);
  font-size: 14px;
  font-weight: 750;
}

.residence-distance-key b {
  color: var(--white);
  background: var(--brand);
  border-radius: 999px;
  padding: 3px 7px;
  margin-right: 6px;
}

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

.school-distance-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(20, 42, 34, .08);
}

.school-distance-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.school-distance-card h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 22px;
  line-height: 1.2;
}

.school-distance-card p {
  margin: 6px 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.school-distance-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.school-distance-card dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.school-distance-card dt,
.school-distance-card dd {
  margin: 0;
  color: #40554d;
  font-size: 14px;
}

.school-distance-card dt {
  font-weight: 750;
}

.school-distance-card dd {
  color: var(--brand-dark);
  font-weight: 850;
  text-align: right;
}

.map-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.rental-focus-panel {
  padding: clamp(34px, 5vw, 62px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: #f8f5ef;
}

.rental-focus-panel .section-head {
  margin-bottom: 18px;
}

.rental-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.rental-summary-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(20, 42, 34, .08);
}

.rental-summary-grid span,
.rental-summary-grid strong,
.rental-summary-grid b {
  display: block;
}

.rental-summary-grid span {
  color: var(--sea);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.rental-summary-grid strong {
  margin-top: 5px;
  color: var(--brand-dark);
  font-size: 21px;
}

.rental-summary-grid p {
  min-height: 78px;
  margin: 10px 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.rental-summary-grid b {
  color: var(--white);
  background: var(--brand);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.35;
}

.rental-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(20, 42, 34, .08);
}

.rental-table td:nth-child(3) {
  color: var(--brand-dark);
  font-weight: 900;
  white-space: nowrap;
}

.freehold-panel {
  padding: clamp(34px, 5vw, 62px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: #f4f8f3;
}

.freehold-panel .section-head {
  margin-bottom: 18px;
}

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

.freehold-fact-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(20, 42, 34, .08);
}

.freehold-fact-grid span,
.freehold-fact-grid strong {
  display: block;
}

.freehold-fact-grid span {
  color: var(--sea);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.freehold-fact-grid strong {
  margin: 5px 0 14px;
  color: var(--brand-dark);
  font-size: 24px;
}

.freehold-fact-grid dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.freehold-fact-grid dl div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.freehold-fact-grid dt,
.freehold-fact-grid dd {
  margin: 0;
  color: #40554d;
  line-height: 1.45;
}

.freehold-fact-grid dt {
  color: var(--brand-dark);
  font-weight: 850;
}

.freehold-fact-grid dd {
  font-weight: 650;
}

.commercial-panel {
  padding: clamp(34px, 5vw, 62px) clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: #f8f5ef;
}

.commercial-panel .section-head {
  margin-bottom: 18px;
}

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

.commercial-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(20, 42, 34, .08);
}

.commercial-grid img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef5ec;
}

.commercial-grid span,
.commercial-grid strong {
  display: block;
}

.commercial-grid span {
  color: var(--sea);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.commercial-grid strong {
  margin-top: 5px;
  color: var(--brand-dark);
  font-size: 24px;
}

.commercial-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.commercial-grid dl {
  margin: 0;
}

.commercial-grid dl div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.commercial-grid dt,
.commercial-grid dd {
  margin: 0;
  color: #40554d;
  line-height: 1.45;
}

.commercial-grid dt {
  color: var(--brand-dark);
  font-weight: 850;
}

.commercial-grid dd {
  font-weight: 650;
}

.commercial-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(20, 42, 34, .08);
}

.commercial-table td:nth-child(3),
.commercial-table td:nth-child(4) {
  color: var(--brand-dark);
  font-weight: 850;
}

.section {
  padding: clamp(52px, 7vw, 92px) clamp(18px, 4vw, 56px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) 1.3fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  background: var(--soft);
}

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

.insight-grid article,
.project-card,
.whatsapp-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(20, 42, 34, .08);
}

.insight-grid article {
  padding: 22px;
}

.insight-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.insight-grid p,
.section-head p,
.project-card p,
.detail-list,
footer p,
.lead-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.section-head {
  max-width: 840px;
  margin-bottom: 28px;
}

.section-head p {
  max-width: 760px;
  margin: 14px 0 0;
}

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

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card[hidden] {
  display: none;
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #d5ddd8;
}

.project-card img.building-plan-image {
  height: 360px;
  object-fit: contain;
  background: #5b2035;
}

.project-card img.eco-terra-image {
  height: 360px;
  object-fit: contain;
  background: #d8e5e7;
}

.project-card img.armani-image {
  height: 360px;
  object-fit: contain;
  background: #0b2742;
}

.project-card img.ksl-image {
  height: 360px;
  object-fit: contain;
  background: #e9f6f5;
}

.project-body {
  padding: 24px;
}

.project-title span,
.project-title strong {
  display: block;
}

.project-title span {
  color: var(--sea);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-title strong {
  margin-top: 4px;
  font-size: 26px;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.meta-list span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--soft);
  font-size: 13px;
  font-weight: 750;
}

.floor-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.plan-tab {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #354942;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.plan-tab.active {
  color: var(--white);
  background: var(--sea);
  border-color: var(--sea);
}

.selected-layout {
  display: grid;
  gap: 8px;
  margin: 4px 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf7;
}

.selected-layout img {
  width: 100%;
  height: 430px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.selected-layout span {
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.detail-list {
  padding-left: 18px;
  margin: 20px 0 0;
}

.detail-list li + li {
  margin-top: 8px;
}

.compare-section {
  background: #f4f8f3;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

th,
td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--brand-dark);
  background: #ecf4ef;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

td {
  color: #40554d;
  line-height: 1.5;
}

.lead-section {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(300px, 520px);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

.lead-copy {
  position: sticky;
  top: 104px;
}

.whatsapp-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.whatsapp-card label {
  display: grid;
  gap: 7px;
  color: #31443d;
  font-size: 14px;
  font-weight: 750;
}

.whatsapp-card input,
.whatsapp-card select,
.whatsapp-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfdfb;
  outline: 0;
}

.whatsapp-card input:focus,
.whatsapp-card select:focus,
.whatsapp-card textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23, 107, 86, .12);
}

.full {
  width: 100%;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

footer p {
  max-width: 780px;
  margin: 0;
  font-size: 13px;
}

footer p:first-child {
  color: var(--brand-dark);
  font-weight: 800;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .hero {
    min-height: 760px;
    align-items: center;
  }

  .domain-panel {
    left: clamp(18px, 4vw, 56px);
    right: auto;
  }

  .intro-grid,
  .project-grid,
  .lead-section,
  .school-distance-grid,
  .rental-summary-grid,
  .freehold-fact-grid,
  .commercial-grid {
    grid-template-columns: 1fr;
  }

  .lead-copy {
    position: static;
  }
}

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

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero {
    min-height: 790px;
    padding: 34px 16px;
  }

  .hero-search {
    display: grid;
    gap: 8px;
  }

  .hero-search input {
    min-height: 46px;
  }

  .hero-search button {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .domain-panel {
    bottom: 18px;
  }

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

  .project-card img {
    height: 220px;
  }

  .project-card img.building-plan-image {
    height: 300px;
  }

  .project-card img.eco-terra-image {
    height: 300px;
  }

  .project-card img.armani-image {
    height: 300px;
  }

  .project-card img.ksl-image {
    height: 300px;
  }

  .project-body,
  .whatsapp-card {
    padding: 18px;
  }

  .selected-layout img {
    height: 340px;
  }

  .school-distance-card {
    grid-template-columns: 1fr;
  }

  .school-distance-card img {
    height: 180px;
  }

  .freehold-fact-grid dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .commercial-grid dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  footer {
    display: block;
  }

  footer p + p {
    margin-top: 10px;
  }
}
