/* =====================================================================
   Sable & Salt — sample salon site by Haney Web
   ---------------------------------------------------------------------
   REBRANDING FOR A REAL CLIENT — change these, in this order:
   1. Colours: --salt (page ground), --sable (ink), --pen (main brand
      colour: buttons, diagram lines, booking panel), --pen-2 (handwritten
      note colour). Keep text contrast at 4.5:1 or better.
   2. Fonts: --font-display, --font-text, --font-note, and the Google
      Fonts <link> in index.html. --display-stretch sets how wide the
      display face runs (100% = normal; Archivo goes 62%–125%).
   3. In index.html: business name, phone (tel: links too), email,
      address, hours rows (data-day: 0 = Sunday … 6 = Saturday), services
      and prices, stylist names, the Formspree form ID, and the demo
      strip and footer line (delete both for a real client).
   4. Photos: drop files into images/ with the names in PHOTO-PROMPTS.md.
   ===================================================================== */

:root {
  /* Brand colours */
  --salt: #f1f3f2;          /* page ground */
  --salt-deep: #e3e7e5;     /* quiet panels, rules */
  --sable: #1d1815;         /* ink */
  --sable-soft: #54493f;    /* secondary text (7:1 on salt) */
  --pen: #2a37c4;           /* brand colour, lines and fields */
  --pen-deep: #1e2896;      /* pressed / hover */
  --pen-tint: #d9ddfb;      /* text on --pen fields */
  --pen-2: #b8165a;         /* handwritten notes */
  --white: #ffffff;

  /* Fonts */
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-note: "Kalam", "Comic Neue", "Segoe Print", cursive;
  --display-stretch: 125%;
  --display-weight: 800;

  /* Layout */
  --gutter: clamp(16px, 4.5vw, 56px);
  --wrap: 1240px;
  --radius: 6px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
  scroll-padding-top: 84px;
  scrollbar-color: var(--pen) var(--salt-deep);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--salt);
  color: var(--sable);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.55;
  caret-color: var(--pen);
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
::selection { background: var(--pen); color: var(--white); }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 3px; }
.book :focus-visible, .foot :focus-visible { outline-color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 30;
  background: var(--pen); color: var(--white); padding: 10px 16px;
  font-weight: 700; text-decoration: none; border-radius: var(--radius);
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico--lg { width: 2rem; height: 2rem; }

/* ---------- Type ---------- */
.display, .h2, .brand, .person__name, .menu__title {
  font-family: var(--font-display);
  font-stretch: var(--display-stretch);
  font-weight: var(--display-weight);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.display { font-size: clamp(2.35rem, 1.4rem + 4.6vw, 5.4rem); line-height: .98; }
.h2 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 3rem); line-height: 1.02; }
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--sable-soft); max-width: 36ch; }

/* ---------- Demo strip ---------- */
.demo-strip {
  background: var(--sable); color: var(--salt);
  font-size: .8125rem; text-align: center;
  padding: 10px var(--gutter);
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}
.demo-strip a { text-decoration: underline; text-decoration-color: rgb(241 243 242 / .45); }
.demo-strip a:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgb(241 243 242 / .94);
  border-bottom: 1px solid var(--salt-deep);
  backdrop-filter: saturate(1.4) blur(8px);
}
.top__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
.brand { font-size: 1.3rem; text-decoration: none; white-space: nowrap; line-height: 1; }
.brand__amp { color: var(--pen); }
.top__nav { display: none; gap: 28px; margin-left: auto; font-weight: 600; font-size: .95rem; }
.top__nav a { text-decoration: none; padding: 8px 0; }
.top__nav a:hover { color: var(--pen); text-decoration: underline; }
.top__actions { display: flex; gap: 8px; margin-left: auto; }
.btn__label { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 18px;
  font: 700 1rem/1 var(--font-text);
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--pen); color: var(--white); }
.btn--solid:hover { background: var(--pen-deep); }
.btn--ghost { border-color: var(--sable); color: var(--sable); background: transparent; }
.btn--ghost:hover { background: var(--sable); color: var(--salt); }
.btn--icon { padding: 0 12px; }
.btn--line { border-color: var(--pen); color: var(--pen); background: transparent; }
.btn--line:hover { background: var(--pen); color: var(--white); }
.btn--salt { background: var(--salt); color: var(--pen); }
.btn--salt:hover { background: var(--white); }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 1.0625rem; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn__busy { display: none; }
.is-sending .btn__idle { display: none; }
.is-sending .btn__busy { display: inline; }

.textlink { color: var(--pen); font-weight: 600; }
.textlink:hover { color: var(--pen-deep); text-decoration-thickness: 2.5px; }

