:root {
  --color-ivory: #f7f3ec;
  --color-stone: #e8dfd2;
  --color-sand: #c7b699;
  --color-bronze: #a77a45;
  --color-brown: #2c2018;
  --color-charcoal: #181715;
  --color-muted: #6f6254;
  --color-white: #fffaf2;
  --shadow: 0 24px 70px rgba(28, 22, 17, 0.18);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-charcoal);
  background: var(--color-ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--color-white);
  transition: background 240ms ease, padding 240ms ease, color 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  padding-block: 16px;
  color: var(--color-charcoal);
  background: rgba(247, 243, 236, 0.94);
  box-shadow: 0 18px 50px rgba(22, 18, 14, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
}

.site-nav {
  justify-self: center;
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.92rem;
}

.site-nav a {
  opacity: 0.86;
  transition: opacity 180ms ease, color 180ms ease;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--color-bronze);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.language-switch,
.nav-toggle {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.language-switch {
  padding: 6px 0;
  font-size: 0.8rem;
  letter-spacing: 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--color-bronze);
  color: var(--color-white);
  background: var(--color-bronze);
  font-weight: 600;
  line-height: 1.2;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #8f6333;
  border-color: #8f6333;
}

.button-small {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 0.88rem;
}

.button-ghost {
  color: var(--color-white);
  background: transparent;
  border-color: rgba(255, 250, 242, 0.72);
}

.button-ghost:hover {
  color: var(--color-charcoal);
  background: var(--color-white);
  border-color: var(--color-white);
}

.button-dark {
  color: var(--color-white);
  background: var(--color-brown);
  border-color: var(--color-brown);
}

.button-dark:hover {
  background: var(--color-charcoal);
  border-color: var(--color-charcoal);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 1px;
  margin: 8px 0;
  background: currentColor;
  transition: transform 200ms ease;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 128px clamp(22px, 7vw, 96px) 176px;
  color: var(--color-white);
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2200&q=82") center/cover no-repeat;
  transform: scale(1.03);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 15, 13, 0.74), rgba(18, 15, 13, 0.28) 52%, rgba(18, 15, 13, 0.38)),
    linear-gradient(0deg, rgba(18, 15, 13, 0.64), rgba(18, 15, 13, 0.05) 48%);
}

.hero-content {
  position: relative;
  max-width: 800px;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  display: block;
  margin: 0 0 14px;
  color: var(--color-bronze);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--color-sand);
}

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

h1,
h2 {
  font-weight: 500;
  line-height: 1.18;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(2.7rem, 7vw, 6.6rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4.6vw, 4.4rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.35;
  text-wrap: balance;
}

.hero-content p {
  max-width: 560px;
  margin-bottom: 34px;
  color: rgba(255, 250, 242, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-info {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 36px;
  left: clamp(20px, 5vw, 72px);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 250, 242, 0.28);
  background: rgba(24, 23, 21, 0.3);
  backdrop-filter: blur(18px);
}

.hero-info div {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid rgba(255, 250, 242, 0.18);
}

.hero-info div:last-child {
  border-right: 0;
}

.hero-info strong,
.hero-info span {
  display: block;
}

.hero-info strong {
  margin-bottom: 4px;
  font-size: 1.18rem;
}

.hero-info span {
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.9rem;
}

.section {
  padding: clamp(78px, 11vw, 150px) clamp(20px, 6vw, 88px);
}

.intro {
  background: var(--color-ivory);
}

.intro-grid,
.why-layout,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.intro-copy {
  max-width: 690px;
  color: var(--color-muted);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(34px, 6vw, 70px);
}

.services {
  background: var(--color-stone);
}

.service-list {
  display: grid;
  border-top: 1px solid rgba(44, 32, 24, 0.18);
}

.service-item {
  display: grid;
  grid-template-columns: 90px 1fr minmax(260px, 0.8fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(44, 32, 24, 0.18);
}

.service-item span {
  color: var(--color-bronze);
  font-family: var(--serif);
  font-size: 1.4rem;
}

.service-item p {
  color: var(--color-muted);
}

.property-section {
  background: var(--color-brown);
  color: var(--color-white);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(280px, 34vw);
  gap: 16px;
}

.image-panel {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 320px;
  overflow: hidden;
  background: var(--image) center/cover no-repeat;
}

.image-panel::before,
.location-tile::before,
.lifestyle-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 14, 12, 0.72), rgba(17, 14, 12, 0.12));
  transition: opacity 220ms ease, transform 380ms ease;
}

.image-panel:hover::before {
  opacity: 0.86;
}

.image-panel.tall {
  grid-row: span 2;
}

.image-panel.wide {
  grid-column: span 2;
}

.image-panel div {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(22px, 4vw, 40px);
}

.image-panel h3,
.image-panel p {
  max-width: 420px;
}

.image-panel h3 {
  max-width: 520px;
}

.image-panel p {
  color: rgba(255, 250, 242, 0.78);
}

.image-panel a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--color-sand);
  font-weight: 700;
}

.locations {
  background: var(--color-ivory);
}

