/* =========================
  MODERN FONT
  Free Google Fonts:
  - Inter: Modern English/UI font
  - Noto Sans Thai: Clean Thai UI font
========================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+Thai:wght@400;500;600;700;800;900&display=swap");

/* =========================
  BASE STYLE
========================== */
:root {
  --font-main: "Noto Sans Thai", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --bg: #fffaf7;
  --bg-soft: #f8ede8;
  --card: #ffffff;
  --text: #2b2523;
  --muted: #746a66;
  --primary: #d8787c;
  --primary-dark: #bf5e63;
  --gold: #c99b62;
  --border: rgba(43, 37, 35, 0.1);
  --shadow: 0 24px 70px rgba(79, 50, 44, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body[data-lang="en"] {
  letter-spacing: -0.01em;
}

body[data-lang="th"] {
  letter-spacing: -0.015em;
}

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

img,
svg {
  max-width: 100%;
}

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

.section-padding {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  padding: 92px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 680px;
  font-size: clamp(3rem, 7vw, 6.4rem);
}

h2 {
  font-size: clamp(2.15rem, 4vw, 4rem);
}

h3 {
  font-size: 1.28rem;
  letter-spacing: -0.035em;
}

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

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: -0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 26px rgba(216, 120, 124, 0.32);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  box-shadow: 0 12px 28px rgba(79, 50, 44, 0.1);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

/* =========================
  NAVBAR / HERO
========================== */
.site-header {
  position: relative;
  overflow: hidden;
  padding-top: 92px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.95), transparent 28%),
    linear-gradient(120deg, #fff7f2 0%, #f8e6dd 48%, #fffaf7 100%);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 88% 16%, rgba(216, 120, 124, 0.12) 0, transparent 26%),
    radial-gradient(circle at 10% 70%, rgba(201, 155, 98, 0.12) 0, transparent 24%);
}

.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: min(calc(100% - 32px), var(--container));
  min-height: 76px;
  margin-inline: auto;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 250, 247, 0.72);
  box-shadow: 0 14px 40px rgba(79, 50, 44, 0.08);
  backdrop-filter: blur(18px) saturate(1.14);
  -webkit-backdrop-filter: blur(18px) saturate(1.14);
  transform: translateX(-50%);
  transition:
    top 0.28s ease,
    min-height 0.28s ease,
    padding 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.navbar.is-scrolled {
  top: 12px;
  min-height: 68px;
  padding: 10px 14px;
  border-color: rgba(216, 120, 124, 0.18);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 18px 48px rgba(79, 50, 44, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.navbar.is-scrolled .brand-mark {
  width: 42px;
  height: 42px;
  font-size: 1.28rem;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: #fff;
  box-shadow: 0 12px 28px rgba(79, 50, 44, 0.1);
  font-size: 1.5rem;
  transition: width 0.28s ease, height 0.28s ease, font-size 0.28s ease;
}

.brand small {
  display: block;
  color: var(--gold);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-menu a {
  position: relative;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav-menu a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transform: translateX(-50%);
  transition: width 0.24s ease;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a:not(.nav-cta):hover::after {
  width: 18px;
}

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(216, 120, 124, 0.25);
}

.language-switcher {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(79, 50, 44, 0.08);
}

.lang-btn {
  min-width: 44px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.is-active {
  color: #fff;
  background: var(--primary);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 28px rgba(79, 50, 44, 0.1);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 92px);
  padding-top: 46px;
}

.hero-description {
  max-width: 600px;
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 600px;
  margin-top: 34px;
}

.hero-stats div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  color: var(--primary);
  font-size: 1.7rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 570px;
  padding: 24px 38px 28px 38px;
  overflow: visible;
}

.beauty-card {
  position: relative;
  min-height: 570px;
  border-radius: 44px;
  overflow: visible;
  animation: premiumHeroFloat 7.5s ease-in-out infinite;
}

.beauty-media {
  position: relative;
  min-height: 570px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 44px;
  overflow: hidden;
  background: linear-gradient(160deg, #f2c9bd, #f8e2d9 52%, #fff6f0);
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 570px;
  object-fit: cover;
  display: block;
  transform: scale(1.015);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
}

.floating-note {
  position: absolute;
  z-index: 6;
  max-width: 220px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 18px 38px rgba(79, 50, 44, 0.14),
    0 6px 16px rgba(79, 50, 44, 0.08);
  backdrop-filter: blur(14px);
  animation: softFloat 5.8s ease-in-out infinite;
}

.floating-note strong {
  display: block;
  margin-bottom: 2px;
}

.floating-note span {
  color: var(--muted);
  font-size: 0.9rem;
}

.note-top {
  top: 34px;
  right: -34px;
  transform: rotate(1.2deg);
}

.note-bottom {
  bottom: 54px;
  left: -42px;
  transform: rotate(-1.2deg);
  animation-delay: -2.2s;
}

/* =========================
  SERVICES
========================== */
.services-grid,
.reviews-grid,
.pricing-grid {
  display: grid;
  gap: 22px;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.review-card,
.pricing-card,
.contact-form,
.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 14px 36px rgba(79, 50, 44, 0.07);
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 16px 16px 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  border-radius: 22px;
  object-fit: cover;
  display: block;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: -47px 0 22px 12px;
  position: relative;
  z-index: 2;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--bg-soft);
  font-size: 1.4rem;
}

.service-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 900;
}

/* =========================
  ABOUT
========================== */
.about {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 46px;
  align-items: center;
}

.about-visual {
  min-height: 460px;
}

.clinic-room {
  position: relative;
  display: grid;
  min-height: 460px;
  place-items: end start;
  padding: 34px;
  border-radius: 40px;
  overflow: hidden;
  background: linear-gradient(140deg, #eecbbe, #fff4ee 58%, #dfb59f);
  box-shadow: var(--shadow);
}

.about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clinic-room span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 900;
}

.about-content {
  padding: 20px 0;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
}

.check-list li::before {
  content: "✓";
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 0.82rem;
}

/* =========================
  REVIEWS
========================== */
.reviews {
  width: 100%;
  max-width: none;
  background: linear-gradient(180deg, transparent, #fff1eb, transparent);
}

.reviews > * {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

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

.review-card {
  padding: 30px;
}

.review-avatar {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(79, 50, 44, 0.12);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.08em;
}

/* =========================
  PRICING
========================== */
.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.pricing-card {
  position: relative;
  padding: 34px;
}

.pricing-card.featured {
  transform: translateY(-12px);
  border-color: rgba(216, 120, 124, 0.42);
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price {
  margin: 18px 0;
  color: var(--primary);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 28px;
  color: var(--muted);
  list-style: none;
}

.pricing-card li::before {
  content: "✓ ";
  color: var(--gold);
  font-weight: 900;
}

/* =========================
  FAQ
========================== */
.faq {
  width: 100%;
  max-width: none;
  background: #fff4ee;
}

.faq > * {
  width: min(100% - 32px, 900px);
  margin-inline: auto;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 22px 24px;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.4rem;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin-bottom: 0;
}

/* =========================
  CONTACT
========================== */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 42px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.contact-info p {
  margin: 0;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 900;
}

.contact-form label:nth-child(5),
.consent-box,
.contact-form button,
.form-message {
  grid-column: 1 / -1;
}

.consent-box {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(216, 120, 124, 0.14);
  border-radius: 18px;
  background: rgba(255, 250, 247, 0.72);
}

.compact-consent {
  box-shadow: 0 10px 24px rgba(79, 50, 44, 0.04);
}

.consent-row {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px !important;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700 !important;
  line-height: 1.55;
}

.consent-row input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--primary);
  cursor: pointer;
}

.privacy-note {
  margin: 0 0 0 28px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.privacy-link,
.privacy-inline-link {
  width: fit-content;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 120, 124, 0.42);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.privacy-inline-link {
  display: inline-flex;
  margin-left: 6px;
  white-space: nowrap;
}

.privacy-link:hover,
.privacy-inline-link:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fffaf7;
  padding: 14px 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(216, 120, 124, 0.72);
  box-shadow: 0 0 0 4px rgba(216, 120, 124, 0.12);
}

.form-message {
  margin: 0;
  font-weight: 900;
}

.form-message.success {
  color: #2f8f63;
}

.form-message.error {
  color: #c84b4b;
}

/* =========================
  FOOTER
========================== */
.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 44px max(16px, calc((100% - var(--container)) / 2));
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer h3 {
  margin-bottom: 6px;
}

.footer p {
  margin: 0;
}

.footer > p {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 900;
}



/* =========================
  PREMIUM MOTION SYSTEM
  Motion principle:
  - Soft, slow, and useful
  - No aggressive bouncing
  - Supports reduced-motion preference
========================== */
body {
  overflow-x: hidden;
}

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -60% auto -60% -45%;
  z-index: -1;
  width: 44%;
  transform: skewX(-18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.38),
    transparent
  );
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover::before {
  left: 118%;
}

.btn-primary {
  animation: premiumCtaBreath 4.8s ease-in-out infinite;
}

.ambient-orb {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(4px);
  opacity: 0.56;
  animation: ambientDrift 9s ease-in-out infinite alternate;
}

.orb-one {
  top: 12%;
  left: -24px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(216, 120, 124, 0.22), transparent 68%);
}

