/* ============================================================
   Mind & Body Spa — Edinburgh
   Top-nav, full-width stacked one-pager website
   Light, serene spa theme · Outfit throughout (client-required)
   ============================================================ */
/* Outfit — self-hosted (no external CDN, keeps the CSP tight) */
@font-face{
  font-family:'Outfit';font-style:normal;font-weight:100 900;font-display:swap;
  src:url('/assets/fonts/outfit-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:'Outfit';font-style:normal;font-weight:100 900;font-display:swap;
  src:url('/assets/fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root{
  --cream:#FBF9F5;
  --cream-2:#F3EEE6;
  --panel:#EEF3F1;
  --ink:#20302D;
  --ink-soft:#4A5A56;
  --muted:#79847F;
  --line:#E4DED3;
  --teal:#2C7A72;
  --teal-deep:#1F5C56;
  --teal-bright:#3FA79B;
  --sand:#C7A87A;
  --sand-soft:#E7D9BF;
  --white:#ffffff;

  --header-h:76px;
  --wash: linear-gradient(180deg, rgba(23,52,48,.52), rgba(20,44,40,.74));
  --wash-soft: linear-gradient(180deg, rgba(31,92,86,.10), rgba(31,92,86,.28));

  --ease:cubic-bezier(.22,.61,.36,1);
  --shadow:0 18px 50px -24px rgba(31,60,56,.45);
  --radius:18px;

  /* image slots — self-hosted under /assets (the admin picker swaps these) */
  --img-hero:url('/assets/hero-spa.jpg');
  --img-relax:url('/assets/relaxing-massage.jpg');
  --img-deep:url('/assets/deep-tissue.jpg');
  --img-stone:url('/assets/hot-stone.jpg');
  --img-head:url('/assets/head-massage.jpg');
  --img-nbs:url('/assets/neck-back-shoulders.jpg');
  --img-facial:url('/assets/facial-treatment.jpg');
  --img-exp:url('/assets/the-spa-room.jpg');
  --img-shop:url('/assets/tiger-balm.jpg');
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Outfit',system-ui,sans-serif;
  color:var(--ink);
  background:var(--cream);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:clip;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
em{font-style:italic}

/* shared container — hero content left-aligns with nav logo */
.wrap{width:100%;max-width:1220px;margin:0 auto;padding:0 clamp(1.3rem,4vw,3.2rem)}

/* ---------- Typography helpers ---------- */
.eyebrow{
  display:inline-block;
  font-size:.72rem;font-weight:600;letter-spacing:.28em;
  text-transform:uppercase;color:var(--teal);margin-bottom:1.1rem;
}
.eyebrow.light{color:var(--sand-soft)}
h1,h2,h3{font-weight:300;line-height:1.08;letter-spacing:-.015em;color:var(--ink)}
h2{font-size:clamp(1.9rem,3.4vw,2.9rem)}
h3{font-size:1.3rem;font-weight:500;letter-spacing:-.01em}
p{color:var(--ink-soft)}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  font-weight:500;font-size:.98rem;letter-spacing:.01em;
  padding:.92rem 1.7rem;border-radius:12px;
  transition:transform .25s var(--ease),background .25s var(--ease),box-shadow .25s var(--ease);
  cursor:pointer;border:1px solid transparent;
}
.btn-solid{background:var(--sand);color:#2b2416;box-shadow:0 14px 30px -14px rgba(199,168,122,.9)}
.btn-solid:hover{transform:translateY(-2px);background:#d3b487}
.btn-ghost{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.5)}
.btn-ghost:hover{background:rgba(255,255,255,.16);transform:translateY(-2px)}
.btn-ghost.dark{color:var(--teal);border-color:var(--teal);background:transparent}
.btn-ghost.dark:hover{background:var(--teal);color:#fff}
.btn.sm{padding:.62rem 1.15rem;font-size:.9rem;border-radius:10px}
.btn.lg{padding:1.05rem 2.4rem;font-size:1.05rem}

/* ============================================================
   HEADER (sticky top nav)
   ============================================================ */
.site-header{
  position:sticky;top:0;z-index:60;
  background:rgba(251,249,245,.9);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.header-in{display:flex;align-items:center;gap:1.5rem;height:var(--header-h)}
.brand{display:flex;align-items:center;margin-right:auto}

/* ---------- Typographic wordmark logo ---------- */
.logo{display:inline-flex;flex-direction:column;align-items:center;line-height:1}
.logo-main{
  font-size:1.5rem;font-weight:500;letter-spacing:.01em;color:var(--ink);
  white-space:nowrap;
}
.logo-main em{
  font-style:italic;font-weight:300;color:var(--teal);
  margin:0 .04em;font-family:'Outfit',serif;
}
.logo-sub{
  display:flex;align-items:center;gap:.55rem;
  margin-top:.42rem;
  font-size:.6rem;font-weight:600;letter-spacing:.34em;text-transform:uppercase;
  color:var(--teal);white-space:nowrap;padding-left:.34em;
}
.logo-sub .ln{flex:1;height:1px;min-width:14px;background:currentColor;opacity:.45}

.nav{display:flex;align-items:center;gap:.35rem}
.nav a{
  font-size:.95rem;font-weight:400;color:var(--ink-soft);
  padding:.5rem .85rem;border-radius:9px;position:relative;
  transition:color .22s var(--ease),background .22s var(--ease);
}
.nav a::after{
  content:"";position:absolute;left:.85rem;right:.85rem;bottom:.32rem;height:1.5px;
  background:var(--teal);transform:scaleX(0);transform-origin:center;transition:transform .28s var(--ease);
}
.nav a:hover{color:var(--ink)}
.nav a:hover::after,.nav a.active::after{transform:scaleX(1)}
.nav a.active{color:var(--teal)}

.header-cta{display:flex;align-items:center;gap:1rem}
.head-phone{font-size:.95rem;font-weight:500;color:var(--ink);white-space:nowrap}
.head-phone:hover{color:var(--teal)}

/* hamburger (mobile only) */
.menu-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;
  width:44px;height:44px;border:1px solid var(--line);border-radius:11px;background:var(--white);cursor:pointer}
.menu-toggle span{display:block;height:2px;width:20px;margin:0 auto;background:var(--ink);border-radius:2px;
  transition:transform .3s var(--ease),opacity .2s var(--ease)}
.menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;
  min-height:calc(88vh - var(--header-h));
  display:flex;align-items:center;
  padding:clamp(3rem,7vh,6rem) 0;
  overflow:hidden;
}
.hero-bg{position:absolute;inset:0;background-image:var(--wash),var(--img-hero);
  background-size:cover;background-position:center;z-index:0}
.hero-bg::after{content:"";position:absolute;inset:0;
  background:linear-gradient(100deg,rgba(16,38,34,.9) 0%,rgba(16,38,34,.72) 34%,rgba(16,38,34,.34) 62%,rgba(16,38,34,.04) 92%)}
.hero-in{position:relative;z-index:2;color:#fff}
.hero h1{color:#fff;font-weight:200;font-size:clamp(2.6rem,6vw,4.6rem);
  letter-spacing:-.02em;margin:.4rem 0 1.4rem;max-width:16ch}
.hero h1 em{font-weight:300;color:var(--sand-soft)}
.hero .lede{color:rgba(255,255,255,.9);font-size:clamp(1.02rem,1.5vw,1.18rem);
  font-weight:300;max-width:36rem;margin-bottom:2rem}
.hero-cta{display:flex;gap:.9rem;flex-wrap:wrap}
.hero-facts{list-style:none;display:flex;gap:2.6rem;flex-wrap:wrap;
  margin-top:3rem;padding-top:1.8rem;border-top:1px solid rgba(255,255,255,.22);max-width:44rem}
.hero-facts li{display:flex;flex-direction:column;gap:.15rem}
.hero-facts b{font-size:1.5rem;font-weight:400;color:#fff}
.hero-facts span{font-size:.8rem;letter-spacing:.05em;color:rgba(255,255,255,.75)}
.hero-award{margin-top:1.4rem;font-size:.82rem;font-weight:400;letter-spacing:.02em;
  color:var(--sand-soft);display:flex;align-items:center;gap:.45rem}

/* TRUST / RECOGNITION */
.trust{background:var(--teal-deep);color:#fff}
.trust-lead{max-width:60rem;margin:0 auto 2.6rem;text-align:center;
  color:rgba(255,255,255,.92);font-weight:300;font-size:clamp(1.1rem,2vw,1.5rem);line-height:1.5}
.trust-grid{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);
  gap:1.4rem;max-width:860px;margin:0 auto}
.trust-grid li{display:flex;flex-direction:column;gap:.35rem;align-items:center;text-align:center;
  padding:1.6rem 1.2rem;border:1px solid rgba(255,255,255,.18);border-radius:var(--radius);
  background:rgba(255,255,255,.05)}
.trust-grid b{font-size:clamp(1.7rem,3vw,2.2rem);font-weight:400;color:#fff}
.trust-grid span{font-size:.86rem;letter-spacing:.03em;color:rgba(255,255,255,.78)}
@media (max-width:720px){.trust-grid{grid-template-columns:1fr}}

/* ============================================================
   BANDS
   ============================================================ */
.band{padding:clamp(3.6rem,7vw,6.5rem) 0}
.band-head{max-width:640px;margin-bottom:3rem}
.band-head.center{margin-inline:auto;text-align:center}
.band-note{margin-top:1rem;color:var(--muted);font-size:1.02rem;font-weight:300}
.txt-link{display:inline-block;margin-top:.6rem;color:var(--teal);font-weight:500;
  border-bottom:1px solid transparent;transition:border-color .25s}
.txt-link:hover{border-color:var(--teal)}

/* WELCOME */
.welcome{background:var(--cream)}
.welcome-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(2rem,5vw,4.5rem);align-items:start}
.welcome-grid .col:first-child h2{font-size:clamp(1.8rem,3vw,2.5rem)}
.welcome p{margin-bottom:1.1rem;font-size:1.05rem;font-weight:300}

/* TREATMENTS */
.treatments{background:var(--cream-2)}
.tgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.6rem}
.tcard{background:var(--white);border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);
  box-shadow:0 12px 34px -26px rgba(31,60,56,.5);
  transition:transform .35s var(--ease),box-shadow .35s var(--ease);display:flex;flex-direction:column}
.tcard:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.tcard-img{height:210px;background-size:cover;background-position:center;position:relative}
.tcard-img::after{content:"";position:absolute;inset:0;background:var(--wash-soft)}
.tcard-img[data-img="relax"]{background-image:var(--img-relax)}
.tcard-img[data-img="deep"]{background-image:var(--img-deep)}
.tcard-img[data-img="stone"]{background-image:var(--img-stone)}
.tcard-img[data-img="head"]{background-image:var(--img-head)}
.tcard-img[data-img="nbs"]{background-image:var(--img-nbs)}
.tcard-img[data-img="facial"]{background-image:var(--img-facial)}
.tcard-body{padding:1.5rem 1.6rem 1.8rem}
.tcard-img .tcard-tag{position:absolute;top:.9rem;left:.9rem;z-index:2;
  display:inline-block;font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;
  font-weight:600;color:var(--teal-deep);background:rgba(255,255,255,.94);
  padding:.34rem .7rem;border-radius:20px;box-shadow:0 6px 16px -8px rgba(31,60,56,.5)}
.tcard h3{margin-bottom:.55rem}
.tcard p{font-size:.96rem;font-weight:300;color:var(--ink-soft)}

/* EXPERIENCE */
.experience{background:var(--teal-deep);color:#fff}
.experience-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
.exp-media{min-height:420px;border-radius:var(--radius);
  background-image:var(--wash-soft),var(--img-exp);background-size:cover;background-position:center;box-shadow:var(--shadow)}
.exp-copy .eyebrow{color:var(--sand-soft)}
.exp-copy h2{color:#fff}
.exp-copy p{color:rgba(255,255,255,.82);font-weight:300;font-size:1.05rem;margin:.4rem 0 1.6rem}
.exp-list{list-style:none;display:flex;flex-direction:column;gap:.9rem}
.exp-list li{display:flex;align-items:center;gap:.9rem;color:rgba(255,255,255,.92);font-weight:300}
.exp-list .dot{width:8px;height:8px;border-radius:50%;background:var(--sand);flex:none;box-shadow:0 0 0 4px rgba(199,168,122,.2)}

/* SHOP */
.shop{background:var(--cream)}
.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
.shop-copy p{font-size:1.05rem;font-weight:300;margin:.4rem 0 1.6rem}
.shop-media{min-height:380px;border-radius:var(--radius);
  background-image:var(--wash-soft),var(--img-shop);background-size:cover;background-position:center;box-shadow:var(--shadow)}

/* VISIT */
.visit{background:var(--cream-2)}
.visit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.3rem;max-width:960px;margin:0 auto}
.vcard{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.8rem 1.4rem;display:flex;flex-direction:column;gap:.5rem;text-align:center;align-items:center;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease)}
.vcard:not(.static):hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.vc-ic{width:48px;height:48px;border-radius:50%;background:var(--panel);color:var(--teal);
  display:grid;place-items:center;margin-bottom:.4rem}
.vc-ic svg{width:24px;height:24px}
.vc-k{font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);font-weight:600}
.vc-v{font-size:.98rem;color:var(--ink);font-weight:400;word-break:break-word;line-height:1.4}
.vc-v .ph{display:inline-block;color:var(--sand);font-size:.85rem}
.visit-cta{text-align:center;margin-top:2.6rem}
.visit-cta .btn-solid{background:var(--teal);color:#fff;box-shadow:0 16px 34px -16px rgba(31,92,86,.8)}
.visit-cta .btn-solid:hover{background:var(--teal-deep)}

/* FOOTER */
.foot{background:var(--ink);color:#fff;padding:3rem 0 1.6rem}
.foot-in{display:flex;justify-content:space-between;gap:2rem;flex-wrap:wrap;
  padding-bottom:2rem;border-bottom:1px solid rgba(255,255,255,.14)}
.foot-brand{display:flex;flex-direction:column;align-items:flex-start;gap:.9rem}
.foot-logo{align-items:flex-start}
.foot-logo .logo-main{color:#fff}
.foot-logo .logo-main em{color:var(--sand-soft)}
.foot-logo .logo-sub{color:var(--sand-soft)}
.foot-tag{font-size:.86rem;color:rgba(255,255,255,.6);font-weight:300}
.foot-links{display:flex;flex-direction:column;gap:.4rem;text-align:right}
.foot-links a{color:rgba(255,255,255,.82);font-size:.95rem;transition:color .2s}
.foot-links a:hover{color:var(--sand-soft)}
.foot-base{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  padding-top:1.4rem;font-size:.82rem;color:rgba(255,255,255,.55)}
.powered a{color:var(--sand-soft);font-weight:500}
.powered a:hover{text-decoration:underline}

/* ============================================================
   BOOKING / ENQUIRY FORM
   ============================================================ */
.book{background:var(--cream)}
.book-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(2rem,5vw,4rem);align-items:start}
.book-intro h2{font-size:clamp(1.8rem,3vw,2.5rem)}
.book-intro p{font-size:1.05rem;font-weight:300;margin:.6rem 0 1.4rem}
.book-intro .book-points{list-style:none;display:flex;flex-direction:column;gap:.7rem;margin-top:1rem}
.book-intro .book-points li{display:flex;gap:.7rem;align-items:center;color:var(--ink-soft);font-weight:300}
.book-intro .book-points .dot{width:7px;height:7px;border-radius:50%;background:var(--teal);flex:none}
.book-form{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:clamp(1.5rem,3vw,2.3rem);box-shadow:0 18px 50px -30px rgba(31,60,56,.5)}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:1rem}
.field label{font-size:.76rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:600}
.field input,.field select,.field textarea{
  font-family:inherit;font-size:.98rem;color:var(--ink);background:var(--cream);
  border:1px solid var(--line);border-radius:11px;padding:.8rem .9rem;width:100%;
  transition:border-color .2s,box-shadow .2s}
.field textarea{resize:vertical;min-height:110px}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--teal);box-shadow:0 0 0 3px rgba(44,122,114,.14)}
.field-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.book-form .btn-solid{background:var(--teal);color:#fff;width:100%;margin-top:.4rem;
  box-shadow:0 16px 34px -16px rgba(31,92,86,.8)}
.book-form .btn-solid:hover{background:var(--teal-deep)}
.book-form .btn-solid:disabled{opacity:.6;cursor:default;transform:none}
.form-note{font-size:.82rem;color:var(--muted);margin-top:.9rem;text-align:center;font-weight:300}
.form-msg{margin-top:1rem;padding:.85rem 1rem;border-radius:11px;font-size:.95rem;font-weight:400;display:none}
.form-msg.show{display:block}
.form-msg.ok{background:rgba(44,122,114,.1);color:var(--teal-deep);border:1px solid rgba(44,122,114,.3)}
.form-msg.err{background:rgba(199,90,74,.08);color:#9c4436;border:1px solid rgba(199,90,74,.3)}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
html.js .reveal{opacity:0;transform:translateY(26px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
html.js .reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html.js .reveal{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1080px){
  .tgrid{grid-template-columns:repeat(2,1fr)}
  .visit-grid{grid-template-columns:repeat(2,1fr);max-width:560px}
}

@media(max-width:860px){
  .nav{
    position:fixed;top:var(--header-h);left:0;right:0;
    flex-direction:column;align-items:stretch;justify-content:flex-start;gap:.3rem;
    background:var(--cream);
    padding:1.6rem 1.4rem 2.4rem;
    transform:translateY(-130%);transition:transform .4s var(--ease);
    height:calc(100vh - var(--header-h));height:calc(100dvh - var(--header-h));
    overflow-y:auto;
  }
  .nav.open{transform:translateY(0)}
  /* keep the bar crisp and opaque while the full-screen menu is open */
  body:has(#nav.open) .site-header{backdrop-filter:none;-webkit-backdrop-filter:none;background:var(--cream)}
  body:has(#nav.open){overflow:hidden}
  .nav a{font-size:1.05rem;padding:.85rem 1rem;border-radius:10px}
  .nav a::after{display:none}
  .nav a:hover,.nav a.active{background:var(--panel)}
  .header-cta{display:none}
  .menu-toggle{display:flex}
  .header-in{gap:.8rem}
  .brand{margin-right:auto}

  .welcome-grid,.experience-grid,.shop-grid,.book-grid{grid-template-columns:1fr}
  .experience-grid{gap:2rem}
  /* text-first: media below copy on stacked layout */
  .exp-media{order:2;min-height:280px}
  .exp-copy{order:1}
  .shop-media{order:2;min-height:260px}
  .shop-copy{order:1}
  .hero{min-height:auto}
}

@media(max-width:560px){
  .tgrid{grid-template-columns:1fr}
  .visit-grid{grid-template-columns:1fr;max-width:400px}
  .field-row{grid-template-columns:1fr}
  .hero-cta{flex-direction:column;align-items:stretch}
  .hero-cta .btn{width:100%}
  .hero-facts{gap:1.4rem}
  .hero-facts li b{font-size:1.3rem}
  .foot-in{flex-direction:column}
  .foot-links{text-align:left}
  .logo-main{font-size:1.35rem}
  .logo-sub{letter-spacing:.28em}
}
