:root {
  --cream: #FCF7F3;
  --cream-deep: #F3EAE3;
  --taupe: #A7A29C;
  --taupe-deep: #5C5750;
  --sand-line: #E5DAD1;
  --blush: #D8A9A2;
  --blush-deep: #C68D84;

  --font-display-latin: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-display-thai: 'Noto Serif Thai', 'Times New Roman', serif;
  --font-body-latin: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body-thai: 'Noto Sans Thai', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--cream);
  color: var(--taupe-deep);
  font-family: var(--font-body-thai), var(--font-body-latin);
  overflow-x: hidden;
  overflow-wrap: break-word;
  position: relative;
}

[lang-en] body,
html[data-lang="en"] body {
  font-family: var(--font-body-latin);
}

/* ---------- Ribbon backdrop ---------- */

.ribbon-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ribbon {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.r1 {
  width: 130vw;
  height: 60vh;
  top: -18vh;
  left: -35vw;
  background: linear-gradient(120deg, var(--blush) 0%, var(--cream-deep) 55%, var(--taupe) 100%);
  transform: rotate(-8deg);
  animation: drift1 26s ease-in-out infinite alternate;
}

.r2 {
  width: 110vw;
  height: 50vh;
  bottom: -20vh;
  right: -30vw;
  background: linear-gradient(200deg, var(--taupe) 0%, var(--cream-deep) 50%, var(--blush) 100%);
  transform: rotate(10deg);
  opacity: 0.4;
  animation: drift2 32s ease-in-out infinite alternate;
}

.r3 {
  width: 70vw;
  height: 70vw;
  top: 30vh;
  left: 50%;
  background: radial-gradient(circle, var(--cream-deep) 0%, transparent 70%);
  transform: translateX(-50%);
  opacity: 0.6;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift1 {
  from { transform: rotate(-8deg) translate(0, 0); }
  to   { transform: rotate(-4deg) translate(3vw, 4vh); }
}
@keyframes drift2 {
  from { transform: rotate(10deg) translate(0, 0); }
  to   { transform: rotate(6deg) translate(-3vw, -3vh); }
}

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 16px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  background: rgba(252, 247, 243, 0.72);
  backdrop-filter: blur(10px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--taupe-deep);
}

.nav-brand img {
  border-radius: 50%;
  display: block;
}

.nav-brand-text {
  font-family: var(--font-display-latin);
  font-size: 12px;
  letter-spacing: 2.5px;
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  display: none;
  color: var(--taupe-deep);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body-latin);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.lang-sep { color: var(--sand-line); }

.lang-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 4px 2px;
  color: var(--taupe);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lang-btn[aria-pressed="true"] {
  color: var(--blush-deep);
  font-weight: 700;
}

.nav-book {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--blush);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: background 0.18s ease;
}

.nav-book:hover { background: var(--blush-deep); }

@media (min-width: 640px) {
  .nav-link { display: inline; }
}

/* ---------- Buttons (shared) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-body-latin);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--blush);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(198, 141, 132, 0.55);
}

.btn-primary:hover {
  background: var(--blush-deep);
  box-shadow: 0 12px 28px -10px rgba(198, 141, 132, 0.65);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--sand-line);
  color: var(--taupe-deep);
}

.btn-ghost:hover { background: #fff; }

.link-icon {
  display: inline-flex;
  line-height: 0;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 24px 72px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blush-deep);
  animation: reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-title {
  min-width: 0;
  max-width: 100%;
  margin: 0 0 16px;
  font-family: var(--font-display-latin);
  font-style: italic;
  font-weight: 500;
  font-size: 34px;
  line-height: 1.28;
  color: var(--taupe-deep);
  animation: reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero-sub {
  max-width: 46ch;
  margin: 0 0 30px;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.1px;
  color: var(--taupe);
  animation: reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  animation: reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.hero-photo {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(92, 87, 80, 0.4);
  animation: reveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.22);
  display: block;
}

@media (min-width: 860px) {
  .hero {
    flex-direction: row;
    text-align: left;
    padding-top: 64px;
    padding-bottom: 96px;
  }
  .hero-copy { align-items: flex-start; }
  .eyebrow, .hero-actions { justify-content: flex-start; }
  .hero-title { font-size: 44px; }
  .hero-sub { margin-left: 0; }
  .hero-photo { max-width: 300px; flex-shrink: 0; }
}

/* ---------- Services ---------- */

