/* Lincoln Salon & Spa — hand-written, edit directly.
   build.py generates index.html; it never touches this file.

   The palette is taken off the salon itself: cream walls and grey stacked tile
   from the interior photos, and the lavender/rose of the profile-and-flower
   glyph on the storefront sign. The arch shapes echo the arched alcoves above
   the wash stations. */

:root {
  --ink:      #40204d;   /* deep purple, body text */
  --plum:     #5b2a80;   /* headings */
  --deep:     #3a1655;   /* topbar and footer ground */
  --lilac:    #cf9ee6;   /* hairlines, the mark */
  --lilac-lt: #f3e6fb;
  --rose:     #e5399a;   /* pink — the accent that does the work */
  --rose-lt:  #fdecf6;
  --cream:    #fff8fc;   /* page ground */
  --sand:     #fbe9f4;
  --stone:    #9b7fa8;   /* muted purple, meta text */
  --line:     #f2dcec;
  --white:    #fff;
  --grad:     linear-gradient(115deg, #7c3fae, #e5399a);

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans:  "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --gap: clamp(3rem, 7vw, 6rem);
  --arch: 50% 50% 4px 4px / 26% 26% 2% 2%;
  --shadow: 0 1px 2px rgba(44,34,48,.05), 0 12px 32px -12px rgba(44,34,48,.2);
}

*, *::before, *::after { box-sizing: border-box; }

/* Any rule that sets `display` on a class outranks the UA's [hidden] rule, so
   .tabs and the hero pill stayed on screen with JS disabled. Make hidden win. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 clamp(1rem, .96rem + .2vw, 1.07rem)/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--plum);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
}
h1 { font-size: clamp(2.7rem, 1.6rem + 4.4vw, 5rem); }
h2 { font-size: clamp(2rem, 1.5rem + 2.3vw, 3.25rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + .45vw, 1.45rem); }
h1 em, h2 em { font-style: italic; color: var(--rose); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--pad); }
section { padding-block: var(--gap); }

/* Small-caps label above a heading. */
.eyebrow {
  font: 700 .72rem/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone);
  display: flex; align-items: center; gap: .7rem;
  margin: 0 0 1.25rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--lilac); flex: none; }
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::after { content: ""; width: 2rem; height: 1px; background: var(--lilac); flex: none; }

.lede { font-size: 1.1em; color: #4c4048; max-width: 48ch; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem;
  font: 700 .78rem/1 var(--sans);
  letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -8px rgba(229,57,154,.65); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(229,57,154,.7); }