.orb-two {
  right: 4%;
  bottom: 14%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(201, 155, 98, 0.18), transparent 68%);
  animation-duration: 11s;
  animation-delay: -2s;
}

.beauty-card {
  transform-origin: center;
}

.beauty-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.18) 49%, transparent 60%),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.25), transparent 26%);
  mix-blend-mode: screen;
  transform: translateX(-18%);
  animation: premiumLightSweep 8.5s ease-in-out infinite;
}

.beauty-media {
  position: relative;
  min-height: 570px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 44px;
  overflow: hidden;
  background: linear-gradient(160deg, #f2c9bd, #f8e2d9 52%, #fff6f0);
  box-shadow: var(--shadow);
}

.hero-photo {
  transform: scale(1.015);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
}

.beauty-card:hover .beauty-media {
  position: relative;
  min-height: 570px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 44px;
  overflow: hidden;
  background: linear-gradient(160deg, #f2c9bd, #f8e2d9 52%, #fff6f0);
  box-shadow: var(--shadow);
}

.hero-photo {
  transform: scale(1.055);
  filter: saturate(1.04) contrast(1.02);
}

.floating-note {
  animation: softFloat 5.8s ease-in-out infinite;
}

.note-bottom {
  animation-delay: -2.2s;
}

.service-card,
.review-card,
.pricing-card,
.faq-list details,
.contact-form {
  will-change: transform;
}

.service-image,
.about-photo,
.review-avatar {
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), filter 0.85s ease;
}

.service-card:hover .service-image {
  transform: scale(1.06);
  filter: saturate(1.04) contrast(1.02);
}

.service-card:hover .service-icon {
  animation: iconSoftPulse 1.1s ease-in-out;
}

.review-card:hover,
.pricing-card:hover,
.faq-list details:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.review-card:hover .review-avatar {
  transform: scale(1.08) rotate(-2deg);
}

.pricing-card.featured::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(216, 120, 124, 0.28), rgba(201, 155, 98, 0.18), rgba(216, 120, 124, 0.2));
  opacity: 0.58;
  filter: blur(18px);
  animation: premiumGlow 5.4s ease-in-out infinite;
}