/* ---------- Hero / head sheet ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) var(--gutter) clamp(48px, 7vw, 104px);
  display: grid; gap: 40px;
}
.hero__copy { display: grid; gap: 22px; align-content: start; }

.picker { border: 0; margin: 4px 0 0; padding: 0; min-width: 0; }
.picker__q { font-weight: 700; font-size: .95rem; margin-bottom: 10px; padding: 0; }
.picker__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--sable); border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s;
}
.chip:hover span { border-color: var(--pen); color: var(--pen); }
.chip input:checked + span { background: var(--pen); border-color: var(--pen); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--pen); outline-offset: 3px; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }

.sheet { position: relative; padding-bottom: 72px; }
.sheet__paper {
  position: relative;
  background-color: var(--white);
  border: 1px solid var(--salt-deep);
  border-radius: 4px;
  box-shadow: 0 18px 40px -24px rgb(29 24 21 / .35);
  padding: 56px 18px 18px;
}
.head { width: 100%; height: auto; display: block; max-height: 68vh; margin-inline: auto; overflow: visible; }
.head__guides { fill: none; stroke: var(--pen); stroke-opacity: .32; stroke-width: 1.2; stroke-dasharray: 2 6; }
.head__form { fill: none; stroke: var(--sable); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.plan { fill: none; stroke: var(--pen); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; display: none; }
.plan .plan__thin { stroke-width: 2.2; }
.plan path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.head[data-plan="cut"] [data-for="cut"],
.head[data-plan="colour"] [data-for="colour"],
.head[data-plan="balayage"] [data-for="balayage"],
.head[data-plan="mens"] [data-for="mens"],
.head[data-plan="event"] [data-for="event"] { display: inline; }
.head.is-drawing .plan path { animation: draw .9s var(--ease-out) both; }
.head.is-drawing .plan path:nth-child(2) { animation-delay: .12s; }
.head.is-drawing .plan path:nth-child(3) { animation-delay: .24s; }
.head.is-drawing .plan path:nth-child(4) { animation-delay: .36s; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.sheet__note {
  position: absolute; right: 16px; top: 14px; max-width: 62%;
  font-family: var(--font-note); font-size: 1.2rem; line-height: 1.25;
  color: var(--pen-2); text-align: right;
  transform: rotate(-1.5deg); transform-origin: right top;
}
.sheet__note.is-new { animation: ink .6s var(--ease-out) both; }
@keyframes ink { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: blur(0); } }

@media (prefers-reduced-motion: reduce) {
  .head.is-drawing .plan path, .sheet__note.is-new { animation: none; }
}

/* ---------- Photo slots (placeholder shows until the image exists) ---------- */
.photo {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  background-color: var(--pen);
  outline: 1.5px dashed rgb(255 255 255 / .4); outline-offset: -10px;
  border-radius: 4px;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo__ph {
  position: absolute; left: 22px; right: 22px; bottom: 22px;
  font-size: .8125rem; line-height: 1.35; font-weight: 600;
  color: var(--pen-tint);
}
.photo--wide { aspect-ratio: 3 / 2; }
.photo--print {
  position: absolute; left: -6px; bottom: 0; width: 42%; max-width: 230px;
  border: 6px solid var(--white);
  box-shadow: 0 14px 30px -14px rgb(29 24 21 / .5);
  transform: rotate(-3deg);
}
.photo--print .photo__ph { font-size: .75rem; }

/* ---------- Services ---------- */
.services { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--salt-deep); background: var(--white); }
.services__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.sample-note {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start;
  padding: 8px 14px; border-radius: 999px;
  background: var(--pen-tint); color: var(--pen-deep);
  font-weight: 600; font-size: .9375rem;
}
.menu { display: grid; gap: 40px; }
.menu__title { font-size: 1.25rem; padding-bottom: 10px; border-bottom: 2.5px solid var(--sable); }
.menu__list li + li { border-top: 1px dashed rgb(29 24 21 / .28); }
.row {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px;
  align-items: baseline; text-align: left;
  padding: 14px 4px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
  border-radius: 3px;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.row__name { font-weight: 600; }
.row__time { grid-row: 2; font-size: .875rem; color: var(--sable-soft); }
.row__price { grid-row: 1 / span 2; align-self: center; font-weight: 700; white-space: nowrap; }
.row:hover, .row:focus-visible { background: var(--pen); color: var(--white); padding-inline: 12px; }
.row:hover .row__time, .row:focus-visible .row__time { color: var(--pen-tint); }
.menu__aside { margin-top: 20px; font-family: var(--font-note); font-size: 1.15rem; color: var(--pen-2); }

/* ---------- Work ---------- */
.work { padding-block: clamp(56px, 8vw, 112px); }
.work .h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.work__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px; }
.work__item figcaption, .visit__photo figcaption {
  margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgb(29 24 21 / .35);
  font-size: .875rem; line-height: 1.4;
}
figcaption span { display: block; color: var(--sable-soft); font-size: .8125rem; }

/* ---------- Stylists ---------- */
.stylists { padding-block: clamp(56px, 8vw, 112px); background: var(--white); border-block: 1px solid var(--salt-deep); }
.team { margin-top: clamp(24px, 3vw, 40px); display: grid; }
.person {
  display: grid; gap: 10px; padding-block: 28px;
  border-top: 2.5px solid var(--sable);
}
.person__name { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); line-height: 1; color: var(--pen); }
.person__does { max-width: 46ch; }
.person__days { font-family: var(--font-note); font-size: 1.15rem; color: var(--pen-2); }
.person .btn { justify-self: start; margin-top: 6px; }

