/* JPS Hair & Beauty theme styles (carried over from the approved design mock in site/) */

:root {
  --leaf: #6fbe48;          /* brand green from the logo */
  --leaf-600: #4f9a2f;
  --leaf-700: #3b7a24;      /* accessible green for buttons and links */
  --leaf-50: #f1f8ec;
  --navy: #17405f;          /* brand navy from the printed menus */
  --navy-800: #0f2d44;
  --gold: #8c6a25;
  --ink: #1d211c;
  --ink-soft: #4a514a;
  --muted: #747b73;
  --line: #e4e1da;
  --paper: #faf8f4;
  --surface: #ffffff;
  --sand: #f3efe7;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --display-weight: 700;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 30, 20, .06), 0 8px 28px rgba(20, 30, 20, .07);
  --shadow-card: 0 1px 2px rgba(20, 30, 20, .05), 0 6px 18px rgba(20, 30, 20, .06);
  --shadow-hover: 0 2px 6px rgba(20, 30, 20, .06), 0 16px 36px rgba(20, 30, 20, .12);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --logo-h: 76px;
  --logo-h-mobile: 56px;
  --header-h: calc(var(--logo-h) + 28px);
  --leaf-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M2 21C9 8 22 1 46 2c-4 13-17 21-33 19 6-3 12-8 17-14-7 5-15 10-28 14z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: calc(17px * var(--ts-body, 1));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-700); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; color: var(--ink); }
h1, h2, .display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
}
h1 { font-size: calc(clamp(2.4rem, 5.2vw, 4.2rem) * var(--ts-titles, 1)); }
/* Drop heading underlines below descenders like the @ so the line is never broken */
h1 a, h2 a, h3 a { text-decoration-thickness: 2px; text-underline-offset: .3em; text-decoration-skip-ink: none; }
h2 { font-size: calc(clamp(1.9rem, 3.6vw, 2.9rem) * var(--ts-headings, 1)); }
h3 { font-size: calc(1.2rem * var(--ts-cardtitles, 1)); font-weight: 600; letter-spacing: .01em; }
h4 { font-size: calc(1rem * var(--ts-cardtitles, 1)); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: calc(.9rem * var(--ts-labels, 1)); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--leaf-700);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 14px; flex: none;
  position: relative; top: var(--nudge-eyebrow, 0px);
  background: currentColor;
  -webkit-mask: var(--leaf-mask) center / contain no-repeat;
          mask: var(--leaf-mask) center / contain no-repeat;
}
.lead { font-size: calc(1.15rem * var(--ts-intro, 1)); color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: calc(.9rem * var(--ts-small, 1)); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
.section { padding: clamp(44px, 6vw, 80px) 0; }
.section--tight { padding: clamp(24px, 3.5vw, 44px) 0; }
.section--sand { background: var(--sand); }
.section--white { background: var(--surface); }
.section--navy { background: var(--navy); color: #e8eef3; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(22px, 3vw, 36px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 1000; background: #fff; padding: 8px 14px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.5em;
  border: 2px solid var(--leaf-700); border-radius: 999px;
  background: var(--leaf-700); color: #fff;
  font: 600 calc(.88rem * var(--ts-buttons, 1))/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--leaf-700); border-color: var(--leaf-700); }
