:root {
  --bg: #f5efe5;
  --paper: #fffaf3;
  --ink: #1a1f1c;
  --muted: #55615a;
  --brand: #1d6b57;
  --brand-strong: #154f40;
  --accent: #d39a4a;
  --line: rgba(26, 31, 28, 0.12);
  --shadow: 0 16px 40px rgba(19, 30, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, #fff4de 0%, transparent 32%),
    radial-gradient(circle at 90% 12%, #e7f0ea 0%, transparent 38%),
    linear-gradient(160deg, #f4e8d6 0%, #f7f3ee 44%, #ecf4ef 100%);
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: -1;
}

.container {
  width: min(1440px, 96vw);
  margin: 0 auto;
}

.section {
  padding: 5.4rem 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 250, 243, 0.72);
  border-bottom: 1px solid rgba(26, 31, 28, 0.08);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-group {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.parent-brand {
  display: inline-flex;
  flex-shrink: 0;
  padding-right: 0.85rem;
  border-right: 1px solid var(--line);
  border-radius: 0;
  transition: transform 0.15s ease;
}

.parent-brand:hover {
  transform: scale(1.06);
}

.parent-brand img {
  display: block;
  width: 40px;
  height: 40px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.52rem;
  text-decoration: none;
}

.brand-mark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 44px;
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
}

.nav-links a.cta {
  color: #fff;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.78rem 1.3rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(21, 79, 64, 0.3);
  transition: transform 180ms ease, background-color 180ms ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  background: var(--brand-strong);
  outline: none;
}

.hero {
  padding: 0;
  overflow: hidden;
}

.hero .container {
  width: 100vw;
  max-width: 100vw;
  margin-left: 0;
  margin-right: 0;
}

.hero-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  align-items: stretch;
}

.hero-copy {
  grid-area: 1 / 1;
  width: min(50%, 560px);
  margin: 4rem 4rem 7rem auto;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 1.4rem;
  background: rgba(255, 250, 243, 0.62);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #3f5b50;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
}

h1 {
  margin-top: 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.03;
}

.hero-copy p {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.link-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.72rem 1.1rem;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  font-weight: 550;
}

.hero-media {
  grid-area: 1 / 1;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 520px;
  margin: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stat {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.hero-stat article {
  border-radius: 16px;
  background: rgba(18, 23, 21, 0.82);
  color: #f3efe6;
  padding: 0.72rem;
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 1.15rem;
}

.story-panel {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.story-panel article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
}

.story-panel h3 {
  font-size: 1.1rem;
}

.story-panel p {
  margin-top: 0.4rem;
  color: var(--muted);
  line-height: 1.55;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.pricing-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.pricing-toggle button {
  border: none;
  padding: 0.5rem 0.88rem;
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

.pricing-toggle button.active {
  background: var(--brand);
  color: #fff;
}

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

.unit-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(26, 31, 28, 0.09);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 500ms ease, opacity 500ms ease;
}

.unit-card:focus-visible {
  outline: 3px solid rgba(29, 107, 87, 0.45);
  outline-offset: 2px;
}

.unit-card.active-tour {
  border-color: rgba(29, 107, 87, 0.7);
  box-shadow: 0 14px 34px rgba(21, 79, 64, 0.24);
}

.unit-card.visible {
  transform: translateY(0);
  opacity: 1;
}

.unit-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.unit-body {
  padding: 1rem;
}

.unit-meta {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.unit-meta span {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.26rem 0.54rem;
  font-size: 0.82rem;
}

.price {
  margin-top: 0.8rem;
  font-size: 1.28rem;
  font-family: "Fraunces", Georgia, serif;
}

.price small {
  color: var(--muted);
  font-family: "Outfit", sans-serif;
  margin-left: 0.22rem;
}

.room-tour {
  margin-top: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(26, 31, 28, 0.1);
}

.room-tour[hidden] {
  display: none;
}

.room-tour-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.room-tour-head h3 {
  font-size: 1.2rem;
}

.room-tour-frame {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  min-height: 180px;
}

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

.feature-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature-card div {
  padding: 1rem;
}

.steps {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.steps article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 250, 243, 0.9);
}

.steps span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1f5646;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.location-box {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.4rem;
  background:
    linear-gradient(130deg, rgba(255, 250, 243, 0.92), rgba(233, 244, 237, 0.92));
}

.location-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.location-grid article {
  border: 1px dashed rgba(29, 107, 87, 0.34);
  border-radius: 14px;
  padding: 0.8rem;
}

.footer {
  padding: 2.2rem 0 3rem;
}

.footer-wrap {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-wrap a {
  color: var(--brand);
  font-weight: 500;
}

.reserve-form {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.6rem;
  background: rgba(255, 250, 243, 0.9);
  box-shadow: 0 10px 28px rgba(26, 31, 28, 0.08);
}

.reserve-form-head {
  margin-bottom: 1.2rem;
}

.reserve-form-head h3 {
  font-size: 1.3rem;
}

.reserve-form-head p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.reserve-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.reserve-field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.reserve-field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.reserve-field select,
.reserve-field input[type="date"] {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem 0.8rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.reserve-field select:focus,
.reserve-field input[type="date"]:focus {
  outline: 2px solid rgba(29, 107, 87, 0.5);
  outline-offset: 1px;
  border-color: var(--brand);
}

.reserve-field select.invalid,
.reserve-field input.invalid {
  border-color: #c0392b;
  outline: 2px solid rgba(192, 57, 43, 0.35);
}

.reserve-note {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.faq-contact {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
}

.faq-contact-btn {
  padding: 1.64rem 2rem;
}

.reserve-submit {
  padding-top: 1.56rem;
  padding-bottom: 1.56rem;
  font-size: 1.2rem;
  width: auto;
  padding-left: 2.4rem;
  padding-right: 2.4rem;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}

.wa-icon {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  margin-right: 0.45em;
  flex-shrink: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .units-grid,
  .features-grid,
  .steps,
  .story-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 1rem;
  }

  .hero-copy,
  .hero-media {
    grid-area: auto;
  }

  .hero-copy {
    width: 100%;
    margin: 0;
  }

  .hero-media {
    min-height: 320px;
  }

  .section {
    padding: 4.1rem 0;
  }
}

@media (max-width: 760px) {
  .reserve-fields {
    grid-template-columns: 1fr;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: #fffaf3;
    box-shadow: 0 12px 24px rgba(19, 30, 25, 0.12);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 4vw 1rem;
  }

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

  .topbar .cta {
    width: 100%;
  }

  .hero-copy {
    padding: 1.3rem;
    border-radius: 20px;
  }

  @media (orientation: portrait) {
    .hero-media {
      min-height: 0;
    }

    .hero-media img {
      height: auto;
    }

    .hero-stat {
      position: static;
      margin-top: 0.55rem;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0.45rem;
    }

    .hero-stat article {
      padding: 0.5rem 0.42rem;
      border-radius: 12px;
      background: rgba(18, 23, 21, 0.9);
      font-size: 0.76rem;
      line-height: 1.25;
    }

    .hero-stat strong {
      font-size: 1rem;
      line-height: 1.1;
    }
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  background: #fff;
}

/* Fraunces and Outfit have no CJK glyphs, so name the system Chinese fonts explicitly. */
:lang(zh) body {
  font-family: "Outfit", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

:lang(zh) h1,
:lang(zh) h2,
:lang(zh) h3,
:lang(zh) .price {
  font-family: "Fraunces", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "PingFang SC", "Microsoft YaHei", serif;
}

:lang(zh) h1 {
  line-height: 1.25;
}

:lang(zh) .kicker,
:lang(zh) .reserve-field label {
  letter-spacing: 0.08em;
}

.about-page {
  padding: 4.8rem 0 5.4rem;
}

.about-page h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin: 0;
}

.about-page h2 {
  margin: 2.1rem 0 0.9rem;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
}

.about-page h3 {
  margin: 1.8rem 0 0.75rem;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
}

.about-intro {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.84);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.about-page p {
  margin: 0.85rem 0;
  color: var(--muted);
  line-height: 1.72;
  max-width: 84ch;
}

.about-location-block {
  margin: 1.2rem 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: rgba(244, 236, 221, 0.76);
}

.about-location-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: #2e4037;
}

.about-location-list {
  margin: 0;
  padding-left: 1.2rem;
}

.about-location-list li {
  color: var(--muted);
  line-height: 1.6;
  margin: 0.45rem 0;
}

.about-benefits {
  padding-left: 1.2rem;
  margin: 0.95rem 0 0;
}

.about-benefits li {
  margin: 0.65rem 0;
  color: var(--muted);
  line-height: 1.65;
}

.about-cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.explainer p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 76ch;
}

.explainer a {
  color: var(--brand-strong);
}

/* Temasek Properties logo + COLIVE wordmark on small phones */
.brand-sub {
  white-space: nowrap;
}

@media (max-width: 420px) {
  .brand-group,
  .parent-brand {
    gap: 0.6rem;
  }

  .parent-brand {
    padding-right: 0.6rem;
  }

  .parent-brand img {
    width: 34px;
    height: 34px;
  }

  .brand {
    gap: 0.4rem;
  }

  .brand-mark {
    font-size: 1.35rem;
  }

  .brand-sub {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }
}

/* Monthly rental page: rates table and included list */
.about-page h2[id] {
  scroll-margin-top: 90px;
}

.rate-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.84);
}

.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.rate-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.rate-table tbody tr:last-child th,
.rate-table tbody tr:last-child td {
  border-bottom: 0;
}

.rate-table tbody th {
  font-weight: 600;
  color: var(--ink);
}

.rate-table td:last-child {
  font-weight: 600;
  color: var(--brand-strong);
  white-space: nowrap;
}

.rate-note {
  font-size: 0.92rem;
}

.about-page p a,
.about-page li a {
  color: var(--brand-strong);
}

.included-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.included-list li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: rgba(255, 250, 243, 0.84);
  color: var(--muted);
  line-height: 1.55;
}

.included-list strong {
  display: block;
  color: var(--ink);
}

@media (max-width: 760px) {
  .included-list {
    grid-template-columns: 1fr;
  }

  .rate-table th,
  .rate-table td {
    padding: 0.65rem 0.7rem;
    font-size: 0.9rem;
  }
}

/* Homepage: extra facilities list */
.facility-more {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem 1.3rem;
  background: rgba(255, 250, 243, 0.84);
}

.facility-more h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}

.facility-more h3 + .facility-list {
  margin-bottom: 1.1rem;
}

.facility-more .facility-list:last-child {
  margin-bottom: 0;
}

.facility-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.facility-list li {
  border: 1px solid rgba(29, 107, 87, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.92rem;
  color: var(--brand-strong);
  background: rgba(233, 244, 237, 0.6);
}

@media (max-width: 560px) {
  .rate-table th:nth-child(2),
  .rate-table td:nth-child(2) {
    display: none;
  }
}

.rate-table td:nth-child(4) {
  font-weight: 600;
  color: var(--brand-strong);
  white-space: nowrap;
}
