/* ============================================================
   FIN RELAX — Mobile Massage, Kuala Lumpur
   Shared design system  ·  "The ritual comes to you."
   Aesthetic: warm luxe minimal · sage-led · Fraunces + Inter
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..500&family=Inter:wght@400;500;600&display=swap');

/* ---- Design tokens ---- */
:root {
  --oat:      #F3EEE7;
  --oat-deep: #EAE3D7;
  --mist:     #E4DDD1;
  --espresso: #2A2724;
  --espresso-soft: #4A443D;
  --sage:     #5B6650;
  --sage-deep:#434C3A;
  --clay:     #B87B5C;
  --clay-deep:#A66A4C;
  --line:     rgba(42,39,36,0.12);

  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1:  clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  --step-2:  clamp(1.7rem, 1.4rem + 1.4vw, 2.4rem);
  --step-3:  clamp(2.3rem, 1.7rem + 2.8vw, 3.6rem);
  --step-4:  clamp(3rem, 2rem + 5vw, 6rem);

  --shadow: 0 18px 50px -24px rgba(42,39,36,0.35);
  --shadow-sm: 0 8px 24px -16px rgba(42,39,36,0.4);
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--espresso);
  background: var(--oat);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---- Typography ---- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.06; letter-spacing: -0.02em; color: var(--espresso); }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
.serif-italic { font-style: italic; color: var(--sage); }

.eyebrow {
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--clay);
  display: inline-block;
}

/* ---- Layout ---- */
.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 8rem) 0; }
.section--tint { background: var(--oat-deep); }
.section--sage { background: var(--sage-deep); color: var(--oat); }
.section--sage h2, .section--sage h3 { color: var(--oat); }
.lead { font-size: var(--step-1); color: var(--espresso-soft); max-width: 42ch; line-height: 1.5; }
.muted { color: var(--espresso-soft); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.6em;
  border-radius: 100px;
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
  will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--clay); color: #fff; box-shadow: 0 10px 30px -12px rgba(184,123,92,0.7); }
.btn--primary:hover { background: var(--clay-deep); transform: translateY(-3px); box-shadow: 0 18px 38px -14px rgba(184,123,92,0.8); }
.btn--ghost { background: transparent; color: var(--espresso); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--sage); color: var(--sage); transform: translateY(-2px); }
.btn--light { background: var(--oat); color: var(--espresso); }
.btn--light:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ---- Header ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
/* subtle top scrim so nav links stay readable over any hero imagery (removed once scrolled/frosted) */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(243,238,231,0.55), rgba(243,238,231,0));
  opacity: 1; transition: opacity 0.4s var(--ease);
}
.site-header.scrolled::before { opacity: 0; }
.nav a { color: var(--espresso); }
.site-header.scrolled {
  background: rgba(243,238,231,0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand { font-family: var(--display); font-size: 1.4rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.55rem; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--clay); display: inline-block; }
.brand b { font-weight: 500; }
.brand span { font-weight: 300; font-style: italic; color: var(--sage); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav a { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.02em; position: relative; padding: 0.3em 0; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--clay); transition: width 0.35s var(--ease);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav .btn { padding: 0.7em 1.3em; font-size: var(--step--1); }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.menu-toggle { display: none; }

@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.8rem;
    background: var(--oat); padding: 2rem; box-shadow: -20px 0 60px -20px rgba(0,0,0,0.3);
    transform: translateX(100%); transition: transform 0.5s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: var(--step-1); font-family: var(--display); }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; z-index: 110; padding: 8px; }
  .menu-toggle span { width: 26px; height: 2px; background: var(--espresso); transition: 0.3s var(--ease); display: block; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---- Footer (premium) ---- */
.site-footer { position: relative; background: var(--espresso); color: var(--oat); padding: 0 0 2rem; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; top: -30%; right: -8%; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,123,92,0.22), transparent 62%); pointer-events: none; }
.site-footer::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--clay), var(--sage)); opacity: 0.9; }
.site-footer a:hover { color: var(--clay); }
.site-footer .wrap { position: relative; z-index: 1; }