.btn--ghost:hover { background: var(--leaf-700); border-color: var(--leaf-700); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--gold { background: var(--gold); border-color: var(--gold); }
.btn--gold:hover { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn--sm { min-height: 40px; padding: .55em 1.1em; font-size: calc(.78rem * var(--ts-buttons, 1)); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; font-size: calc(.85rem * var(--ts-buttons, 1)); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--leaf);
  padding-bottom: 2px;
}
.text-link:hover { color: var(--leaf-700); }

/* Utility bar */
.utility { background: var(--navy-800); color: #cfdbe5; font-size: calc(.82rem * var(--ts-announcement, 1)); }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { color: var(--leaf); }
.utility__phones { display: flex; gap: 22px; flex-wrap: wrap; }
.utility__msg { flex: 1; margin: 0; text-align: left; color: #fff; }
.utility__msg + .utility__phones { margin-left: auto; }
.utility__msg a { color: var(--leaf); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.utility__msg a:hover { color: #fff; }
.utility__phones span { color: #9fb3c3; margin-right: .35em; }
.utility__social { display: flex; gap: 14px; }
.utility__social svg { width: 16px; height: 16px; fill: currentColor; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.04); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.logo { position: relative; z-index: 41; display: block; line-height: 0; }
.logo img { height: var(--logo-h); width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none;
  font-size: calc(.86rem * var(--ts-menu, 1)); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav__link { position: relative; transition: color .2s, background-color .2s; }
.nav__link:hover, .nav__link[aria-current="page"], .nav__item.is-active > .nav__link { color: var(--leaf-700); }
.nav__link svg { width: 10px; height: 10px; position: relative; top: var(--nudge-dropdown, 0px); transition: transform .2s; }
@media (min-width: 1081px) {
  .nav__link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px;
    background: var(--leaf); transform: scaleX(0); transform-origin: left center; transition: transform .25s ease;
  }
  .has-dropdown > .nav__link::after { right: 28px; }
  .nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__item.is-active > .nav__link::after, .nav__item.is-open > .nav__link::after { transform: scaleX(1); }
  .nav__link:focus-visible { outline-offset: 2px; }
}
.nav__dropdown {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, 6px);
  min-width: 270px; padding: 8px; margin: 0; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 2px 6px rgba(20, 30, 20, .05), 0 18px 40px rgba(20, 30, 20, .12);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__dropdown::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav__item:hover > .nav__dropdown, .nav__item.is-open > .nav__dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__item:hover > .nav__link svg, .nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
.nav__dropdown li + li { margin-top: 2px; }
.nav__dropdown a {
  display: block; padding: 10px 14px; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-size: calc(.95rem * var(--ts-menu, 1));
  /* Leaving an item clears its fill almost instantly, so moving between items never shows two fills */
  transition: background-color .05s, color .05s, padding-left .2s;
}
.nav__dropdown a:hover, .nav__dropdown a[aria-current="page"] { background: var(--leaf-50); color: var(--leaf-700); padding-left: 18px; }
.nav__dropdown a:hover { transition: background-color .15s, color .15s, padding-left .2s; }
.nav__dropdown li:first-child { position: relative; margin-bottom: 9px; }
.nav__dropdown li:first-child::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -5px; height: 1px; background: var(--line); }
.nav__dropdown .nav__overview { font-weight: 600; color: var(--leaf-700); }
.nav__book { margin-left: 10px; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  :root { --header-h: calc(var(--logo-h-mobile) + 20px); }
  /* backdrop-filter would make the header the containing block for the fixed drawer */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  /* Lock only the root: locking body too would make it the sticky header's scroll container and hide the header */
  html.nav-locked { overflow: hidden; }
  .logo img { height: var(--logo-h-mobile); }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s, background .2s;
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

  .nav-toggle { position: relative; z-index: 41; }
  .nav-toggle span { top: var(--nudge-menu, 0px); }
  .nav {
    /* Starts where the header ends, so the links scroll inside the sheet and never pass under the logo */
    position: fixed; top: var(--drawer-top, var(--header-h)); right: 0; bottom: 0; left: 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background: var(--paper); overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: calc(1rem * var(--ts-menu, 1)); border-radius: 0; }
  .nav__dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; padding: 0 0 12px 8px; display: none; min-width: 0; background: transparent;
  }
  .nav__item:hover > .nav__dropdown { transform: none; }
  .nav__item.is-open > .nav__dropdown { display: block; transform: none; }
  .nav__book { margin: 24px 0 0; width: 100%; }
  .nav__phones { display: grid; gap: 6px; margin-top: 20px; font-size: calc(.95rem * var(--ts-menu, 1)); }
  .nav__phones a { color: var(--ink); text-decoration: none; }
  .nav__phones span { color: var(--muted); margin-right: .5em; }
}
@media (min-width: 1081px) { .nav__phones { display: none; } }
@media (max-width: 640px) { .utility__social { display: none; } .utility__phones { gap: 14px; } .utility__msg { text-align: center; } }
/* On small screens the message wins; phones are still in the menu and the call bar */
@media (max-width: 900px) { .utility--has-msg .utility__phones { display: none; } .utility__msg { padding: 8px 0; } }

/* Home hero */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--leaf-700); }
.hero .lead { margin-bottom: 1.8em; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: calc(.92rem * var(--ts-small, 1)); color: var(--ink-soft); }
.hero__trust strong { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-variant-numeric: lining-nums; font-size: calc(1.7rem * var(--ts-cardtitles, 1)); color: var(--ink); line-height: 1.1; }
.hero__media { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(420px, 48vw, 600px); }
.hero__media figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.hero__media figure:first-child { grid-row: 1 / span 2; border-radius: 200px 200px var(--radius) var(--radius); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: -22px; bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); padding: 12px 18px 12px 12px; border-radius: 999px; box-shadow: var(--shadow);
  font-size: calc(.85rem * var(--ts-small, 1)); line-height: 1.3;
  color: var(--ink); text-decoration: none;
}
.hero__badge:hover { color: var(--leaf-700); }
.hero__badge img { width: 42px; height: 42px; border-radius: 11px; }
.hero__badge strong { display: block; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__media { height: 420px; order: -1; }
  .hero__badge { left: 12px; bottom: 12px; }
}
@media (max-width: 520px) { .hero__media { height: 340px; grid-template-columns: 1.4fr 1fr; } }

/* Page hero (inner pages) */
.page-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); background: var(--sand); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 340px; opacity: .08;
  background: var(--leaf-700);
  -webkit-mask: var(--leaf-mask) center / contain no-repeat;
          mask: var(--leaf-mask) center / contain no-repeat;
  transform: rotate(-20deg); pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero--split .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-card); }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero h1 { font-size: calc(clamp(2.3rem, 4.6vw, 3.7rem) * var(--ts-titles, 1)); }
.page-hero .btn-row { margin-top: 24px; }
.breadcrumbs { font-size: calc(.82rem * var(--ts-small, 1)); color: var(--muted); margin-bottom: 18px; letter-spacing: .03em; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--leaf-700); }
.breadcrumbs span[aria-hidden] { margin: 0 .5em; }
@media (max-width: 860px) {
  .page-hero--split .wrap { grid-template-columns: 1fr; }
  .page-hero::after { width: 220px; height: 220px; }
}

/* Cards */
.grid { display: grid; gap: clamp(18px, 2.5vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: inherit; }
.card__media { aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(1.6rem * var(--ts-cardtitles, 1)); margin-bottom: .3em; letter-spacing: 0; }
.card__body p { color: var(--ink-soft); font-size: calc(.98rem * var(--ts-body, 1)); }
.card__price { font-size: calc(.85rem * var(--ts-small, 1)); color: var(--muted); margin-bottom: 14px; }
.card__price strong { color: var(--ink); font-weight: 600; }
.card__more { margin-top: auto; }
.card__more .text-link { font-size: calc(.78rem * var(--ts-buttons, 1)); }

/* Treatment tiles (compact cards) */
.tile { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; transition: box-shadow .2s, transform .2s; }
.tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: inherit; }
.tile img { width: 112px; height: 112px; border-radius: 10px; object-fit: cover; }
.tile h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(1.4rem * var(--ts-cardtitles, 1)); margin-bottom: .15em; }
.tile p { margin: 0; color: var(--ink-soft); font-size: calc(.93rem * var(--ts-body, 1)); line-height: 1.5; }

/* Price menu: the main editable component */
.menu-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.menu-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.menu-nav h2 { font-family: var(--font-body); font-size: calc(.78rem * var(--ts-labels, 1)); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.menu-nav ul { list-style: none; padding: 0; margin: 0 0 24px; border-left: 2px solid var(--line); }
.menu-nav a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-soft); text-decoration: none; font-size: calc(.95rem * var(--ts-buttons, 1)); }
.menu-nav a:hover, .menu-nav a.is-current { color: var(--leaf-700); border-color: var(--leaf-700); }
@media (max-width: 900px) {
  .menu-layout { grid-template-columns: 1fr; }
  .menu-nav { position: static; }
  .menu-nav ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .menu-nav a { padding: 8px 14px; margin: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: calc(.88rem * var(--ts-buttons, 1)); }
  .menu-nav .btn { display: none; }
}