.btn-ghost { border-color: var(--plum); color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: var(--cream); transform: translateY(-2px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- header ---------- */

.topbar { background: var(--deep); color: #ded2e4; font: 500 .78rem/1.5 var(--sans); letter-spacing: .05em; }
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: .3rem 1.4rem;
  align-items: center; justify-content: center;
  padding-block: .55rem; text-align: center;
}
.topbar a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.topbar a:hover { border-color: var(--rose); color: #f4d7e3; }
.topbar span { display: inline-flex; align-items: center; gap: .45rem; }
.topbar svg { width: 1.05em; height: 1.05em; flex: none; }
.topbar .sep { color: rgba(255,255,255,.3); }
@media (max-width: 620px) { .topbar .sep { display: none; } }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,248,252,.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.stuck { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(44,34,48,.55); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .85rem; }

.mark { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.mark svg { width: 32px; height: 32px; flex: none; }
.mark-name { font-family: var(--serif); font-size: 1.35rem; line-height: 1.05; color: var(--plum); }
.mark-name em { font-style: italic; color: var(--rose); }
.mark-name small { display: block; font: 600 .58rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--stone); margin-top: .28rem; }

.nav-links { display: flex; align-items: center; gap: 1.55rem; }
.nav-links a {
  font: 500 .85rem/1 var(--sans); letter-spacing: .03em;
  text-decoration: none; color: var(--ink); padding-block: .3rem;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { border-color: var(--rose); color: var(--rose); }
.nav-links .btn-primary { padding: .7rem 1.2rem; border-bottom: 0; color: #fff; }
.nav-links .btn-primary:hover { color: #fff; border-color: transparent; }

.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; color: var(--plum); }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav .wrap { position: relative; }
  .nav-links {
    position: absolute; inset: 100% calc(var(--pad) * -1) auto; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .25rem var(--pad) 1.25rem; box-shadow: var(--shadow);
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { padding-block: .85rem; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: .9rem; text-align: center; }
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--gap); position: relative; overflow: hidden; }
.hero::before {                       /* soft lilac wash behind the portrait */
  content: ""; position: absolute; z-index: 0;
  right: -14%; top: 2%; width: 64%; aspect-ratio: 1;
  background: radial-gradient(closest-side circle at 50% 50%, var(--lilac-lt), var(--rose-lt) 55%, transparent 100%);
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr .8fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero-copy .btns { margin-top: 2rem; }

.hero-figure { position: relative; max-width: 27rem; width: 100%; margin-left: auto; }
.hero-figure img { width: 100%; border-radius: var(--arch); box-shadow: var(--shadow); position: relative; z-index: 1; }
.hero-figure::after {                 /* offset arch outline — a framed-mirror feel */
  content: ""; position: absolute; inset: 1.15rem -1.15rem -1.15rem 1.15rem;
  border: 1px solid var(--lilac); border-radius: var(--arch);
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font: 500 .8rem/1.5 var(--sans); letter-spacing: .03em; color: var(--stone);
}
.hero-meta span { display: flex; align-items: center; gap: .5rem; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); flex: none; }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { max-width: 25rem; margin-inline: auto; }
  .hero::before { right: -35%; width: 110%; }
}

/* ---------- product strip ---------- */

.strip { background: var(--sand); padding-block: 1.3rem; }
.strip .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .45rem clamp(1.1rem, 4vw, 2.75rem);
  font: 600 .76rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--stone); text-align: center;
}
.strip b { color: var(--plum); font-weight: 700; }

/* ---------- section heads ---------- */

.section-head { max-width: 42rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .lede { margin-inline: auto; }
.section-head.centered .eyebrow { justify-content: center; }
.section-head h2 + .lede { margin-top: 1.1rem; }

/* ---------- services ---------- */

.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .menu-grid { grid-template-columns: 1fr; } }

.menu { border-top: 2px solid var(--plum); padding-top: 1.5rem; }
.menu h3 { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1.25rem; }
.menu h3 .tag { font: 600 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--lilac); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li {
  display: flex; align-items: baseline; gap: .75rem;
  padding: .8rem 0; border-bottom: 1px solid var(--line);
}
.menu li:last-child { border-bottom: 0; }
.menu .name { color: var(--ink); }
.menu .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-.28em); min-width: 1.5rem; }
.menu .price { font: 600 .82rem/1 var(--sans); letter-spacing: .06em; color: var(--rose); white-space: nowrap; }
.menu-note { margin-top: 1.5rem; font-size: .9em; color: var(--stone); }

/* ---------- split blocks ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.flip .split-figure { order: 2; }
.split-figure { position: relative; max-width: 27rem; width: 100%; margin-inline: auto; }
.split-figure img { width: 100%; box-shadow: var(--shadow); }
.split-figure.arch img { border-radius: var(--arch); }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.flip .split-figure { order: 0; }
  .split-figure { max-width: 28rem; margin-inline: auto; }
}

.quote {
  margin: 2rem 0 0; padding-left: 1.4rem; border-left: 2px solid var(--lilac);
  font-family: var(--serif); font-size: 1.4rem; line-height: 1.42; font-style: italic;
  color: var(--plum);
}

/* ---------- full-bleed band ---------- */

.band { position: relative; padding: 0; }
.band img { width: 100%; height: clamp(20rem, 46vh, 30rem); object-fit: cover; }
.band-copy {
  position: absolute; inset: auto 0 0; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.75rem, 4vw, 3rem);
  background: linear-gradient(transparent, rgba(58,22,85,.45) 30%, rgba(58,22,85,.9));
  color: var(--white);
}
.band-copy h2 { color: var(--white); max-width: 20ch; }
.band-copy p { color: #eadfe6; max-width: 46ch; margin-top: .8rem; }

/* ---------- gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.7rem, 1.5vw, 1.15rem); }
.gallery figure { margin: 0; overflow: hidden; background: var(--sand); aspect-ratio: 4/5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 360px) { .gallery { grid-template-columns: 1fr; } }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure:nth-child(3n+1) { border-radius: var(--arch); }

/* ---------- consultation ---------- */

.consult { background: var(--rose-lt); }
.consult h2 { max-width: 18ch; }
.consult p { margin-top: 1rem; max-width: 46ch; color: #56464e; }
.consult .btns { margin-top: 1.75rem; }
.consult .split-figure { max-width: 32rem; }

/* ---------- testimonials ---------- */

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); }
.quotes blockquote {
  margin: 0; background: var(--white); border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.1rem); display: flex; flex-direction: column; gap: 1rem;
}
.quotes .stars { color: var(--rose); letter-spacing: .18em; font-size: .9rem; }
.quotes p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--plum); font-style: italic; }
.quotes cite { margin-top: auto; font: 600 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); font-style: normal; }

/* ---------- visit ---------- */

