:root {
  --burgundy: #6e0f1e;
  --burgundy-dark: #5a1320;
  --gold: #c8a65c;
  --ivory: #fbf8f2;
  --paper: #fffefa;
  --charcoal: #3c332d;
  --muted: #7b7068;
  --line: rgba(160, 123, 70, 0.18);
  --serif: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --sans: Inter, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 48px rgba(111, 79, 48, 0.11);
  --soft-shadow: 0 10px 30px rgba(111, 79, 48, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--charcoal);
  background: linear-gradient(145deg, #fffdf8 0%, #f7efe4 52%, #fbf8f2 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .024;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 78px;
  padding: env(safe-area-inset-top) 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
body.home-view .topbar .mini-brand { visibility: hidden; }
.mini-brand {
  min-height: 52px;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--burgundy);
  background: transparent;
}
.mini-brand b {
  font: 600 10px var(--serif);
  letter-spacing: .2em;
}
.lang {
  display: flex;
  padding: 4px;
  border: 1px solid rgba(110, 15, 30, .08);
  border-radius: 999px;
  background: rgba(250, 247, 242, .9);
  box-shadow: 0 7px 22px rgba(39, 24, 20, .06);
  backdrop-filter: blur(16px);
}
.lang button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
}
.lang button.active { color: white; background: var(--burgundy); }