.location-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 42px;
}

.location-intro .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -12px;
}

.location-intro p {
  color: var(--color-muted);
  font-size: 1.1rem;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.location-tile {
  position: relative;
  display: flex;
  min-height: 260px;
  align-items: end;
  overflow: hidden;
  background: var(--image) center/cover no-repeat;
}

.location-tile span {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: 700;
}

.why {
  background: var(--color-white);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.principles article {
  padding-top: 26px;
  border-top: 1px solid rgba(44, 32, 24, 0.18);
}

.principles p {
  color: var(--color-muted);
}

.lifestyle {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: center;
  background: var(--color-ivory);
}

.lifestyle-image {
  position: relative;
  min-height: min(680px, 78vh);
  background: url("https://images.unsplash.com/photo-1600566752355-35792bedcfea?auto=format&fit=crop&w=1400&q=82") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.lifestyle-image::before {
  opacity: 0.18;
}

.lifestyle-copy {
  max-width: 560px;
}

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

.owner-cta {
  position: relative;
  padding: clamp(86px, 13vw, 164px) clamp(20px, 6vw, 88px);
  color: var(--color-white);
  background:
    linear-gradient(90deg, rgba(31, 22, 16, 0.92), rgba(31, 22, 16, 0.7)),
    url("https://images.unsplash.com/photo-1600607687644-c7171b42498b?auto=format&fit=crop&w=1900&q=82") center/cover no-repeat;
}

.owner-cta > div {
  max-width: 760px;
}

.owner-cta p {
  max-width: 590px;
  color: rgba(255, 250, 242, 0.78);
  font-size: 1.15rem;
}

.inquiry {
  background: var(--color-stone);
}

.inquiry-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-block: 1px solid rgba(44, 32, 24, 0.2);
  padding-block: clamp(34px, 6vw, 64px);
}

.inquiry-inner h2 {
  max-width: 560px;
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
}

.inquiry-inner p {
  max-width: 560px;
  color: var(--color-muted);
}

.contact {
  background: var(--color-white);
}

.contact-intro {
  position: sticky;
  top: 110px;
}

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

.contact-email {
  display: inline-flex;
  margin: 20px 0 34px;
  color: var(--color-bronze);
  font-size: clamp(1.35rem, 2.5vw, 2.35rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

dl {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(44, 32, 24, 0.14);
}

dt {
  color: var(--color-muted);
  font-size: 0.86rem;
}

dd {
  margin: 4px 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--color-ivory);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.94rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(44, 32, 24, 0.18);
  border-radius: 0;
  color: var(--color-charcoal);
  background: rgba(255, 250, 242, 0.76);
  outline: 0;
  padding: 14px 14px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-bronze);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(167, 122, 69, 0.14);
}

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

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

.form-status {
  grid-column: 1 / -1;
  min-height: 28px;
  margin: 0;
  color: var(--color-bronze);
  font-weight: 600;
}

.form-status.is-error {
  color: #9a3f2c;
}

.sticky-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: none;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: var(--color-white);
  background: var(--color-bronze);
  box-shadow: 0 12px 32px rgba(24, 23, 21, 0.22);
  font-weight: 700;
}

.footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 38px;
  padding: 54px clamp(20px, 6vw, 88px);
  color: rgba(255, 250, 242, 0.76);
  background: var(--color-charcoal);
}

.footer .brand,
.footer a {
  color: var(--color-white);
}

.footer nav {
  display: grid;
  gap: 10px;
}

.footer p,
.footer small {
  margin: 10px 0 0;
}

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

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

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav,
  .header-actions {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

  .location-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 18px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-header.nav-active .site-nav,
  .site-header.nav-active .header-actions {
    display: grid;
    width: 100%;
  }

  .site-header.nav-active .site-nav {
    padding-top: 18px;
    gap: 14px;
    font-size: 1.08rem;
  }

  .site-header.nav-active .header-actions {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .hero {
    min-height: 100svh;
    padding: 112px 20px 300px;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }

  .hero-info {
    grid-template-columns: 1fr;
    right: 20px;
    left: 20px;
    bottom: 18px;
  }

  .hero-info div {
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 250, 242, 0.16);
  }

  .hero-info div:last-child {
    border-bottom: 0;
  }

  .intro-grid,
  .why-layout,
  .contact,
  .lifestyle,
  .location-intro {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .property-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .image-panel.tall,
  .image-panel.wide {
    grid-column: auto;
    grid-row: auto;
  }

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

  .principles,
  .contact-form,
  .footer {
    grid-template-columns: 1fr;
  }

  .inquiry-inner {
    display: grid;
  }

  .contact-intro {
    position: static;
  }

  .sticky-contact {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .section {
    padding-inline: 18px;
  }

  .hero {
    padding-inline: 18px;
  }

  .hero-cta,
  .hero-cta .button,
  .inquiry-inner .button,
  .owner-cta .button {
    width: 100%;
  }

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

  .location-tile,
  .image-panel {
    min-height: 260px;
  }

  .contact-form {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