.menu-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 40px); margin-bottom: 24px; }
.menu-section__head { display: grid; grid-template-columns: minmax(0, 1fr) min(var(--ps, 120px), 45%); gap: 20px; align-items: start; margin-bottom: 8px; }
.menu-section__head h2 { font-size: calc(clamp(1.8rem, 3vw, 2.3rem) * var(--ts-headings, 1)); margin-bottom: .2em; }
.menu-section__head img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.menu-section__intro { color: var(--ink-soft); margin-bottom: 18px; max-width: 64ch; }
.menu-group { margin-top: 22px; }
.menu-group > h3 { font-size: calc(.8rem * var(--ts-labels, 1)); letter-spacing: .16em; text-transform: uppercase; color: var(--leaf-700); margin-bottom: 4px; }
/* Price list photo: a size for computers, tablets and phones (--ps-d/t/p); big photos sit above the text (stack-d/t/p) */
.menu-section__img { width: 100%; aspect-ratio: 1; }
@media (min-width: 1024px) { .menu-section__head { --ps: var(--ps-d); } }
@media (min-width: 768px) and (max-width: 1023px) { .menu-section__head { --ps: var(--ps-t); } }
@media (max-width: 767px) { .menu-section__head { --ps: var(--ps-p); gap: 16px; } }
@media (min-width: 1024px) { .menu-section__head.stack-d { grid-template-columns: minmax(0, 1fr); } .menu-section__head.stack-d .menu-section__img { order: -1; width: min(var(--ps), 100%); } }
@media (min-width: 768px) and (max-width: 1023px) { .menu-section__head.stack-t { grid-template-columns: minmax(0, 1fr); } .menu-section__head.stack-t .menu-section__img { order: -1; width: min(var(--ps), 100%); } }
@media (max-width: 767px) { .menu-section__head.stack-p { grid-template-columns: minmax(0, 1fr); } .menu-section__head.stack-p .menu-section__img { order: -1; width: min(var(--ps), 100%); } }

.price-list { list-style: none; margin: 0; padding: 0; }
.price-item {
  display: grid; grid-template-columns: minmax(0, max-content) minmax(20px, 1fr) auto;
  column-gap: 12px; align-items: baseline;
  padding: 11px 0;
}
.price-item::before { content: ""; grid-column: 2; grid-row: 1; border-bottom: 1px dotted #c9c5bb; transform: translateY(-5px); }
.price-item__name { grid-column: 1; grid-row: 1; font-weight: 500; }
.price-item__name small { font-size: calc(.82rem * var(--ts-small, 1)); color: var(--muted); font-weight: 400; margin-left: .4em; white-space: nowrap; }
.price-item__price { grid-column: 3; grid-row: 1; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-item__price small { font-weight: 400; color: var(--muted); font-size: .8em; margin-right: .4em; }
.price-item__desc { grid-column: 1 / -1; margin: 6px 0 0; font-size: calc(.95rem * var(--ts-body, 1)); color: var(--ink-soft); max-width: 64ch; }
@media (max-width: 480px) {
  .price-item__name small { display: block; margin: 2px 0 0; }
}
.price-item__desc ul { margin: 6px 0 0; }
.price-item--feature { background: var(--leaf-50); border: 0; border-radius: 10px; padding: 16px 18px; margin: 10px 0; }
.price-tag { display: inline-block; font-size: calc(.7rem * var(--ts-labels, 1)); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--leaf-700); border-radius: 999px; padding: 3px 9px; margin-left: 8px; vertical-align: 2px; }

.note { display: flex; gap: 12px; padding: 14px 18px; border-radius: 10px; background: var(--sand); font-size: calc(.92rem * var(--ts-body, 1)); color: var(--ink-soft); margin: 18px 0 0; }
.note::before { content: "i"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font: 600 .75rem/1 var(--font-body); margin-top: 2px; }
.note p:last-child { margin: 0; }

/* Package cards (extensions, head spa, curls) */
.package { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.package__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.package__media img { width: 100%; height: 100%; object-fit: cover; }
.package__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.package__body h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(1.75rem * var(--ts-cardtitles, 1)); margin-bottom: .1em; }
.package__meta { font-size: calc(.9rem * var(--ts-small, 1)); color: var(--muted); margin-bottom: 14px; }
.package__price { font-family: var(--font-display); font-weight: var(--display-weight); font-variant-numeric: lining-nums; font-size: calc(2.1rem * var(--ts-prices, 1)); color: var(--leaf-700); line-height: 1; margin: 4px 0 14px; }
.package__price small { font-family: var(--font-body); font-size: calc(.9rem * var(--ts-small, 1)); color: var(--muted); font-weight: 400; }
.package ul:not(.price-list) { padding-left: 0; list-style: none; margin-bottom: 0; }
.package ul:not(.price-list) li { position: relative; padding-left: 26px; margin-bottom: 6px; font-size: calc(.95rem * var(--ts-body, 1)); color: var(--ink-soft); }
.package ul:not(.price-list) li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; background: var(--leaf); -webkit-mask: var(--leaf-mask) center / contain no-repeat; mask: var(--leaf-mask) center / contain no-repeat; }
.package .btn { margin-top: 22px; align-self: flex-start; }

/* Split content block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--reverse .split__media, .split--reverse .split__aside { order: 2; }
.split__media { border-radius: var(--radius); overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 4.2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

/* Feature list (why JPS) */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.feature h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(1.45rem * var(--ts-cardtitles, 1)); margin-bottom: .25em; }
.feature p { color: var(--ink-soft); font-size: calc(.95rem * var(--ts-body, 1)); margin: 0; }
.feature__icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf-50); color: var(--leaf-700); margin-bottom: 14px; }
.feature__icon svg { width: 22px; height: 22px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* Locations */
.locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.location { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.location h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(2rem * var(--ts-cardtitles, 1)); margin-bottom: .2em; }
.location address { font-style: normal; color: var(--ink-soft); margin-bottom: 14px; }
.location dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 20px; font-size: calc(.95rem * var(--ts-body, 1)); }
.location dt { color: var(--muted); }
.location dd { margin: 0; }
.location .btn-row { margin-top: auto; }
.location__map { border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 20px; background: var(--sand); }
.location__map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .locations { grid-template-columns: 1fr; } }