.visit { background: var(--sand); }
.visit .split-figure { max-width: 32rem; }
.facts { display: grid; gap: 1.65rem; margin: 2rem 0 0; }
.facts > div { display: grid; gap: .3rem; }
.facts dt { font: 700 .71rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
.facts dd { margin: 0; font-size: 1.05em; color: var(--plum); }
.facts dd a { text-decoration: none; border-bottom: 1px solid var(--lilac); }
.facts dd a:hover { color: var(--rose); border-color: var(--rose); }
.hours { display: grid; gap: .2rem; font-variant-numeric: tabular-nums; }
.hours div { display: flex; justify-content: space-between; gap: 1.5rem; max-width: 23rem; }
.hours span { white-space: nowrap; }
.hours .closed { color: var(--stone); }

.map { border: 0; width: 100%; aspect-ratio: 16/7; box-shadow: var(--shadow); filter: saturate(.85); }

/* ---------- footer ---------- */

.footer { background: var(--deep); color: #cfc2d6; padding-block: clamp(2.5rem, 5vw, 4rem) 1.75rem; }
.footer h2 { color: var(--white); max-width: 16ch; }
.footer .mark-name { color: var(--white); }
.footer .mark-name em { color: var(--lilac); }
.footer .mark-name small { color: rgba(255,255,255,.55); }
.footer-top {
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer .btn-primary:hover { filter: none; background: var(--white); color: var(--plum); }
.footer .btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.footer .btn-ghost:hover { background: var(--white); color: var(--plum); }
.footer-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 2rem 1.75rem; padding-block: 2rem;
}
@media (min-width: 820px) {
  .footer-cols > div:first-child { grid-column: span 2; padding-right: 2rem; }
}
.footer-cols h4 { margin: 0 0 .85rem; font: 700 .71rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .93rem; }
.footer a { color: #e7dcec; text-decoration: none; }
.footer-cols a:hover, .footer-bottom a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; justify-content: space-between;
  padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .8rem; color: rgba(255,255,255,.55);
}

/* ---------- draft chips ----------
   Rendered only when build.py runs with DRAFT = True, standing in for a fact
   Cindy hasn't confirmed. Amber and dashed on purpose — none of this should
   ever reach the live site. Set DRAFT = False and these facts drop out. */
.todo {
  display: inline-block; padding: .1em .5em; border-radius: 2px;
  background: #fdf1da; border: 1px dashed #c08a2e; color: #78530f;
  font: 600 .74rem/1.6 var(--sans); letter-spacing: .02em; text-transform: none;
}
.draft-copy {
  background: linear-gradient(transparent 82%, #f7dfae 82%);
  box-shadow: -.45rem 0 0 #f7dfae;
}
.draft-banner {
  background: #78530f; color: #fdf1da; text-align: center;
  padding: .6rem var(--pad); font: 600 .78rem/1.5 var(--sans);
}

/* ---------- scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ==========================================================================
   Interactive pieces. Each one is progressive: without JS the tabs are hidden
   and every panel shows, the gallery tiles are plain images, the action bar
   never appears, and the "open now" pill stays hidden.
   ========================================================================== */

/* ---------- service tabs ---------- */

.tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.tab {
  display: inline-flex; align-items: baseline; gap: .55rem;
  padding: .7rem 1.25rem; border: 1px solid var(--line); border-radius: 100px;
  background: var(--white); color: var(--plum); cursor: pointer;
  font: 600 .88rem/1 var(--sans);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.tab .tab-tag { font: 500 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.tab:hover { border-color: var(--lilac); transform: translateY(-1px); }
.tab[aria-selected="true"] { background: var(--grad); border-color: transparent; color: #fff; }
.tab[aria-selected="true"] .tab-tag { color: rgba(255,255,255,.75); }

/* With tabs live the grid collapses to the one visible panel. The two-column
   list keeps a nine-item menu from becoming a long thin ribbon. */
#services.js-tabs .menu-grid { grid-template-columns: 1fr; }
#services.js-tabs .menu { border-top: 0; padding-top: 0; }
#services.js-tabs .menu h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* Two columns only where there is genuinely room. auto-fit was the wrong tool:
   a grid item's automatic minimum is its content, so the track kept its 24rem
   intrinsic width and the panel grew to 1024px inside a 390px phone — clipped
   rather than reflowed. An explicit breakpoint can't do that. */
#services.js-tabs .menu { min-width: 0; }
#services.js-tabs .menu ul { display: grid; gap: 0 clamp(2rem, 4vw, 3.5rem); max-width: 64rem; }
#services.js-tabs .menu li { min-width: 0; }
@media (min-width: 900px) {
  #services.js-tabs .menu ul { grid-template-columns: 1fr 1fr; }
}

/* ---------- gallery tiles ---------- */

.tile {
  display: block; position: relative; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden;
}
.tile-zoom {
  position: absolute; inset: auto .7rem .7rem auto;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  border-radius: 50%; background: rgba(58,22,85,.55); color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
  backdrop-filter: blur(4px);
}
.tile-zoom svg { width: 1.15rem; height: 1.15rem; }
.tile:hover .tile-zoom, .tile:focus-visible .tile-zoom { opacity: 1; transform: none; }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 55%, rgba(58,22,85,.35));
  opacity: 0; transition: opacity .3s;
}
.tile:hover::after { opacity: 1; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem); padding: clamp(1rem, 4vw, 3rem);
  background: rgba(38,12,55,.96);
  backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .25s;
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; min-width: 0; display: grid; justify-items: center; gap: 1rem; }
.lb-stage img {
  max-width: 100%; max-height: 76vh; width: auto; border-radius: 3px;
  box-shadow: 0 30px 70px -30px #000;
}
.lb-stage figcaption {
  color: #f0dcec; font: 500 .88rem/1.5 var(--sans); text-align: center; max-width: 46ch;
}
.lightbox button {
  border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
  border-radius: 50%; display: grid; place-items: center;
  width: 3rem; height: 3rem; flex: none; transition: background .2s, transform .2s;
}
.lightbox button:hover { background: var(--rose); transform: scale(1.06); }
.lightbox button svg { width: 1.35rem; height: 1.35rem; }
.lb-next svg { transform: rotate(180deg); }
.lb-close { position: absolute; top: clamp(.75rem, 2vw, 1.5rem); right: clamp(.75rem, 2vw, 1.5rem); }

@media (max-width: 640px) {
  /* No room for side arrows on a phone; they move under the caption. */
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-areas: "stage stage" "prev next"; }
  .lb-stage { grid-area: stage; }
  .lb-prev { grid-area: prev; justify-self: end; margin-right: .6rem; }
  .lb-next { grid-area: next; justify-self: start; margin-left: .6rem; }
}

/* ---------- open-now pill ---------- */

[data-open-now] { font-weight: 600; }
[data-open-now]::before { background: currentColor !important; }
[data-open-now].is-open { color: #1c8a5a; }
[data-open-now].is-shut { color: var(--stone); }

/* ---------- scroll-spy ---------- */

.nav-links a.current { color: var(--rose); border-color: var(--rose); }

/* ---------- sticky action bar (phones) ---------- */

.actionbar {
  position: fixed; inset: auto 0 0; z-index: 60;
  display: none; gap: .6rem; padding: .7rem var(--pad) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(255,248,252,.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.actionbar[hidden] { display: none; }
.actionbar.up { transform: none; }
.actionbar .btn { flex: 1; padding: .85rem 1rem; }

@media (max-width: 900px) {
  .actionbar:not([hidden]) { display: flex; }
  /* Keep the bar from covering the last line of the footer. */
  body.has-actionbar .footer { padding-bottom: 5.5rem; }
}

/* ---------- enquiry form ---------- */

.qf { margin-top: 1.75rem; display: grid; gap: 1rem; }
.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .qf-row { grid-template-columns: 1fr; } }

.qf-field { display: grid; gap: .4rem; min-width: 0; }
.qf-field label {
  font: 600 .74rem/1 var(--sans); letter-spacing: .14em;
  text-transform: uppercase; color: var(--stone);
}
.qf-field label span { color: var(--rose); }
.qf input, .qf select, .qf textarea {
  width: 100%; padding: .8rem .9rem;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 3px;
  transition: border-color .2s, box-shadow .2s;
}
.qf textarea { resize: vertical; min-height: 5.5rem; }
.qf input:focus, .qf select:focus, .qf textarea:focus {
  outline: none; border-color: var(--lilac);
  box-shadow: 0 0 0 3px rgba(207,158,230,.3);
}
/* Only style a field as wrong once the browser agrees it is, so an empty form
   isn't red before anyone has typed. */
.qf input:user-invalid { border-color: var(--rose); }

/* The honeypot. Off-screen rather than display:none — some bots skip hidden
   fields, and a screen reader is kept out by aria-hidden on the wrapper. */
.qf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.qf-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .25rem; }
.qf-actions .btn { flex: 1 1 auto; }

.qf-status { margin: 0; font: 500 .9rem/1.5 var(--sans); min-height: 1.4em; }
.qf-status.ok  { color: #1c8a5a; }
.qf-status.err { color: #b3123f; }
.qf-note { margin: 0; font-size: .85rem; color: var(--stone); }
.qf-note a { color: var(--plum); }

.consult .split-figure { align-self: start; }
.credit {
  margin: .35rem 0 1.1rem;
  font: 600 .74rem/1.5 var(--sans); letter-spacing: .1em;
  text-transform: uppercase; color: var(--rose);
}