/* ---------- Booking ---------- */
.book { background: var(--pen); color: var(--white); padding-block: clamp(56px, 8vw, 112px); }
.book__grid { display: grid; gap: 32px; }
.book__intro { display: grid; gap: 14px; align-content: start; }
.book__intro p { color: var(--pen-tint); max-width: 40ch; }
.book__alt a { color: var(--white); font-weight: 700; }

.form { display: grid; gap: 18px; grid-template-columns: 1fr; }
.field { display: grid; gap: 6px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field label, .field legend { font-weight: 700; font-size: .95rem; padding: 0; }
.opt { font-weight: 400; color: var(--pen-tint); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: 500 1rem/1.3 var(--font-text); color: var(--sable);
  background: var(--white); border: 2px solid var(--white); border-radius: var(--radius);
  caret-color: var(--pen);
}
.field textarea { resize: vertical; }
.field select { appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a37c4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--white); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: #ffd0e1; box-shadow: inset 0 0 0 2px var(--pen-2); }
.field__msg { font-size: .9rem; font-weight: 600; color: #ffd8e6; min-height: 0; }
.field__msg:empty { display: none; }
.field__hint { font-size: .9rem; color: var(--pen-tint); margin-top: -8px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 50px;
  border: 2px solid rgb(255 255 255 / .55); border-radius: var(--radius);
  font-weight: 600; text-align: center;
}
.seg input:checked + span { background: var(--white); color: var(--pen); border-color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--white); outline-offset: 2px; }

.form__err {
  background: var(--white); color: var(--pen-2); padding: 12px 16px;
  border-radius: var(--radius); font-weight: 700;
}

.slip {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--salt); color: var(--sable);
  border-radius: var(--radius); margin-top: 6px;
}
.slip > div { padding: 12px 14px; min-width: 0; }
.slip > div:nth-child(odd) { border-right: 2px dashed rgb(42 55 196 / .35); }
.slip > div:nth-child(-n+2) { border-bottom: 2px dashed rgb(42 55 196 / .35); }
.slip dt { font-size: .8125rem; color: var(--sable-soft); }
.slip dd { font-weight: 700; overflow-wrap: anywhere; }
.slip dd.is-empty { color: var(--sable-soft); font-weight: 500; }

.form__done, .form__fail {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); color: var(--sable); padding: 18px; border-radius: var(--radius);
}
.form__done[hidden], .form__fail[hidden] { display: none; }
.form__done .ico { color: var(--pen); }
.form__fail .ico { color: var(--pen-2); }
.form__done-title { font-weight: 800; font-size: 1.125rem; }
.form__fail a { color: var(--pen); font-weight: 700; }

/* ---------- Visit ---------- */
.visit { padding-block: clamp(56px, 8vw, 112px); }
.visit__grid { display: grid; gap: 40px; }
.visit__info { display: grid; gap: 22px; align-content: start; }
.hours { border-collapse: collapse; width: 100%; max-width: 440px; }
.hours th, .hours td { text-align: left; padding: 10px 8px; border-bottom: 1px dashed rgb(29 24 21 / .28); font-weight: 500; }
.hours td { text-align: right; }
.hours .is-closed { color: var(--sable-soft); }
.hours .is-today { background: var(--pen); color: var(--white); }
.hours .is-today th { font-weight: 800; }
.hours__now { font-family: var(--font-note); font-size: 1.2rem; color: var(--pen-2); }
.hours__now:empty { display: none; }
.contact { display: grid; gap: 18px; }
.contact li { display: flex; gap: 12px; align-items: flex-start; }
.contact .ico { color: var(--pen); margin-top: 3px; }
.contact__sub { font-size: .9rem; color: var(--sable-soft); }

/* ---------- Footer ---------- */
.foot { background: var(--sable); color: var(--salt); padding-block: 40px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot__inner { display: grid; gap: 10px; }
.brand--foot { font-size: 1.6rem; }
.foot .brand__amp { color: #9ea6ff; }
.foot__demo { margin-top: 12px; padding-top: 14px; border-top: 1px solid rgb(241 243 242 / .2); font-size: .9rem; }

/* ---------- Wider screens ---------- */
@media (min-width: 560px) {
  .btn__label { display: inline; }
  .form { grid-template-columns: 1fr 1fr; }
  .field--wide, .form__err { grid-column: 1 / -1; }
  .slip { grid-template-columns: repeat(4, 1fr); }
  .slip > div { border-bottom: 0 !important; border-right: 2px dashed rgb(42 55 196 / .35); }
  .slip > div:last-child { border-right: 0; }
  .work__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
  .top__nav { display: flex; }
  .top__actions { margin-left: 12px; }
  .hero { min-height: calc(100svh - 96px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(40px, 5vw, 88px); }
  .menu { grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px); }
  .team { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
  .book__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); }
  .book__intro { position: sticky; top: 100px; }
  .visit__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
  .foot__inner { grid-template-columns: auto 1fr; align-items: center; column-gap: 32px; }
  .foot__demo { grid-column: 1 / -1; }
}