.footer-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
  padding: clamp(2.5rem,5vw,3.5rem) 0; border-bottom: 1px solid rgba(243,238,231,0.14); }
.footer-cta h3 { font-size: clamp(1.6rem,3vw,2.4rem); color: var(--oat); max-width: 18ch; }
.footer-cta h3 span { font-style: italic; color: var(--clay); }

.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr; gap: clamp(2rem,4vw,3.5rem); padding: clamp(2.5rem,5vw,3.5rem) 0; border-bottom: 1px solid rgba(243,238,231,0.14); }
.footer-grid h4 { font-family: var(--body); font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(243,238,231,0.55); margin-bottom: 1.2rem; font-weight: 600; }
.footer-brand { font-family: var(--display); font-size: clamp(1.8rem,3vw,2.3rem); margin-bottom: 0.9rem; letter-spacing: -0.01em; }
.footer-brand span { font-style: italic; color: var(--clay); }
.footer-col p, .footer-col li { color: rgba(243,238,231,0.72); margin-bottom: 0.55rem; font-size: var(--step--1); }
.footer-col ul { list-style: none; }

/* Explore → sleek shaded pill buttons */
.footer-col--explore ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col--explore li { margin: 0; }
.footer-col--explore li a {
  display: inline-flex; align-items: center; gap: 0.6em; padding: 0.5em 1.1em;
  border-radius: 100px; font-size: var(--step--1); font-weight: 500; letter-spacing: 0.01em;
  background: linear-gradient(120deg, rgba(243,238,231,0.09), rgba(243,238,231,0.03));
  box-shadow: inset 0 0 0 1px rgba(243,238,231,0.12);
  color: rgba(243,238,231,0.85);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.3s;
}
.footer-col--explore li a::before { content: '→'; color: var(--clay); opacity: 0; margin-right: -0.6em; transition: opacity 0.3s var(--ease), margin 0.3s var(--ease); }
.footer-col--explore li a:hover { transform: translateX(4px); color: #fff; background: linear-gradient(120deg, rgba(184,123,92,0.35), rgba(184,123,92,0.12)); box-shadow: inset 0 0 0 1px rgba(184,123,92,0.5); }
.footer-col--explore li a:hover::before { opacity: 1; margin-right: 0; }

/* Get in touch — WhatsApp highlighted green */
.footer-contact { list-style: none; display: grid; gap: 0.7rem; }
.footer-contact li { margin: 0; }
.contact-wa {
  display: inline-flex; align-items: center; gap: 0.6em; padding: 0.6em 1.1em; border-radius: 100px;
  background: linear-gradient(120deg, rgba(37,211,102,0.22), rgba(37,211,102,0.08));
  box-shadow: inset 0 0 0 1px rgba(37,211,102,0.45);
  color: #dfeee2 !important; font-weight: 600;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.contact-wa svg { width: 18px; height: 18px; fill: #25D366; flex-shrink: 0; }
.contact-wa:hover { transform: translateY(-2px); background: linear-gradient(120deg, rgba(37,211,102,0.4), rgba(37,211,102,0.16)); box-shadow: inset 0 0 0 1px rgba(37,211,102,0.7), 0 10px 24px -14px rgba(37,211,102,0.8); color: #fff !important; }
/* Call button — matches WhatsApp pill, in the clay brand colour */
.contact-call {
  display: inline-flex; align-items: center; gap: 0.6em; padding: 0.6em 1.1em; border-radius: 100px;
  background: linear-gradient(120deg, rgba(184,123,92,0.24), rgba(184,123,92,0.08));
  box-shadow: inset 0 0 0 1px rgba(184,123,92,0.5);
  color: #f0dccf !important; font-weight: 600;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.contact-call svg { width: 18px; height: 18px; fill: var(--clay); flex-shrink: 0; }
.contact-call:hover { transform: translateY(-2px); background: linear-gradient(120deg, rgba(184,123,92,0.42), rgba(184,123,92,0.16)); box-shadow: inset 0 0 0 1px rgba(184,123,92,0.75), 0 10px 24px -14px rgba(184,123,92,0.85); color: #fff !important; }

.contact-line { display: inline-flex; align-items: center; gap: 0.55em; color: rgba(243,238,231,0.72); font-size: var(--step--1); }
.contact-line svg { width: 15px; height: 15px; stroke: var(--clay); fill: none; stroke-width: 2; opacity: 0.85; flex-shrink: 0; }

.socials { display: flex; gap: 0.7rem; margin-top: 1.6rem; flex-wrap: wrap; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(243,238,231,0.06); color: var(--oat);
  box-shadow: inset 0 0 0 1px rgba(243,238,231,0.14);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.3s;
}
.socials a svg { width: 19px; height: 19px; transition: transform 0.4s var(--ease); }
.socials a:hover { transform: translateY(-5px); color: #fff; }
.socials a:hover svg { transform: scale(1.1); }
/* brand-colour glow per platform on hover */
.socials a[aria-label="Facebook"]:hover  { background: linear-gradient(135deg, #1877F2, #0f5ec9); box-shadow: 0 12px 28px -12px rgba(24,119,242,0.85); }
.socials a[aria-label="Instagram"]:hover { background: linear-gradient(135deg, #f09433, #e6683c 30%, #dc2743 60%, #cc2366 80%, #bc1888); box-shadow: 0 12px 28px -12px rgba(220,39,67,0.85); }
.socials a[aria-label="X (Twitter)"]:hover { background: linear-gradient(135deg, #2b2b2b, #000); box-shadow: 0 12px 28px -12px rgba(0,0,0,0.9); }
.socials a[aria-label="TikTok"]:hover    { background: linear-gradient(135deg, #25F4EE, #000 55%, #FE2C55); box-shadow: 0 12px 28px -12px rgba(254,44,85,0.8); }
.socials a[aria-label="Pinterest"]:hover { background: linear-gradient(135deg, #E60023, #b3001b); box-shadow: 0 12px 28px -12px rgba(230,0,35,0.85); }
.footer-social-label { font-family: var(--body); font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(243,238,231,0.55); font-weight: 600; }

.footer-bottom { padding-top: 1.8rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: var(--step--1); color: rgba(243,238,231,0.55); }
.footer-bottom .made { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-bottom .made b { color: rgba(243,238,231,0.75); font-weight: 500; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
  .footer-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-cta { justify-content: flex-start; }
  .footer-bottom { justify-content: flex-start; }
}

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Utility ---- */
.center { text-align: center; }
.stack > * + * { margin-top: 1.2rem; }
.pill { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.4em 0.9em; border-radius: 100px; background: var(--mist); font-size: var(--step--1); font-weight: 500; color: var(--sage-deep); }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; }
.section-head h2 { margin: 0.8rem 0 1rem; }

/* ============================================================
   GLOBAL RESPONSIVE LAYER — auto-adjusts across every device.
   ============================================================ */
img, svg, video, iframe { max-width: 100%; height: auto; }
.wrap, .section, main, .footer-grid, .hero-inner, .selector, .why, .steps,
.tstack, .book-grid, .areas, .info-strip, .treatments, .treatment { min-width: 0; }

@media (min-width: 1600px) {
  :root { --maxw: 1360px; }
  body { font-size: 1.18rem; }
}
@media (min-width: 2200px) {
  :root { --maxw: 1560px; }
  body { font-size: 1.28rem; }
  .wrap { width: min(var(--maxw), 82vw); }
}
@media (max-width: 1024px) {
  .wrap { width: min(var(--maxw), 90vw); }
  .section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
}
@media (max-width: 768px) {
  .nav .btn { padding: 0.8em 1.2em; }
  .section { padding: clamp(3rem, 10vw, 5rem) 0; }
  .section-head { margin-bottom: 2.2rem; }
}
@media (max-width: 560px) {
  html { font-size: 15px; }
  .wrap { width: min(var(--maxw), 92vw); }
  .btn { padding: 0.9em 1.4em; }
  .hero-actions .btn, .cta-band .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 360px) {
  html { font-size: 14px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .section { padding: 3rem 0; }
}

/* ---- Live reviews band (feedback + homepage) ---- */
.lr-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; max-width: 760px; margin: 0 auto clamp(2rem,4vw,3rem); text-align: center; }
.lr-stat .lr-k { font-family: var(--display); font-size: var(--step-3); color: var(--sage); line-height: 1; }
.lr-stat .lr-l { font-size: var(--step--1); color: var(--espresso-soft); letter-spacing: 0.02em; margin-top: 0.3rem; }
@media (max-width:560px){ .lr-stats { grid-template-columns: 1fr; gap: 1rem; } }
.lr-marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lr-track { display: flex; flex-wrap: nowrap; width: max-content; gap: 1.2rem; animation: lrslide 42s linear infinite; }
.lr-card { flex: 0 0 auto; width: min(340px, 78vw); background: var(--oat); border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.8rem; }
.lr-card-stars { color: var(--clay); letter-spacing: 3px; font-size: 1.05rem; }
.lr-card-text { font-family: var(--display); font-size: var(--step-0); line-height: 1.4; color: var(--espresso); }
.lr-card-who { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.lr-av { width: 36px; height: 36px; border-radius: 50%; background: var(--sage); color: var(--oat); display: grid; place-items: center; font-weight: 600; font-size: 0.9rem; flex-shrink: 0; }
.lr-card-who b { font-size: var(--step--1); display: block; }
.lr-card-who small { color: var(--espresso-soft); font-size: 0.8rem; }
@keyframes lrslide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .lr-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---- Language switcher (quiet dropdown) ---- */
.lang-switch { position: relative; display: inline-block; }
.lang-current {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--body); font-size: var(--step--1); font-weight: 500; letter-spacing: 0.02em;
  color: var(--espresso); padding: 0.42em 0.85em; border-radius: 100px;
  background: rgba(243,238,231,0.45); box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(6px); cursor: pointer; line-height: 1;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lang-current:hover { background: rgba(255,255,255,0.65); box-shadow: inset 0 0 0 1px rgba(184,123,92,0.5); }
.site-header.scrolled .lang-current { background: rgba(255,255,255,0.5); }
.lang-current .globe { width: 15px; height: 15px; stroke: var(--sage); fill: none; stroke-width: 1.8; flex-shrink: 0; }
.lang-current .caret { width: 9px; height: 9px; stroke: var(--espresso-soft); fill: none; stroke-width: 2; transition: transform 0.35s var(--ease); }
.lang-switch.open .lang-current .caret { transform: rotate(180deg); }
.lang-switch.open .lang-current { background: rgba(255,255,255,0.7); box-shadow: inset 0 0 0 1px rgba(184,123,92,0.6); }

.lang-menu {
  position: absolute; top: calc(100% + 0.55rem); right: 0; z-index: 120;
  min-width: 168px; padding: 0.4rem; border-radius: 14px;
  background: rgba(243,238,231,0.97); backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px -18px rgba(42,39,36,0.4), inset 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  max-height: 60vh; overflow-y: auto;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.lang-item {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  text-align: left; padding: 0.62em 0.85em; border-radius: 9px;
  font-family: var(--body); font-size: var(--step--1); color: var(--espresso);
  line-height: 1.2; transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-item:hover { background: rgba(184,123,92,0.12); }
.lang-item .native { font-weight: 500; }
.lang-item .en-name { font-size: 0.72rem; color: var(--espresso-soft); }
.lang-item .tick { width: 15px; height: 15px; stroke: var(--clay); fill: none; stroke-width: 2.2; opacity: 0; flex-shrink: 0; }
.lang-item.is-active { background: rgba(184,123,92,0.1); }
.lang-item.is-active .native { color: var(--clay); font-weight: 600; }
.lang-item.is-active .tick { opacity: 1; }

@media (max-width: 820px) {
  /* On mobile the switcher sits at the top of the slide-in menu; menu opens in flow */
  .lang-switch { order: -1; margin-bottom: 0.4rem; width: 100%; }
  .lang-current { width: 100%; justify-content: space-between; font-size: var(--step-0); font-family: var(--display); }
  .lang-menu { position: static; width: 100%; margin-top: 0.5rem; box-shadow: inset 0 0 0 1px var(--line); }
}