.screen {
  display: none;
  min-height: 100svh;
  animation: screen-in .55s cubic-bezier(.22, .8, .22, 1);
}
.screen.active { display: block; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 112px 24px 56px;
  overflow: hidden;
  color: var(--charcoal);
  background-image:
    linear-gradient(90deg, rgba(255, 252, 245, .96) 0%, rgba(250, 242, 231, .88) 45%, rgba(244, 229, 211, .38) 100%),
    url("../images/branch-cheras.webp");
  background-size: cover;
  background-position: 58% center;
}
.hero.active { display: flex; align-items: flex-end; }
.hero-brand {
  position: absolute;
  z-index: 3;
  top: max(26px, env(safe-area-inset-top));
  left: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-brand img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201,163,74,.42);
  box-shadow: 0 12px 34px rgba(91,63,37,.14);
}
.hero-brand div { display: grid; gap: 5px; }
.hero-brand strong,
.hero-brand span { font-family: var(--serif); letter-spacing: .18em; }
.hero-brand strong { color: var(--burgundy); font-size: 15px; font-weight: 500; }
.hero-brand span { color: #5e5047; font-size: 12px; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(transparent, rgba(236, 217, 193, .34));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  padding-left: 18px;
  border-left: 1px solid var(--gold);
}
.hero .seal, .hero .rule { display: none; }
.hero .overline {
  margin: 0 0 6px;
  color: #e3c576;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .28em;
}
.hero h1 {
  margin: 0 0 36px;
  color: rgba(255, 255, 255, .82);
  font: 500 12px/1 var(--serif);
  letter-spacing: .34em;
}
.tagline {
  margin: 0 0 38px;
  color: #493b32;
  font: 400 clamp(40px, 12vw, 72px)/1.02 var(--serif);
  letter-spacing: -.025em;
  text-shadow: 0 2px 20px rgba(255, 255, 255, .72);
}
.cta {
  min-height: 58px;
  margin: 0;
  padding: 0 22px;
  border: 1px solid rgba(146, 106, 39, .18);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  color: #4a3518;
  background: linear-gradient(110deg, #d6b96f, #f0db9f);
  box-shadow: 0 16px 38px rgba(126, 88, 32, .16);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 20px 38px rgba(28, 15, 6, .28); }
.cta b { font-size: 18px; font-weight: 400; }
.cta:disabled { opacity: .42; filter: grayscale(1); box-shadow: none; }

.flow {
  width: min(100%, 1060px);
  margin: auto;
  padding: 108px 20px 110px;
}
.flow-head { margin-bottom: 34px; }
.back {
  width: 52px;
  height: 52px;
  margin: 0 0 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--burgundy);
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 8px 24px rgba(56, 35, 28, .04);
  font-size: 18px;
}
.step { display: flex; align-items: center; gap: 10px; color: var(--burgundy); font: 16px var(--serif); }
.step i { width: 48px; height: 1px; background: var(--gold); }
.step small { color: #aaa09a; font: 9px var(--sans); }
.flow-head > p:not(.intro) {
  margin: 21px 0 9px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .25em;
}
.flow h2, .thanks h2 {
  margin: 0;
  color: var(--burgundy);
  font: 400 clamp(42px, 11vw, 68px)/.98 var(--serif);
  letter-spacing: -.025em;
}
.intro { margin: 17px 0 0; color: var(--muted); font: 17px/1.5 var(--serif); }

.card-grid { display: grid; gap: 14px; }
.lux-card {
  position: relative;
  min-height: 140px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(110, 15, 30, .08);
  border-radius: 14px;
  color: var(--charcoal);
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  text-align: left;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.lux-card:hover, .lux-card.selected {
  transform: translateY(-4px);
  border-color: rgba(201, 163, 74, .72);
  box-shadow: var(--shadow);
}
.lux-card.selected { outline: 1px solid var(--gold); }
.lux-card h3 { margin: 0; color: var(--burgundy); font: 500 21px/1.1 var(--serif); }
.lux-card p { margin: 7px 0 0; color: var(--muted); font-size: 8px; line-height: 1.35; letter-spacing: .13em; text-transform: uppercase; }
.lux-card .check {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 163, 74, .45);
  border-radius: 50%;
  color: transparent;
  background: rgba(250, 247, 242, .92);
  font-size: 10px;
}
.lux-card.selected .check { color: white; background: var(--gold); }
.image-card { min-height: 0; padding: 0; }
.card-photo { aspect-ratio: 4 / 3; overflow: hidden; background: #e9e0d6; }
.card-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.image-card:hover .card-photo img, .image-card.selected .card-photo img { transform: scale(1.025); }
.card-body { padding: 17px 17px 19px; }

.branch-screen { max-width: 1120px; padding-top: 126px; padding-bottom: 150px; }
.branch-screen .flow-head { max-width: 760px; margin-bottom: 72px; }
.branch-screen .flow-head > p:not(.intro) { margin-top: 28px; margin-bottom: 14px; font-size: 10px; letter-spacing: .32em; }
.branch-screen .flow-head h2 { font-size: clamp(52px, 12vw, 82px); line-height: .94; }
.branch-grid { grid-template-columns: 1fr; gap: 28px; }
.branch-card { border-radius: 26px; }
.branch-grid .card-photo { aspect-ratio: 16 / 10; }
.branch-card .card-body { position: relative; padding: 20px 20px 22px; }
.branch-title { display: flex; align-items: center; gap: 12px; padding-right: 28px; }
.branch-title h3 { font-size: 27px; }
.location-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 163, 74, .55);
  border-radius: 50%;
  color: var(--burgundy);
  font-size: 11px;
}
.branch-card .card-body p { margin-left: 42px; }
.branch-arrow { position: absolute; right: 20px; bottom: 18px; color: var(--gold); font-size: 20px; }
.branch-card.coming-soon {
  cursor: default;
  border-color: rgba(201, 163, 74, .5);
  background: #fbf4e7;
}
.branch-card.coming-soon:hover { transform: none; box-shadow: var(--soft-shadow); }
.branch-card.coming-soon .card-photo img { filter: saturate(.75) sepia(.08); }
.coming-ribbon {
  position: absolute;
  z-index: 4;
  top: 24px;
  right: -43px;
  width: 175px;
  padding: 8px 0;
  transform: rotate(42deg);
  color: #33230d;
  background: linear-gradient(100deg, #b8882d, #e2c16f);
  box-shadow: 0 5px 15px rgba(72, 44, 12, .18);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
  text-align: center;
}
.branch-card.coming-soon strong { display: block; margin: 13px 0 0 42px; color: var(--gold); font-size: 9px; letter-spacing: .18em; }
.branch-location-card {
  min-height: 220px;
  padding: 48px 34px;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  border: 1px solid rgba(201, 163, 74, .38);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(250,247,242,.96));
  box-shadow: 0 18px 54px rgba(60, 36, 26, .075);
  text-align: left;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.branch-location-card:not(:disabled):hover { transform: translateY(-7px); border-color: rgba(201,163,74,.82); box-shadow: 0 30px 72px rgba(60,36,26,.14); }
.branch-location-card .location-icon { flex: 0 0 60px; width: 60px; height: 60px; border-color: rgba(201,163,74,.65); background: rgba(255,255,255,.72); font-size: 22px; }
.branch-location-copy { min-width: 0; }
.branch-location-copy h3 { margin: 0 0 18px; font-size: clamp(34px, 7vw, 48px); font-weight: 400; line-height: 1; letter-spacing: -.025em; }
.branch-location-copy p { margin: 0; color: #756961; font-size: 11px; line-height: 1.6; letter-spacing: .2em; text-transform: uppercase; }
.branch-location-card .branch-arrow { right: 34px; bottom: auto; top: 50%; transform: translateY(-50%); font-size: 27px; }
.branch-location-card.coming-soon { position: relative; border-color: rgba(201,163,74,.72); background: linear-gradient(135deg, #f5e6bd 0%, #d9b75f 48%, #f8e9bf 100%); box-shadow: 0 20px 52px rgba(119,82,20,.17); }
.branch-location-card.coming-soon strong { margin: 0 0 11px; color: #6e0f1e; font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.branch-location-card.coming-soon p { color: #59451d; }
.branch-location-card.coming-soon .location-icon { background: rgba(255,255,255,.32); border-color: rgba(110,15,30,.22); }
.branch-location-card .coming-ribbon { top: 25px; right: -45px; color: white; background: var(--burgundy); }

.service-grid, .feeling-grid { grid-template-columns: 1fr 1fr; }
.service-grid .image-card { border-radius: 14px; }
.service-grid .card-photo { aspect-ratio: 1 / .82; }
.service-grid .card-body { min-height: 93px; padding: 15px 14px 17px; text-align: center; }
.service-grid .lux-card h3 { font-size: 18px; }
.service-grid .lux-card p { font-size: 7px; }

.feeling-card { min-height: 152px; display: flex; flex-direction: column; justify-content: flex-end; }
.feeling-card .icon {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 163, 74, .55);
  border-radius: 50%;
  color: var(--gold);
  font-size: 20px;
}
.feeling-card h3 { font-size: 18px; }
.sticky-action { padding-top: 28px; }
.sticky-action .cta { width: 100%; border-radius: 6px; }

.review-screen { max-width: 840px; }
.review-card {
  position: relative;
  padding: 30px 22px 0;
  overflow: hidden;
  border: 1px solid rgba(110, 15, 30, .08);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.quote { position: absolute; top: 15px; right: 22px; color: var(--burgundy); font: 64px var(--serif); opacity: .16; }
.review-label { display: flex; align-items: center; gap: 9px; color: var(--gold); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.review-label i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.review-copy p { margin: 24px 0; color: #453c38; font: 16px/1.68 var(--serif); }
.review-copy hr { margin: 0; border: 0; border-top: 1px solid var(--line); }
.review-card footer { margin: 28px -22px 0; padding: 17px 22px; display: flex; justify-content: space-between; color: white; background: var(--burgundy); font: 9px var(--serif); letter-spacing: .2em; }
.review-card footer b { color: var(--gold); }
.review-actions { display: grid; gap: 10px; margin-top: 18px; }
.action {
  min-height: 56px;
  padding: 0 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
}
.action.gold { border: 0; color: #2c200e; background: var(--gold); }
.action.ivory { border: 1px solid rgba(110, 15, 30, .35); color: var(--burgundy); background: transparent; }
.action.google { border: 0; color: white; background: var(--burgundy); }
.action.google b { font: 700 16px Arial; }
.copy-toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); padding: 12px 18px; border-radius: 999px; color: white; background: var(--charcoal); box-shadow: var(--shadow); font-size: 9px; }

/* Final calm wellness journey */
.hero.active { align-items: center; justify-content: center; }
.hero-brand { top: max(24px, env(safe-area-inset-top)); left: 24px; }
.hero-brand img { width: 68px; height: 68px; }
.hero-inner { width: min(100%, 760px); padding: 36px 0 0; border: 0; text-align: center; }
.hero-name { margin: 0 0 24px; color: var(--burgundy); font: 500 13px/1 var(--serif); letter-spacing: .28em; }
.hero-welcome { margin: -18px 0 40px; color: #76685e; font: 18px/1.5 var(--serif); }
.hero .tagline { font-size: clamp(48px, 11vw, 82px); }
.journey { max-width: 1080px; padding-top: 120px; padding-bottom: 170px; }
.journey-intro { max-width: 720px; margin: 10px 0 110px; }
.journey-intro > p { margin: 0 0 18px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .28em; }
.journey-intro h2 { margin: 0; color: #4a3b32; font: 400 clamp(46px, 9vw, 76px)/1 var(--serif); letter-spacing: -.03em; }
.journey-section { padding: 76px 0 100px; border-top: 1px solid rgba(201,166,92,.3); }
.journey-section .section-number { display: block; margin-bottom: 18px; color: var(--gold); font: 12px var(--serif); letter-spacing: .18em; }
.journey-section > h3 { margin: 0 0 42px; color: #4a3b32; font: 400 clamp(38px, 8vw, 62px)/1 var(--serif); letter-spacing: -.025em; }
.journey-section > p { margin: -25px 0 38px; color: var(--muted); font: 17px/1.5 var(--serif); }
.journey .branch-grid { gap: 20px; }
.journey .branch-location-card { min-height: 170px; padding: 34px 28px; }
.treatment-card { min-height: 170px; padding: 30px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-color: rgba(201,166,92,.28); border-radius: 24px; background: rgba(255,254,250,.82); }
.treatment-icon { width: 58px; height: 58px; margin-bottom: 20px; display: grid; place-items: center; border: 1px solid rgba(201,166,92,.55); border-radius: 50%; color: var(--gold); font: 28px var(--serif); }
.treatment-card h3 { font-size: 22px; font-weight: 400; }
.journey .feeling-card { min-height: 112px; padding: 24px; justify-content: center; border-radius: 999px; text-align: center; }
.journey .feeling-card .icon, .journey .feeling-card p { display: none; }
.journey .feeling-card h3 { font: 400 18px/1.2 var(--serif); }
.form-action { margin-top: 48px; text-align: center; }
.review-section[hidden] { display: none; }
.review-section .review-card { max-width: 820px; margin: 0 auto; background: #fffefa; box-shadow: 0 22px 70px rgba(111,79,48,.1); }
.review-section .review-actions { max-width: 820px; margin: 22px auto 0; }
.final-gratitude { padding: 64px 24px; background: linear-gradient(150deg,#fffdf8,#f3e7d6); }
.final-gratitude.active { display: grid; place-items: center; }
body.final-view .topbar { display: none; }
.final-thank-you { width: min(100%, 720px); text-align: center; }
.final-thank-you img { width: 118px; height: 118px; margin-bottom: 42px; border: 1px solid rgba(201,166,92,.45); border-radius: 50%; object-fit: cover; box-shadow: 0 18px 54px rgba(111,79,48,.1); }
.final-thank-you .overline { margin: 0 0 28px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .3em; }
.final-thank-you h2 { margin: 0; color: #493b32; font: 400 clamp(64px,15vw,110px)/.95 var(--serif); letter-spacing: -.035em; }
.final-thank-you > p:last-child { margin: 34px 0 0; color: #76685e; font: 20px/1.55 var(--serif); }

@media (min-width: 720px) {
  .topbar { height: 90px; padding-left: 5vw; padding-right: 5vw; }
  .mini-brand b { font-size: 11px; }
  .hero { padding: 130px 7vw 80px; background-position: center 48%; }
  .hero.active { align-items: center; }
  .hero-inner { padding-left: 28px; }
  .hero-brand { top: 52px; left: 5vw; gap: 22px; }
  .hero-brand img { width: 110px; height: 110px; }
  .hero-brand strong { font-size: 25px; }
  .hero-brand span { font-size: 18px; }
  .hero h1 { margin-bottom: 54px; }
  .flow { padding: 128px 5vw 120px; }
  .branch-screen { padding-top: 154px; padding-bottom: 180px; }
  .branch-screen .flow-head { margin-bottom: 92px; }
  .branch-grid { gap: 34px; }
  .branch-location-card { min-height: 260px; padding: 58px 48px; gap: 34px; }
  .branch-location-card .location-icon { flex-basis: 68px; width: 68px; height: 68px; }
  .branch-location-copy h3 { font-size: 50px; margin-bottom: 20px; }
  .journey .service-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .journey .feeling-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .journey .review-actions { grid-template-columns: repeat(3, 1fr); }
  .flow-head { margin-bottom: 48px; }
  .branch-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .branch-card:nth-child(5) { grid-column: 1 / -1; }
  .service-grid, .feeling-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .review-actions { grid-template-columns: 1fr 1fr; }
}

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