.services {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px 90px;
  text-align: center;
}

.services-head { margin-bottom: 40px; }

.services h2 {
  margin: 0;
  font-family: var(--font-display-thai);
  font-weight: 600;
  font-size: 26px;
  color: var(--taupe-deep);
}

html[data-lang="en"] .services h2 {
  font-family: var(--font-display-latin);
  font-style: italic;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.service-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--sand-line);
  border-radius: 24px;
  padding: 18px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(92, 87, 80, 0.35);
}

.service-photo {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--taupe-deep);
}

.service-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--taupe);
}

/* ---------- Connect ---------- */

.connect {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 56px;
  text-align: center;
}

.connect-social {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.connect-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--sand-line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--taupe-deep);
  box-shadow: 0 8px 20px -12px rgba(92, 87, 80, 0.35);
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.connect-social a svg {
  width: 26px;
  height: 26px;
}

.connect-social a:hover {
  color: #fff;
  background: var(--blush);
  border-color: var(--blush);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -12px rgba(198, 141, 132, 0.55);
}

.connect-social a.line-badge {
  background: #06C755;
  border-color: #06C755;
  color: #fff;
}

.connect-social a.line-badge:hover {
  background: #05a648;
  border-color: #05a648;
}

/* ---------- Reviews ---------- */

.reviews {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 0 80px;
  text-align: center;
}

.reviews-head { padding: 0 24px; margin-bottom: 30px; }

.reviews h2 {
  margin: 0;
  font-family: var(--font-display-thai);
  font-weight: 600;
  font-size: 24px;
  color: var(--taupe-deep);
}

html[data-lang="en"] .reviews h2 {
  font-family: var(--font-display-latin);
  font-style: italic;
}

.reviews-body {
  position: relative;
}

.reviews-loading,
.reviews-fallback {
  padding: 30px 24px;
  color: var(--taupe);
  font-size: 13.5px;
}

.reviews-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.reviews-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  padding: 4px 24px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 260px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--sand-line);
  border-radius: 20px;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-stars {
  display: flex;
  gap: 2px;
  color: var(--blush);
}

.review-stars svg { display: block; }

.review-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--taupe-deep);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.review-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream-deep);
  flex-shrink: 0;
}

.review-avatar-fallback {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blush);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--taupe-deep);
}

.review-time {
  font-size: 11px;
  color: var(--taupe);
}

.reviews-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.reviews-nav button {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--sand-line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--taupe-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.reviews-nav button:hover {
  background: var(--blush);
  color: #fff;
}

.reviews-google-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blush-deep);
  text-decoration: none;
}

/* ---------- Location ---------- */

.location {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 90px;
  text-align: center;
}

.location-head { margin-bottom: 28px; }

.location h2 {
  margin: 0 0 10px;
  font-family: var(--font-display-thai);
  font-weight: 600;
  font-size: 24px;
  color: var(--taupe-deep);
}

html[data-lang="en"] .location h2 {
  font-family: var(--font-display-latin);
  font-style: italic;
}

.location-sub {
  max-width: 46ch;
  margin: 0 auto;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--taupe);
}

.location-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--sand-line);
  border-radius: 24px;
  padding: 14px;
}

.location-map {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.location-cta { width: 100%; }

@media (min-width: 480px) {
  .location-cta { width: auto; }
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px 44px;
  border-top: 1px solid var(--sand-line);
}

.footer-mark {
  border-radius: 50%;
  margin-bottom: 10px;
}

.footer-name {
  margin: 0 0 2px;
  font-family: var(--font-display-latin);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--taupe-deep);
  font-weight: 600;
}

.footer-loc {
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--taupe);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
  color: var(--taupe-deep);
}

.footer-social a {
  color: inherit;
  display: inline-flex;
  transition: color 0.18s ease;
}

.footer-social a:hover { color: var(--blush-deep); }

.footer-copyright {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--taupe);
}

/* ---------- i18n visibility ---------- */

[data-i18n] { display: inline; }
[data-i18n][hidden] { display: none !important; }