.location__hours { margin: 4px 0 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.location__hours h4 { font-size: calc(.75rem * var(--ts-labels, 1)); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: calc(.95rem * var(--ts-body, 1)); }
.hours li:last-child { border: 0; }
.hours li.is-today { font-weight: 600; color: var(--leaf-700); }
.hours li.is-closed span:last-child { color: var(--muted); }

.call-list { display: grid; gap: 10px; margin: 12px 0 22px; }
.call-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.call-link:hover { border-color: var(--leaf-700); background: var(--leaf-50); color: var(--ink); }
.call-link span { color: var(--muted); font-size: calc(.9rem * var(--ts-body, 1)); }
.call-link strong { font-size: calc(1.15rem * var(--ts-cardtitles, 1)); font-weight: 600; color: var(--leaf-700); }

/* Gallery */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery a { display: block; margin-bottom: 16px; border-radius: 10px; overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .4s ease, opacity .2s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery--row { columns: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery--row a { margin: 0; aspect-ratio: 1; }
.gallery--row img { height: 100%; object-fit: cover; }
@media (max-width: 760px) { .gallery--row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(10, 16, 12, .92); padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; max-width: min(1000px, 92vw); width: auto; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Instagram + app */
.social-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 24px; align-items: stretch; }
.ig-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ig-grid a { aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.ig-grid a:hover img { opacity: .85; }
.app-card {
  background: var(--surface); border: 2px solid var(--leaf); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px) 24px; color: var(--ink-soft);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.app-card img.app-card__icon { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 10px 26px rgba(20, 30, 20, .22); margin-bottom: 22px; }
.app-card h3 { font-family: var(--font-body); font-weight: 700; font-size: calc(1.15rem * var(--ts-cardtitles, 1)); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: .5em; }
.app-card p { font-size: calc(1rem * var(--ts-body, 1)); max-width: 30ch; }
.store-badges { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 6px; }
.store-badge { display: block; line-height: 0; border-radius: 9px; transition: transform .2s, box-shadow .2s; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.store-badge img { height: 52px; width: auto; }
@media (max-width: 860px) { .social-grid { grid-template-columns: 1fr; } .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* CTA band */
.cta-band { background: var(--navy); color: #dbe5ee; border-radius: calc(var(--radius) * 1.5); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -40px; bottom: -80px; width: 300px; height: 300px; background: var(--leaf); opacity: .14; -webkit-mask: var(--leaf-mask) center / contain no-repeat; mask: var(--leaf-mask) center / contain no-repeat; transform: rotate(-25deg); }
.cta-band h2 { color: #fff; margin-bottom: .25em; }
.cta-band p { margin: 0; max-width: 56ch; }
.cta-band .btn-row { position: relative; z-index: 1; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Policy / FAQ accordions */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 500; font-size: calc(1.08rem * var(--ts-body, 1)); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--leaf-700); border-bottom: 2px solid var(--leaf-700); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.accordion details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.accordion details.is-closing summary::after { transform: translateY(-70%) rotate(45deg); }
.accordion details { overflow: hidden; }
.accordion .accordion__body { padding: 0 0 22px; color: var(--ink-soft); max-width: 72ch; }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.6em; }
.prose ul li { margin-bottom: .4em; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; background: var(--leaf); -webkit-mask: var(--leaf-mask) center / contain no-repeat; mask: var(--leaf-mask) center / contain no-repeat; }

/* Forms */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: calc(.85rem * var(--ts-body, 1)); font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: calc(1rem * var(--ts-body, 1)); color: var(--ink);
  border: 1px solid #d6d2c9; border-radius: var(--radius-sm); background: var(--surface);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--leaf-700); box-shadow: 0 0 0 3px rgba(111, 190, 72, .25); }
.field textarea { min-height: 150px; resize: vertical; }
.form__status { padding: 14px 18px; border-radius: 10px; background: var(--leaf-50); color: var(--leaf-700); font-weight: 500; display: none; }
.form__status.is-visible { display: block; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-800); color: #b9c8d4; font-size: calc(.95rem * var(--ts-footer, 1)); }
.site-footer a { color: #e8eef3; text-decoration: none; }
.site-footer a:hover { color: var(--leaf); }
.footer__top { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.6fr; gap: 36px; padding: clamp(48px, 6vw, 72px) 0 40px; }
/* Logo with the social icons beside it; the icons wrap underneath rather than squeezing the logo */
.footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.footer__brand img { order: 0; flex: none; height: 64px; width: auto; max-width: none; filter: brightness(0) invert(1); opacity: .95; }
.footer__brand .footer__social { order: 1; margin: 0; gap: 8px; }
.footer__brand .footer__social a { width: 38px; height: 38px; }
.footer__brand p { order: 2; flex-basis: 100%; margin-top: 2px; }
.footer__brand p { max-width: 34ch; }
.site-footer h2 { font-family: var(--font-body); font-size: calc(.78rem * var(--ts-footer, 1)); letter-spacing: .18em; text-transform: uppercase; color: var(--leaf); margin-bottom: 14px; font-weight: 600; }
.site-footer h3 { color: #fff; font-size: calc(1rem * var(--ts-footer, 1)); margin-bottom: .3em; }
.site-footer address { font-style: normal; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 32px; }
.footer__links a { font-size: calc(.8rem * var(--ts-footer, 1)); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); }
.footer__social a:hover { background: var(--leaf-700); border-color: var(--leaf-700); color: #fff; }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: calc(.85rem * var(--ts-footer, 1)); color: #8ea3b4; }
@media (max-width: 960px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* Booking dialog */
.dialog { border: 0; padding: 0; border-radius: calc(var(--radius) * 1.4); width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.25); color: var(--ink); background: var(--surface); }
.dialog::backdrop { background: rgba(12, 22, 30, .55); backdrop-filter: blur(3px); }
.dialog__inner { padding: clamp(24px, 4vw, 40px); }
.dialog__close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.2rem; }
.dialog h2 { font-size: calc(2.2rem * var(--ts-headings, 1)); margin-bottom: .2em; }
.book-options { display: grid; gap: 12px; margin: 22px 0 18px; }
.book-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s, background .2s; }
.book-option:hover { border-color: var(--leaf-700); background: var(--leaf-50); color: var(--ink); }
.book-option strong { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(1.5rem * var(--ts-cardtitles, 1)); line-height: 1.2; }
.book-option span { font-size: calc(.9rem * var(--ts-small, 1)); color: var(--muted); }
.book-option svg { width: 22px; height: 22px; flex: none; color: var(--leaf-700); }

/* Sticky mobile book bar */
.mobile-book { display: none; }
@media (max-width: 760px) {
  .mobile-book { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 7px 14px calc(7px + env(safe-area-inset-bottom)); background: rgba(250,248,244,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .mobile-book .btn { width: 100%; min-height: 40px; padding: .55em 1em; font-size: calc(.8rem * var(--ts-buttons, 1)); }
  body { padding-bottom: 56px; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.nav-open .mobile-book { display: none; }

/* Mobile polish */
@media (max-width: 900px) {
  .hero { padding-top: 20px; }
  .hero__media { order: 0; height: 340px; }
}
@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 24px; }
  h2 { font-size: calc(2rem * var(--ts-headings, 1)); }
  .lead { font-size: calc(1.05rem * var(--ts-intro, 1)); }

  /* Headline and booking first, photos after */
  .hero h1 { font-size: calc(2.35rem * var(--ts-titles, 1)); }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .hero__media { height: 260px; grid-template-columns: 1.3fr 1fr; gap: 10px; }
  .hero__media figure:first-child { border-radius: 120px 120px var(--radius) var(--radius); }
  .hero__badge { padding: 8px 14px 8px 8px; font-size: calc(.78rem * var(--ts-small, 1)); }
  .hero__badge img { width: 34px; height: 34px; border-radius: 9px; }
  .hero__trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; padding-top: 18px; font-size: calc(.78rem * var(--ts-small, 1)); line-height: 1.35; }
  .hero__trust strong { font-size: calc(1.35rem * var(--ts-cardtitles, 1)); margin-bottom: 2px; }

  /* Cards become compact rows so long lists stay short */
  .card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .card__media { aspect-ratio: auto; height: 100%; min-height: 140px; }
  .card__body { padding: 14px 16px 16px; }
  .card__body h3 { font-size: calc(1.35rem * var(--ts-cardtitles, 1)); }
  .card__body p { font-size: calc(.9rem * var(--ts-body, 1)); line-height: 1.5; margin-bottom: .6em; }
  .card__price { margin-bottom: 6px; }
  a.card:hover { transform: none; }

  .tile { grid-template-columns: 84px 1fr; gap: 14px; padding: 10px; }
  .tile img { width: 84px; height: 84px; }
  .tile h3 { font-size: calc(1.25rem * var(--ts-cardtitles, 1)); }

  .page-hero h1 { font-size: calc(2.3rem * var(--ts-titles, 1)); }
  .page-hero .btn-row .btn { flex: 1 1 100%; }
  .page-hero__media { aspect-ratio: 16 / 10; }

  .menu-section { padding: 20px 18px; border-radius: 12px; }
  .package__body { padding: 20px 18px; }
  .location { padding: 20px 18px; }
  .location .btn-row .btn { flex: 1 1 auto; }
  .cta-band { padding: 28px 22px; }
  .cta-band .btn-row .btn { flex: 1 1 100%; }
  .split__media img { aspect-ratio: 4 / 3; }
  .ig-grid { gap: 6px; }

  .footer__top { gap: 28px; }
}
.text-link { padding: 8px 0 4px; }
.price-tag { font-size: calc(.75rem * var(--ts-labels, 1)); }
h1, h2, h3, .app-card h3 { text-wrap: balance; }
.hours__toggle { display: none; }
@media (max-width: 600px) {
  .ig-grid a:nth-child(n+7) { display: none; }
  /* Collapse weekly hours to today's row until expanded */
  .js .hours:not(.is-expanded) li:not(.is-today) { display: none; }
  .js .hours:not(.is-expanded) li.is-today { border-bottom: 0; }
  .js .hours__toggle {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 8px 0;
    background: none; border: 0; cursor: pointer; font: 600 calc(.78rem * var(--ts-buttons, 1))/1 var(--font-body);
    letter-spacing: .1em; text-transform: uppercase; color: var(--leaf-700);
  }
  .hours__toggle svg { width: 10px; height: 10px; transition: transform .2s; }
  .hours__toggle.is-open svg { transform: rotate(180deg); }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px 18px; font-size: calc(.86rem * var(--ts-footer, 1)); }
  .footer__brand, .footer__col { grid-column: 1 / -1; }
  .site-footer address, .site-footer p { overflow-wrap: anywhere; }
  .footer__bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 900px) {
  /* Sticky, swipeable section chips on long price menus */
  html:has(.menu-nav) { scroll-padding-top: calc(var(--header-h) + 72px); }
  .menu-nav {
    position: sticky; top: var(--header-h); z-index: 20;
    margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter);
    background: rgba(250, 248, 244, .96); border-bottom: 1px solid var(--line);
  }
  .menu-nav h2 { display: none; }
  .menu-nav ul { flex-wrap: nowrap; overflow-x: auto; margin: 0; scrollbar-width: none; }
  .menu-nav ul::-webkit-scrollbar { display: none; }
  .menu-nav a { white-space: nowrap; }
  .menu-nav a.is-current { background: var(--leaf-700); border-color: var(--leaf-700); color: #fff; }
}
@media (max-width: 900px) {
  .menu-layout { grid-template-columns: minmax(0, 1fr); }
  .menu-layout > * { min-width: 0; }
}
@media (max-width: 600px) {
  .gallery { columns: 2; column-gap: 10px; }
  .gallery a { margin-bottom: 10px; border-radius: 8px; }
  .location__map { aspect-ratio: 16 / 10; }
}

/* WordPress theme additions */
.cta-band--gold { background: var(--gold); }
.cta-band--gold p { color: #fff; }
.cta-band--stack { grid-template-columns: 1fr; }
.gallery--two { columns: 2 160px; }
.split__aside .menu-section { margin: 0; }
.menu-groups { gap: 24px; }
.menu-groups .menu-group { margin: 0; }
.hours__special { margin: 8px 0; padding: 10px 14px; border-radius: 8px; background: var(--leaf-50); color: var(--leaf-700); font-weight: 600; font-size: calc(.92rem * var(--ts-body, 1)); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { display: block; }
.form__status.is-error { background: #fdecea; color: #a1281d; }
.package .btn { margin-top: 22px; align-self: flex-start; }
.prose > :first-child { margin-top: 0; }
.wp-caption, .alignnone { max-width: 100%; }
/* Keep the sticky header below the WordPress admin bar when logged in */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* Live Instagram feed (Smash Balloon), matched to the theme's photo grid */
.ig-live #sb_instagram { padding: 0 !important; }
.ig-live #sb_instagram #sbi_images { padding: 0 !important; }
.ig-live #sb_instagram .sbi_photo_wrap, .ig-live #sb_instagram .sbi_photo { border-radius: 8px; overflow: hidden; }
.ig-live #sb_instagram .sbi_photo img { transition: opacity .2s; }
.ig-live #sb_instagram .sbi_photo:hover img { opacity: .85; }
/* Same grid as .ig-grid: 4 rows, 4 across (16 photos), and 3 across on phones (12 photos) */
.ig-live #sb_instagram #sbi_images { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px !important; width: 100% !important; }
.ig-live #sb_instagram #sbi_images .sbi_item { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.ig-live #sb_instagram .sbi_photo_wrap { aspect-ratio: 1; box-shadow: var(--shadow-card); }
.ig-live #sb_instagram .sbi_photo { display: block; height: 100% !important; }
.ig-live #sb_instagram .sbi_photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .ig-live #sb_instagram #sbi_images { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 601px) and (max-width: 860px) { .ig-live #sb_instagram #sbi_images { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 601px) { .ig-live #sb_instagram #sbi_images .sbi_item:nth-child(n+17) { display: none !important; } }
@media (max-width: 600px) {
  .ig-live #sb_instagram #sbi_images { gap: 6px !important; }
  .ig-live #sb_instagram #sbi_images .sbi_item:nth-child(n+13) { display: none !important; }
  /* The plugin's video and multi photo icons are sized for big tiles: about half size on phones */
  .ig-live #sb_instagram .sbi_playbtn { scale: .5; transform-origin: center; }
  .ig-live #sb_instagram :is(.sbi_lightbox_carousel_icon, .fa-clone, .sbi-carousel-icon) { scale: .6; transform-origin: top right; }
}
/* The app box keeps its own height beside a tall feed, centred beside it */
.social-grid:has(.ig-live) > .app-card { align-self: center; }

/* Icon positions, fine tuned under JPS Site › Icon Positions (defaults are 0) */
.utility__social svg { position: relative; top: var(--nudge-topbar, 0px); }
.footer__social svg { position: relative; top: var(--nudge-footer, 0px); }
.note::before { position: relative; top: var(--nudge-note, 0px); }
.book-option svg { position: relative; top: var(--nudge-booking, 0px); }
.hours__toggle svg { position: relative; top: var(--nudge-hours, 0px); }
.accordion summary::after { margin-top: var(--nudge-faq, 0px); }
.checklist li::before, .package ul:not(.price-list) li::before { margin-top: var(--nudge-bullet, 0px); }

/* Sections that share a background flow into each other without a double gap */
.section--white + .section--white, .section--white + .section--tight.section--white,
.section--tight.section--white + .section--white,
.section--sand + .section--sand,
main > section:not(.section--white):not(.section--sand):not(.hero):not(.page-hero) + section.section--tight:not(.section--white):not(.section--sand),
main > .section--tight:not(.section--white):not(.section--sand) + .section:not(.section--white):not(.section--sand) { padding-top: 0; }
.menu-section:last-child { margin-bottom: 0; }

/* Contact page: the form sits in a clear card with easy to see fields */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); padding: clamp(24px, 4vw, 40px); box-shadow: 0 2px 6px rgba(20, 30, 20, .04), 0 14px 36px rgba(20, 30, 20, .07); }
.contact-card h2 { margin-bottom: .6em; }
.contact-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.contact-aside h3 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(1.7rem * var(--ts-cardtitles, 1)); margin-bottom: .2em; }
.contact-aside .call-list { margin-top: 14px; }
.field label { font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { background: #f8f6f1; border: 1.5px solid #cdc6b8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #ada597; }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--surface); }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}

/* Photos cannot be dragged out or long-pressed to save (PDF links are unaffected) */
img { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; }
/* Tablets: four Instagram photos per row so eight make two full rows */
@media (min-width: 601px) and (max-width: 860px) { .ig-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Tablets (iPad mini and iPad): three-across layouts stay three across; packages become photo-beside-text rows */
@media (min-width: 601px) and (max-width: 960px) {
  .grid--3 { gap: 16px; }
  .grid--3 .card__body { padding: 16px 16px 18px; }
  .grid--3 .card__body h3 { font-size: calc(1.35rem * var(--ts-cardtitles, 1)); }
  .grid--3 .card__body p { font-size: calc(.92rem * var(--ts-body, 1)); }
  .grid--3 .tile { grid-template-columns: 72px 1fr; gap: 12px; padding: 10px; }
  .grid--3 .tile img { width: 72px; height: 72px; }
  .grid--3 .tile h3 { font-size: calc(1.2rem * var(--ts-cardtitles, 1)); }
  .grid--3 .tile p { font-size: calc(.86rem * var(--ts-body, 1)); }
  .grid:has(> .package) { grid-template-columns: 1fr; gap: 20px; }
  .package:has(.package__media) { flex-direction: row; }
  .package:has(.package__media) .package__media { flex: 0 0 38%; aspect-ratio: auto; }
  .package:has(.package__media) .package__media img { height: 100%; }
}

/* Optional icon before a menu item's wording, such as the tiara on Bridal + Formal */
.nav__icon { display: inline-flex; color: #b48a2c; margin-right: 7px; position: relative; top: calc(-1px + var(--nudge-navicon, 0px)); vertical-align: middle; }
.nav__icon svg { width: 18px; height: 18px; fill: currentColor; }
.nav__dropdown a:hover .nav__icon, .nav__dropdown a[aria-current="page"] .nav__icon { color: #9c7520; }

/* Instagram, TikTok and Facebook buttons under a gallery heading */
.social-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social-button {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px 10px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  color: var(--ink); font-size: calc(.92rem * var(--ts-buttons, 1)); font-weight: 500; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.social-button svg { width: 18px; height: 18px; fill: currentColor; color: var(--leaf-700); transition: color .2s; }
.social-button:hover { background: var(--leaf-700); border-color: var(--leaf-700); color: #fff; transform: translateY(-2px); }
.social-button:hover svg { color: #fff; }
@media (max-width: 480px) { .social-buttons { gap: 8px; } .social-button { padding: 9px 13px 9px 11px; gap: 7px; font-size: calc(.86rem * var(--ts-buttons, 1)); } .social-button svg { width: 16px; height: 16px; } }

/* A soft shadow lifts white cards off the cream and white backgrounds */
.card, .tile, .menu-section, .package, .location, .call-link, .app-card { box-shadow: var(--shadow-card); }
.cta-band { box-shadow: 0 2px 4px rgba(15, 35, 50, .08), 0 12px 30px rgba(15, 35, 50, .14); }

/* A section heading that is only a small label sits closer to what follows */
.section-head:has(> .eyebrow:only-child) { margin-bottom: clamp(4px, 1vw, 10px); }

/* Space between the announcement bar and the logo */
.utility + .site-header { margin-top: 10px; }

/* Small heading sits snugly on its heading inside text blocks */
.prose > .eyebrow + h2, .prose > .eyebrow + h3 { margin-top: 0; }

/* Breathing room between the gift card and shop panels and the next section */
main > .gift-shop.section--tight { padding-bottom: clamp(64px, 8vw, 112px); }

/* Gift card and shop panels tilt slightly towards the cursor, like a card in the hand */
.tilt { transform: perspective(900px) rotateX(0) rotateY(0); transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s; will-change: transform; }
.tilt::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 55%);
}
.tilt > * { position: relative; z-index: 1; }
.tilt.is-tilting { transition: transform .12s ease-out, box-shadow .3s; box-shadow: 0 18px 40px rgba(15, 35, 50, .22); }
.tilt.is-tilting::before { opacity: 1; }

/* "See us on Google" in each salon card */
.location__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 4px 12px; }
.location__head h3 { margin-bottom: .2em; }
.google-link {
  display: inline-flex; align-items: center; gap: 8px; flex: none; margin-top: 6px;
  padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font-size: calc(.8rem * var(--ts-buttons, 1)); font-weight: 500; text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
.google-link:hover { border-color: #c9c3b6; box-shadow: 0 4px 12px rgba(0,0,0,.06); color: var(--ink); }
.google-link svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 400px) { .google-link { padding: 6px 11px 6px 8px; font-size: calc(.76rem * var(--ts-buttons, 1)); gap: 6px; } }

/* Leaf vine divider: sits on the line where two sections meet, half over each.
   The stem draws outward from the centre and the leaves unfurl in turn. */
.vine-seam { position: relative; z-index: 2; height: 64px; margin: -32px 0; overflow: hidden; pointer-events: none; }
.vine { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; width: min(calc(100% - 2 * var(--gutter)), 760px); height: auto; overflow: visible; }
.vine__stem { fill: none; stroke: var(--leaf-600); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s cubic-bezier(.5, 0, .2, 1) .1s; }
.vine__leaf { fill: var(--leaf); transform-box: fill-box; transform-origin: 4% 88%; transform: scale(0) rotate(-25deg); opacity: 0; transition: transform .45s cubic-bezier(.3, 1.5, .5, 1) var(--out, 0s), opacity .3s var(--out, 0s); }
.vine__leaf--dark { fill: var(--leaf-600); }
.vine__bud { fill: var(--leaf-700); transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .35s ease .05s; }
.vine.is-grown .vine__stem { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.3, .1, .2, 1) .15s; }
.vine.is-grown .vine__leaf { transform: none; opacity: 1; transition: transform .55s cubic-bezier(.3, 1.5, .5, 1) var(--in, 0s), opacity .3s var(--in, 0s); }
.vine.is-grown .vine__leaf--centre { --in: 0s; }
.vine.is-grown .vine__bud { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .vine .vine__stem { stroke-dashoffset: 0; }
  .vine .vine__leaf, .vine .vine__bud { transform: none; opacity: 1; }
}

/* Custom dropdowns on the contact form (same look on every device) */
.field__label { display: block; font-size: calc(.85rem * var(--ts-body, 1)); font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.select { position: relative; }
.select__button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px; font: inherit; font-size: calc(1rem * var(--ts-body, 1)); color: var(--ink); text-align: left; cursor: pointer;
  background: #f8f6f1; border: 1.5px solid #cdc6b8; border-radius: var(--radius-sm);
}
.select__button:hover { border-color: #ada597; }
.select__button.is-placeholder span { color: var(--muted); }
.select__button svg { width: 12px; height: 12px; flex: none; color: var(--leaf-700); transition: transform .2s; }
.select__button[aria-expanded="true"] { border-color: var(--leaf-700); background: var(--surface); box-shadow: 0 0 0 3px rgba(111, 190, 72, .25); }
.select__button[aria-expanded="true"] svg { transform: rotate(180deg); }
.select__list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none;
  max-height: 280px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 2px 6px rgba(20, 30, 20, .06), 0 18px 40px rgba(20, 30, 20, .14);
}
.select__list li { padding: 10px 12px 10px 34px; border-radius: 10px; cursor: pointer; position: relative; outline: none; }
.select__list li:hover, .select__list li:focus { background: var(--leaf-50); color: var(--leaf-700); }
.select__list li[aria-selected="true"] { font-weight: 600; color: var(--leaf-700); }
.select__list li[aria-selected="true"]::before { content: ""; position: absolute; left: 12px; top: 50%; width: 12px; height: 7px; margin-top: -5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }

/* Phones: slightly wider side margins for page content (the footer keeps its own) */
@media (max-width: 600px) {
  :root { --gutter: 22px; }
  .site-footer { --gutter: 16px; }
}

/* Bold words in headings are green, e.g. "one <strong>JPS</strong> experience".
   A line break with class "phone" only breaks on phones. */
h1 strong, h2 strong { color: var(--leaf-700); font-weight: 700; }
br.phone { display: none; }
@media (max-width: 600px) { br.phone { display: inline; } }

/* Gallery headings with social buttons fill the line on phones instead of splitting evenly */
@media (max-width: 600px) { .gallery-head h2 { text-wrap: pretty; } }

/* ==green== in any text box */
mark { background: none; color: var(--leaf-700); font-weight: 600; }
.cta-band mark, .site-footer mark, .utility mark { color: var(--leaf); }

/* Three photo gallery with a "View the full gallery" button */
.gallery--preview { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 16px); }
.gallery--preview a { margin: 0; aspect-ratio: 1; }
.gallery--preview a[hidden] { display: none; }
.gallery--preview img { height: 100%; object-fit: cover; }
.gallery__more { display: flex; justify-content: center; margin-top: clamp(20px, 3vw, 32px); }
.gallery-head__intro { margin: 14px 0 0; max-width: 70ch; }

/* Salon photo slideshow in the salon cards */
.carousel { position: relative; margin-bottom: 20px; border-radius: 10px; overflow: hidden; background: var(--sand); }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16 / 10; cursor: zoom-in; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--ink); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15); transition: background-color .2s, opacity .2s;
}
.carousel__nav:hover { background: #fff; }
.carousel__nav svg { width: 12px; height: 12px; }
.carousel__nav--prev { left: 10px; }
.carousel__nav--prev svg { transform: rotate(90deg); }
.carousel__nav--next { right: 10px; }
.carousel__nav--next svg { transform: rotate(-90deg); }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.carousel__dots button { pointer-events: auto; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .6); cursor: pointer; transition: background-color .2s, transform .2s; }
.carousel__dots button[aria-current] { background: #fff; transform: scale(1.25); }
@media (hover: hover) { .carousel__nav { opacity: 0; } .carousel:hover .carousel__nav, .carousel__nav:focus-visible { opacity: 1; } }

/* Full screen viewer: photo count, no arrows for a single photo, page locked behind it */
html.lightbox-open { overflow: hidden; }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: .85rem; letter-spacing: .08em; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { display: none; }
@media (max-width: 600px) {
  .lightbox { padding: 12px; }
  .lightbox img { max-width: 100%; max-height: 78vh; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; }
  .lightbox__count { bottom: 30px; }
}

/* Photos that stand on their own (not inside a card) get the same light shadow as the cards */
.hero__media figure, .split__media, .gallery a, .ig-grid a { box-shadow: var(--shadow-card); }

/* Photo framing set in WP Admin: --fx/--fy is the spot that stays in view, --fz the zoom.
   "scale" is separate from "transform", so card hover zooms still work on top. */
img.is-framed { object-position: var(--fx, 50%) var(--fy, 50%); scale: var(--fz, 1); transform-origin: var(--fx, 50%) var(--fy, 50%); }
img.is-fit { object-fit: contain !important; scale: 1; background: var(--sand); }
.tile__media, .menu-section__img { display: block; flex: none; line-height: 0; overflow: hidden; border-radius: 10px; }
.menu-section__img { border-radius: 12px; }
.carousel__slide, .hero__media figure { overflow: hidden; }

/* Price list rows follow the Prices size setting (JPS Site > Text Sizes) */
.price-list { font-size: calc(1em * var(--ts-prices, 1)); }

/* Alignment and spacing set in the JPS Editor (inc/editor.php) */
span.jps-t.is-moved { display: inline-block; }
span.jps-t.is-block { display: block; }
/* Alignment, spacing and size, each set separately for computers (d), tablets (t) and phones (p) */
@media (min-width: 1024px) { .jps-t.al-d { text-align: var(--al-d); } .jps-t.mt-d { margin-top: var(--mt-d); } .jps-t.mb-d { margin-bottom: var(--mb-d); } .jps-t.fs-d { font-size: var(--fs-d); } }
@media (min-width: 768px) and (max-width: 1023px) { .jps-t.al-t { text-align: var(--al-t); } .jps-t.mt-t { margin-top: var(--mt-t); } .jps-t.mb-t { margin-bottom: var(--mb-t); } .jps-t.fs-t { font-size: var(--fs-t); } }
@media (max-width: 767px) { .jps-t.al-p { text-align: var(--al-p); } .jps-t.mt-p { margin-top: var(--mt-p); } .jps-t.mb-p { margin-bottom: var(--mb-p); } .jps-t.fs-p { font-size: var(--fs-p); } }
/* Text moved by dragging in the JPS Editor, separately for computers, tablets and phones */
.jps-t.is-moved { translate: var(--mx, 0px) var(--my, 0px); }
@media (max-width: 1023px) { .jps-t.is-moved { translate: var(--mx-t, 0px) var(--my-t, 0px); } }
@media (max-width: 767px) { .jps-t.is-moved { translate: var(--mx-p, 0px) var(--my-p, 0px); } }

/* Key points straight after text on the same background (e.g. Keratin vs Nanoplasty) sit closer to it */
main > section.section:not(.section--white):not(.section--sand):not(.hero):not(.page-hero):has(+ section.points.section--tight:not(.section--white):not(.section--sand)),
main > section.section--white:has(+ section.points.section--tight.section--white),
main > section.section--sand:has(+ section.points.section--tight.section--sand) { padding-bottom: clamp(16px, 2.5vw, 28px); }

/* A shape chosen for a photo in the JPS Editor (square, arch, wide...): the photo sets the height */
/* White cards resized by dragging their edges in the JPS Editor, per screen size (inc/editor.php jps_box()) */
@media (min-width: 1024px) { .jps-box.bw-d { width: min(var(--bw-d), 100%); max-width: 100%; } .jps-box.bh-d { height: var(--bh-d); min-height: 0; } .jps-box.bl-d { margin-left: var(--bl-d); } .jps-box.bt-d { margin-top: var(--bt-d); } }
@media (min-width: 768px) and (max-width: 1023px) { .jps-box.bw-t { width: min(var(--bw-t), 100%); max-width: 100%; } .jps-box.bh-t { height: var(--bh-t); min-height: 0; } .jps-box.bl-t { margin-left: var(--bl-t); } .jps-box.bt-t { margin-top: var(--bt-t); } }
@media (max-width: 767px) { .jps-box.bw-p { width: min(var(--bw-p), 100%); max-width: 100%; } .jps-box.bh-p { height: var(--bh-p); min-height: 0; } .jps-box.bl-p { margin-left: var(--bl-p); } .jps-box.bt-p { margin-top: var(--bt-p); } }

/* Text boxes resized by their corner: the height only grows, so words are never cut off */
@media (min-width: 1024px) { .jps-t.jps-box.bh-d { height: auto; min-height: var(--bh-d); } }
@media (min-width: 768px) and (max-width: 1023px) { .jps-t.jps-box.bh-t { height: auto; min-height: var(--bh-t); } }
@media (max-width: 767px) { .jps-t.jps-box.bh-p { height: auto; min-height: var(--bh-p); } }

/* Each screen size (computers d, tablets t, phones p) can have its own shape */
@media (min-width: 1024px) {
  :is(.card__media, .package__media, .split__media, .page-hero__media, .carousel__slide, .gallery a, .ig-grid a, .hero__media figure, .tile__media, .menu-section__img):has(> img.shape-d) { aspect-ratio: auto; height: auto; }
  img.shape-d { width: 100%; height: auto !important; aspect-ratio: var(--sr-d); object-fit: cover; }
  img.shape-d.arch-d { border-radius: 999px 999px var(--radius) var(--radius); }
  .hero__media figure:has(> img.shape-d) { align-self: start; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  :is(.card__media, .package__media, .split__media, .page-hero__media, .carousel__slide, .gallery a, .ig-grid a, .hero__media figure, .tile__media, .menu-section__img):has(> img.shape-t) { aspect-ratio: auto; height: auto; }
  img.shape-t { width: 100%; height: auto !important; aspect-ratio: var(--sr-t); object-fit: cover; }
  img.shape-t.arch-t { border-radius: 999px 999px var(--radius) var(--radius); }
  .hero__media figure:has(> img.shape-t) { align-self: start; }
}
@media (max-width: 767px) {
  :is(.card__media, .package__media, .split__media, .page-hero__media, .carousel__slide, .gallery a, .ig-grid a, .hero__media figure, .tile__media, .menu-section__img):has(> img.shape-p) { aspect-ratio: auto; height: auto; }
  img.shape-p { width: 100%; height: auto !important; aspect-ratio: var(--sr-p); object-fit: cover; }
  img.shape-p.arch-p { border-radius: 999px 999px var(--radius) var(--radius); }
  .hero__media figure:has(> img.shape-p) { align-self: start; }
}