.contact-form {
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 120, 124, 0.12), transparent 68%);
  pointer-events: none;
}

input:focus,
select:focus,
textarea:focus {
  transform: translateY(-1px);
}

@keyframes premiumHeroFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(-0.45deg);
  }
}

@keyframes softFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -9px, 0);
  }
}

@keyframes ambientDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(24px, -18px, 0) scale(1.08);
  }
}

@keyframes premiumLightSweep {
  0%, 56%, 100% {
    transform: translateX(-48%);
    opacity: 0;
  }
  72% {
    transform: translateX(36%);
    opacity: 1;
  }
}

@keyframes premiumCtaBreath {
  0%, 100% {
    box-shadow: 0 14px 26px rgba(216, 120, 124, 0.28);
  }
  50% {
    box-shadow: 0 18px 38px rgba(216, 120, 124, 0.38);
  }
}

@keyframes iconSoftPulse {
  0%, 100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
  }
}

@keyframes premiumGlow {
  0%, 100% {
    opacity: 0.44;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.01);
  }
}

/* AOS polish */
[data-aos] {
  pointer-events: auto;
}

[data-aos="premium-fade-up"] {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  transition-property: opacity, transform;
}

[data-aos="premium-fade-up"].aos-animate {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =========================
  ANIMATION
========================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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



/* =========================
  THAI HEADING FIX
  Fix Thai desktop heading wrap/cropping:
  - Increase line-height for Thai glyphs
  - Reduce negative letter spacing
  - Prevent key short words from breaking mid-word
========================== */
body[data-lang="th"] h1,
body[data-lang="th"] h2,
body[data-lang="th"] h3 {
  line-height: 1.18;
  letter-spacing: -0.028em;
  font-weight: 800;
}

body[data-lang="th"] h1 {
  font-size: clamp(2.85rem, 6.4vw, 5.85rem);
}

body[data-lang="th"] h2 {
  font-size: clamp(2.05rem, 3.65vw, 3.7rem);
}

body[data-lang="th"] .contact-content h2 {
  max-width: 760px;
  line-height: 1.18;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

.heading-nowrap {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  body[data-lang="th"] h1 {
    font-size: clamp(2.65rem, 8vw, 4.9rem);
  }

  body[data-lang="th"] h2 {
    font-size: clamp(2rem, 5.6vw, 3.45rem);
  }
}

@media (max-width: 640px) {
  body[data-lang="th"] h1,
  body[data-lang="th"] h2,
  body[data-lang="th"] h3 {
    line-height: 1.2;
    letter-spacing: -0.018em;
  }

  body[data-lang="th"] h1 {
    font-size: clamp(2.55rem, 13vw, 4.1rem);
  }

  body[data-lang="th"] h2 {
    font-size: clamp(2rem, 9.5vw, 3rem);
  }

  .heading-nowrap {
    white-space: normal;
  }
}

/* =========================
  RESPONSIVE
========================== */
@media (max-width: 1080px) {
  .navbar {
    grid-template-columns: auto auto auto;
    top: 12px;
    min-height: 66px;
    padding: 10px 12px;
    border-radius: 28px;
  }

  .site-header {
    padding-top: 82px;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .language-switcher {
    order: 2;
    justify-self: end;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    display: block;
    padding: 14px;
  }

  .hero,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .beauty-card,
  .beauty-media {
  position: relative;
  min-height: 570px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 44px;
  overflow: hidden;
  background: linear-gradient(160deg, #f2c9bd, #f8e2d9 52%, #fff6f0);
  box-shadow: var(--shadow);
}

.hero-photo {
    min-height: 520px;
  }

  .services-grid,
  .reviews-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-card.featured {
    transform: none;
  }
}

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

  .navbar {
    gap: 10px;
    width: min(calc(100% - 20px), var(--container));
    top: 10px;
    border-radius: 24px;
  }

  .site-header {
    padding-top: 78px;
  }

  .brand small {
    font-size: 0.58rem;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .lang-btn {
    min-width: 38px;
    min-height: 32px;
    font-size: 0.85rem;
  }

  .hero-stats,
  .services-grid,
  .reviews-grid,
  .pricing-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .beauty-card,
  .beauty-media,
  .hero-photo,
  .about-visual,
  .clinic-room {
    min-height: 390px;
  }

  .hero-visual {
    padding: 14px 14px 24px 14px;
  }

  .floating-note {
    max-width: 170px;
    padding: 13px 14px;
    border-radius: 16px;
  }

  .floating-note strong {
    font-size: 0.92rem;
  }

  .floating-note span {
    font-size: 0.78rem;
  }

  .note-top {
    top: 16px;
    right: -8px;
  }

  .note-bottom {
    bottom: 16px;
    left: -8px;
  }

  .floating-note {
    max-width: 190px;
  }

  

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

  .footer-links {
    flex-direction: column;
  }
}


/* =========================
  PRIVACY PAGE
========================== */
.privacy-page {
  max-width: 900px;
}

.privacy-content {
  margin-top: 32px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 14px 36px rgba(79, 50, 44, 0.07);
}

.privacy-content h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 18px;
}

.privacy-content h2 {
  margin-top: 32px;
  font-size: 1.4rem;
  letter-spacing: -0.035em;
}

.privacy-content hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

/* Compact consent mobile tweak */

@media (max-width: 640px) {
  .consent-box {
    padding: 13px 14px;
  }

  .consent-row {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .privacy-note {
    margin-left: 28px;
    font-size: 0.76rem;
  }

  .privacy-inline-link {
    display: inline;
    margin-left: 4px;
  }
}
