/* THERASPA P3.1 Luxury Fidelity (additive). Original P3 CSS/data/pricing unchanged. */
:root{--p31-gold:#e5b759;--p31-gold-light:#f8d786;--p31-forest:#152c29;--p31-orange:#f76a16;--p31-ink:#101718}
/* Header + six accessible flags, no emoji dependency */
.site-header{background:linear-gradient(115deg,#101517 0%,#151b1c 63%,#111414 100%);border-bottom:1px solid #d2a85832;box-shadow:0 5px 25px #0003}
.nav-links>a,.nav-right .btn,.language-trigger{transition:background .18s,box-shadow .18s,transform .18s}
.nav-links>a:hover,.nav-links>a:focus-visible{background:#dab56522;color:var(--p31-gold-light)}
.nav-links>a.active{background:linear-gradient(130deg,#ffdf83,#d6a345);color:#20201b;box-shadow:0 6px 16px #0003}
.language-wrap{position:relative;z-index:44}
.language-trigger{gap:7px;padding:7px 12px 7px 8px;min-height:38px;border-radius:24px;border:1px solid #bda56c5b;background:linear-gradient(#242729,#1a1e20);cursor:pointer}
.language-trigger:hover,.language-trigger:focus-visible{border-color:var(--p31-gold);box-shadow:0 0 0 3px #e5b7592e}
.language-trigger .lang-flag{width:23px;height:18px;border-radius:4px;object-fit:cover;display:block;box-shadow:0 0 0 1px #ffffff38}
.language-trigger b{font-size:11px;letter-spacing:.03em}
.language-list{top:calc(100% + 9px);min-width:224px;border-radius:16px;overflow:hidden;border:1px solid #aa884d69;background:#13191b;padding:8px;box-shadow:0 20px 55px #0009}
.language-list.is-open{display:grid;gap:3px;animation:p31Drop .15s ease-out both}
.language-list .lang-item{display:grid;grid-template-columns:30px 1fr auto 16px;align-items:center;gap:9px;min-height:43px;width:100%;padding:7px 11px;background:transparent;border:0;color:#fff;text-align:left;border-radius:9px;cursor:pointer;font:600 13px/1.4 inherit}
.language-list .lang-item:hover,.language-list .lang-item:focus-visible{background:#e5b75922;outline:none}
.language-list .lang-item.is-selected{background:linear-gradient(90deg,#9c7335,#765625);color:#fff}
.language-list .lang-flag{width:27px;height:21px;object-fit:cover;border-radius:4px;border:1px solid #ffffff30}
.language-list .lang-code{font-size:10px;color:#d8c097;letter-spacing:.09em;font-weight:750}
.language-list .icon{width:15px;height:15px}
.mobile-langs{display:flex;flex-wrap:wrap;gap:6px}
.mobile-langs button{display:flex;align-items:center;gap:5px}
.mobile-langs .lang-flag{width:23px;height:17px}
/* Main hero: preserve approved THERASPA photography and layout */
.hero{isolation:isolate;background-position:center center}
.hero-home{min-height:530px}
.hero-subpage{min-height:335px}
.hero-veil{background:linear-gradient(100deg,#071010b3 0%,#0814188c 45%,#05090d62 100%),radial-gradient(circle at 73% 38%,#d9a45c1c,transparent 43%)}
.hero-home:before,.hero-subpage:before{content:"";z-index:0;position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom,#0005 0%,transparent 15%,transparent 72%,#070e1282 100%)}
.hero-inner{position:relative;z-index:2}
.hero-eyebrow,.breadcrumbs{letter-spacing:.16em;text-shadow:0 2px 9px #0005}
.hero h1{text-shadow:0 4px 24px #0008;max-width:900px;margin-left:auto;margin-right:auto;text-wrap:balance}
.hero-inner>p{text-shadow:0 2px 11px #0008}
.hero-actions .btn{box-shadow:0 10px 23px #0004}
.hero-actions .btn:hover{transform:translateY(-3px)}
/* Designed interactions, consistent card hierarchy */
.btn-primary{background:linear-gradient(110deg,#ff8734,#ff6412);box-shadow:0 5px 16px #c4552430}
.btn-primary:hover,.btn-primary:focus-visible{background:linear-gradient(110deg,#ff963d,#ed5709);box-shadow:0 10px 20px #c4552460;transform:translateY(-2px)}
.service-card,.news-card,.review-card,.panel{transition:box-shadow .22s,transform .22s,border-color .22s}
.service-card:hover,.news-card:hover{box-shadow:0 18px 45px #53371824;transform:translateY(-3px)}
.service-card:focus-within{outline:2px solid var(--p31-gold);outline-offset:2px}
.service-card .service-image>img{transition:transform .35s ease}
.service-card:hover .service-image>img{transform:scale(1.045)}
.section-heading .gold-line{background:linear-gradient(90deg,transparent,#dca65e,transparent)}
/* Contact rail: native colored vector brand pictograms, rather than letters */
.contact-rail{right:12px;top:32%;z-index:42;gap:7px;padding:8px;background:#fefcf8f5;border:1px solid #e8d5b6;border-radius:22px;box-shadow:0 14px 42px #18252432;backdrop-filter:blur(12px)}
.rail-item{position:relative;width:39px;height:39px;background:white!important;padding:4px;border:0;border-radius:12px;display:grid;place-items:center;cursor:pointer;overflow:visible;transition:transform .16s,background .16s,box-shadow .16s}
.rail-item:hover,.rail-item:focus-visible{transform:translateX(-3px);background:#fff9ee!important;box-shadow:0 3px 15px #0002;outline:2px solid #d4ab5a;outline-offset:1px}
.rail-brand-icon{width:31px;height:31px;display:block}
.rail-tooltip{position:absolute;right:calc(100% + 11px);top:50%;transform:translate(6px,-50%);background:#151b1e;color:#fff;border:1px solid #c89c5560;border-radius:9px;padding:8px 11px;box-shadow:0 6px 20px #0006;font-size:11px;white-space:nowrap;opacity:0;pointer-events:none;transition:.16s}
.rail-item:hover .rail-tooltip,.rail-item:focus-visible .rail-tooltip{transform:translate(0,-50%);opacity:1}
.chat-launch{display:inline-flex;align-items:center;gap:8px;padding:8px 12px 8px 7px;background:linear-gradient(120deg,#fff8e7,#f2ce79);box-shadow:0 6px 20px #0002;border:1px solid #cdab5b;line-height:1.1}
.chat-launch-icon{width:26px;height:26px}
/* Promo app buttons with recognisable SVG brands */
.app-chat .chat-app-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px 8px;margin-top:20px}
.chat-app-grid button{border:1px solid transparent;border-radius:12px;padding:9px 3px 7px;display:flex;align-items:center;justify-content:center;gap:6px;transition:.18s;min-width:0;cursor:pointer}
.chat-app-grid button:hover,.chat-app-grid button:focus-visible{background:#fff6e5;border-color:#dfc392;box-shadow:0 6px 17px #64391916;transform:translateY(-2px);outline:none}
.chat-brand-ring{width:40px;height:40px;border:1px solid #ede5da;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 4px 10px #1718180b}
.chat-brand-icon{width:28px;height:28px}
.chat-app-grid button>span:last-child{font-size:10px;max-width:100%;white-space:normal;line-height:1.25;text-align:center}
/* Footer: mural photograph from THERASPA snapshot, visible through luxe layers */
.site-footer{isolation:isolate;position:relative;background-image:linear-gradient(100deg,#080e12e6,#172529aa 46%,#080e12d2),var(--footer-image);background-size:cover;background-position:center center;background-attachment:scroll;color:#f6f4ec;padding:68px 0 18px;border-top:3px solid #b7833e}
.site-footer:before{content:"";position:absolute;inset:0;background:linear-gradient(to bottom,#09131580,transparent 35%,#040a0bbb 100%);pointer-events:none;z-index:0}
.site-footer>.wrap{position:relative;z-index:1}
.footer-texture{position:absolute;z-index:0;inset:0;opacity:.13;pointer-events:none;background:radial-gradient(circle at 80% 18%,#ffcf82 0%,transparent 35%),radial-gradient(circle at 8% 82%,#91a7a2 0%,transparent 33%)}
.footer-intro{max-width:1040px;padding:4px 0 8px;gap:19px}
.footer-kicker{display:block;color:#f1c77b;font-size:10px;font-weight:800;letter-spacing:.24em;margin-bottom:5px}
.footer-intro h2{font-size:clamp(29px,3vw,42px);color:#fff;line-height:1.12;margin:3px 0 7px}
.footer-intro strong{color:#f4e5cf}
.footer-intro p{color:#e8e5dd;max-width:830px;line-height:1.75}
.footer-columns{gap:16px;margin:30px 0 18px}
.footer-columns>div{border-radius:16px;border:1px solid #ffecbf2a;background:#11191bd4;padding:24px 25px;backdrop-filter:blur(8px)}
.footer-columns h4{color:#f4cc7b;font-size:11px;letter-spacing:.11em}
.footer-columns p{line-height:1.65}
.footer-columns p .icon{width:14px;height:14px;color:#d8ad65;display:inline-block;vertical-align:middle;margin-right:5px}
.footer-columns a:hover,.footer-columns button:hover{color:#f2c274}
.footer-social{border-radius:18px;border:1px solid #f6cd853c;background:#111a1dcb;padding:21px 24px 26px;backdrop-filter:blur(8px)}
.footer-social-title{display:flex;align-items:baseline;gap:16px;border-bottom:1px solid #ffffff18;padding-bottom:14px;margin-bottom:14px}
.footer-social-title b{color:#fff;letter-spacing:.09em}
.footer-social-title small{color:#d7be8c;font-size:10px;letter-spacing:.13em}
.footer-social-grid{display:flex;flex-wrap:wrap;gap:10px 19px!important}
.footer-social-grid button{display:inline-flex!important;align-items:center;justify-content:flex-start;gap:10px;border:1px solid #ffffff26;background:#fffefaef;color:#162225!important;border-radius:999px;padding:8px 13px 8px 7px;font-size:12px;min-height:45px;cursor:pointer;transition:transform .16s,background .16s,box-shadow .16s}
.footer-social-grid button:hover,.footer-social-grid button:focus-visible{background:#fff4dc;transform:translateY(-2px);box-shadow:0 6px 16px #0004;outline:2px solid #d5a758;outline-offset:2px}
.footer-brand-icon-wrap{width:29px;height:29px;display:grid;place-items:center;flex:none}
.footer-brand-icon{width:28px;height:28px}
.footer-bottom{border-top:1px solid #ffffff29;padding-top:17px;margin-top:18px;color:#e8e2d8}
/* Keyboard, low-motion, touch */
:focus-visible{outline:2px solid #efbd64;outline-offset:3px}
@keyframes p31Drop{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
@media(max-width:1100px){.footer-social-grid{gap:8px 10px!important}.footer-social-grid button{font-size:10px;padding-right:9px}.footer-columns>div{padding:19px}}
@media(max-width:800px){.language-list{right:0;top:calc(100% + 10px)}.hero-home{min-height:450px}.site-footer{background-position:56% center;padding:52px 0 14px}.footer-columns{grid-template-columns:repeat(3,minmax(0,1fr))}.rail-item{width:36px;height:36px}.rail-brand-icon{width:28px;height:28px}.chat-app-grid button>span:last-child{font-size:9px}.app-chat .chat-app-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:560px){.language-trigger{min-height:34px;padding:5px 8px}.language-trigger .lang-flag{width:23px;height:17px}.language-list{min-width:195px}.language-list .lang-item{min-height:41px}.nav-right{gap:5px}.hero-home{min-height:425px}.hero-subpage{min-height:250px}.hero h1{max-width:345px}.contact-rail{right:5px;gap:5px;padding:5px;border-radius:15px}.rail-item{width:32px;height:32px;padding:3px;border-radius:9px}.rail-brand-icon{width:26px;height:26px}.rail-tooltip{display:none}.footer-intro{gap:10px}.footer-columns{grid-template-columns:1fr}.footer-columns>div{padding:15px}.footer-social{padding:14px}.footer-social-title{flex-wrap:wrap;gap:4px}.footer-social-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}.footer-social-grid button{width:100%;font-size:10px;justify-content:flex-start}.app-chat .chat-app-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.chat-brand-ring{width:34px;height:34px}.chat-brand-icon{width:24px;height:24px}.site-footer{background-position:center center}}
@media(prefers-reduced-motion:reduce){.rail-item,.footer-social-grid button,.chat-app-grid button,.hero-actions .btn{transition:none!important}}


/* =====================================================================
   THERASPA P3.2/P3.3 • Vietnamese typography / icon and visual finishing
   Design basis: user-approved parity screenshots. Business source: THERASPA.
   Network fonts are optional: built-in system fallbacks remain legible.
   ===================================================================== */
:root {
  --serif: "Noto Serif", Cambria, Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  --p32-display: "Noto Serif", Cambria, Georgia, serif;
  --p32-body: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
}
html { font-synthesis: none; font-kerning: normal; }
body,button,input,select,textarea { font-family: var(--p32-body); }
body { text-rendering: optimizeLegibility; font-variant-ligatures: common-ligatures; }
/* All natural-language headings: no negative tracking or forced spacing
   between a Vietnamese base glyph and its stacked diacritics. */
.hero h1,.section-heading h2,.inline-title h2,.promo-content h2,.app-chat h3,
.footer-intro h2,.benefit-card h3,.timeline-feature h3,.branch-info h3,
.branch-cta h2,.price-group h3,.booking-heading h1,.booking-summary h2,
.booking-block h3,.content-page h2,.news-body h3,.archive-card h3,
.admin-section h1,.admin-panel h2,.modal-box h2,.service-name,.sidebar-card h3 {
  font-family: var(--p32-display) !important;
  letter-spacing: 0 !important;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  font-variant-ligatures: common-ligatures;
  font-synthesis: none;
  text-transform: none;
  text-rendering: optimizeLegibility;
  word-spacing: normal;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
}
/* Vietnamese body and interface controls should not inherit accidental
   wide tracking from accent-sensitive display styles. */
:lang(vi) .eyebrow,:lang(vi) .hero-eyebrow,:lang(vi) .breadcrumbs,
:lang(vi) .footer-kicker,:lang(vi) .footer-social-title small,
:lang(vi) .footer-columns h4,:lang(vi) .field>span,
:lang(vi) .booking-guest-step>span,:lang(vi) .promo-photo-label,
:lang(vi) .nav-links a,:lang(vi) .brand-word small,
:lang(vi) .topstripe,:lang(vi) .news-meta,
:lang(vi) .sidebar-card h3 {
  letter-spacing: .025em !important;
  word-spacing: normal !important;
}
/* Unicode glyph continuity for VI, RU and East-Asian interface strings. */
:lang(zh),:lang(ja),:lang(ko) { --p32-display: "Noto Sans CJK SC", "Noto Sans CJK JP", "Noto Sans CJK KR", "Microsoft YaHei", "Yu Gothic", "Malgun Gothic", sans-serif; }
:lang(zh) .hero h1,:lang(ja) .hero h1,:lang(ko) .hero h1,
:lang(zh) .section-heading h2,:lang(ja) .section-heading h2,:lang(ko) .section-heading h2 { letter-spacing: 0 !important; }
.brand-word,.footer-intro strong,.nav-links a,.lang-name,
.language-list .lang-item,.language-trigger,.btn,.service-actions .btn {
  font-family: var(--p32-body) !important;
  letter-spacing: normal;
  font-synthesis: none;
}
.brand-word { letter-spacing: .06em !important; }
.brand-word small { letter-spacing: .045em !important; }
.hero h1 { line-height: 1.26 !important; text-wrap: balance; }
.hero-subpage h1 { line-height: 1.30 !important; }
.section-heading h2 { line-height: 1.33 !important; }
.timeline-feature h3,.promo-content h2,.footer-intro h2 { line-height: 1.38 !important; }
.benefit-card h3,.branch-info h3 { line-height: 1.38 !important; }
/* Images are real local THERASPA photos. Softer overlays make the hero,
   mural footer and cover photography visible and preserve legibility. */
.hero { background-position: center 48%; background-color: #1e2c2c; }
.hero-veil { background: linear-gradient(92deg,rgba(7,15,16,.45),rgba(7,18,19,.43) 42%,rgba(7,16,18,.49)) !important; }
.hero-home:before,.hero-subpage:before { background: linear-gradient(180deg,rgba(0,0,0,.12),transparent 33%,rgba(0,0,0,.36)) !important; }
.hero-subpage { min-height: 340px; }
.hero h1,.hero-inner>p { text-shadow: 0 3px 20px rgba(0,0,0,.8); }
.site-footer { background-image: linear-gradient(95deg,rgba(8,16,18,.85),rgba(9,24,23,.60) 47%,rgba(6,14,17,.88)),var(--footer-image) !important; background-position:center 45% !important; }
.site-footer:before { background: linear-gradient(180deg,rgba(5,11,15,.20),transparent 30%,rgba(6,13,17,.65)) !important; }
/* SVG embedded in HTML => no broken image boxes on LiteSpeed when an SVG
   external MIME policy differs from local browser; includes flag artwork. */
svg.lang-flag,svg.rail-brand-icon,svg.chat-launch-icon,
svg.chat-brand-icon,svg.footer-brand-icon {
  display: block;
  flex: none;
  overflow: visible;
  background: transparent;
}
.language-trigger svg.lang-flag,.language-list svg.lang-flag { object-fit: contain; }
.rail-brand-icon { width: 30px; height: 30px; }
.chat-brand-icon { width: 27px; height: 27px; }
.footer-brand-icon { width: 28px; height: 28px; }
.chat-launch-icon { width: 25px; height: 25px; }
.footer-social-grid button { font-size:12px; font-weight:700; min-width:0; }
.footer-social-grid button>span:last-child { min-width:0; overflow-wrap:break-word; }
.btn,.nav-links a,.language-trigger,.lang-item { -webkit-font-smoothing:antialiased; }
/* Avoid truncating Vietnamese characters at image cards and headings. */
.service-name,.news-body h3,.archive-card h3 {
  display:-webkit-box; -webkit-box-orient:vertical;
  -webkit-line-clamp: 2; line-clamp: 2;
  overflow:hidden;
  height:auto !important;
  min-height: 2.85em;
}
@media (max-width:800px){
  .hero-subpage{min-height:278px;}
  .footer-social-grid button{font-size:11px;}
}
@media (max-width:560px){
  .hero-subpage{min-height:258px;}
  .hero h1{line-height:1.28 !important;}
  .section-heading h2{line-height:1.32 !important;}
  .footer-social-grid button{min-height:44px;}
  .chat-app-grid button{min-height:72px;}
  .benefit-card h3,.timeline-feature h3{line-height:1.4 !important;}
}

/* Narrow viewports: prevent long accented headings from crowding floating controls. */
@media (max-width:560px) {
  .section-heading { max-width:calc(100% - 12px); }
  .section-heading h2,.inline-title h2 {
    font-size:clamp(24px,6.65vw,29px) !important;
    text-wrap:balance;
    max-width:100%;
    line-height:1.4 !important;
    padding-inline:3px;
  }
  .hero-subpage h1 { font-size:clamp(29px,8.2vw,35px) !important; }
  .footer-intro h2 { font-size:clamp(24px,6vw,29px) !important; }
  /* User-controlled mobile contact rail; never cover full-width headings. */
  .rail-mobile-toggle {
    display:grid;place-items:center;position:fixed;right:14px;bottom:16px;
    z-index:61;width:48px;height:48px;border:1px solid #d6b87d;
    border-radius:16px;background:#fffdf8;box-shadow:0 9px 23px #101d2240;
    cursor:pointer;
  }
  .rail-mobile-toggle svg { width:31px;height:31px;display:block; }
  .contact-rail { display:none;top:auto;bottom:74px;right:10px;max-height:calc(100dvh - 160px);overflow-y:auto; }
  .contact-rail.is-open { display:flex;flex-direction:column; }
  .rail-mobile-toggle:focus-visible {outline:3px solid #edbc69;outline-offset:3px;}
}

.rail-mobile-toggle{display:none}
@media(max-width:560px){.rail-mobile-toggle{display:grid}}
