/* Roberto's Salon: the page is the salon wall. */

:root {
  --brick: #9c4a33;
  --brick-dark: #6f2f1f;
  --mortar: #c9b29c;
  --teal: #2a9fa3;
  --teal-deep: #1d7e82;
  --teal-pale: #7cc8c4;
  --glass: #dfe7e8;
  --glass-2: #b9c9cc;
  --chair: #1c1c1e;
  --concrete: #d9d4cc;
  --concrete-2: #c8c2b8;
  --paper: #f6f2ec;
  --ink: #1c1c1e;
  --ink-2: #4a4744;

  --f-sign: "Rye", Georgia, serif;
  --f-body: "Figtree", system-ui, sans-serif;

  --gutter: clamp(16px, 4.4vw, 64px);
  --max: 1360px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--chair); color: var(--ink); font: 400 1.0625rem/1.55 var(--f-body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 3px solid var(--teal-pale); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--teal); color: #fff; padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico .fill { fill: currentColor; stroke: none; }

/* ---------- chair-black bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 44px);
  padding: 14px var(--gutter); background: var(--chair); color: var(--paper);
  border-bottom: 1px solid #000;
}
.wordmark { font: 400 1.45rem/1 var(--f-sign); text-decoration: none; letter-spacing: .01em; margin-right: auto; }
.bar__nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.bar__nav a { font: 600 .9rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.bar__nav a:hover { border-color: var(--teal-pale); }
.bar__call {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  background: var(--teal); color: #fff; border-radius: 3px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.bar__call:hover { background: var(--teal-deep); }

/* ---------- the brick wall ---------- */
.wall {
  position: relative; isolation: isolate;
  background-color: var(--brick);
  background-image:
    repeating-linear-gradient(0deg, var(--brick-dark) 0 3px, transparent 3px 36px),
    linear-gradient(90deg, transparent 0 77px, var(--brick-dark) 77px 80px, transparent 80px),
    radial-gradient(120% 90% at 30% 20%, #ad573c, #8f412c 70%);
  background-size: auto, 80px 72px, auto;
}
.wall::before { /* stagger every other course */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent 0 37px, var(--brick-dark) 37px 40px, transparent 40px) 0 36px / 80px 72px;
  mask: repeating-linear-gradient(0deg, #000 0 36px, transparent 36px 72px);
}

/* ---------- frames (chipped turquoise timber) ---------- */
.frame {
  margin: 0; position: relative; padding: clamp(14px, 1.8vw, 26px);
  background:
    radial-gradient(circle at 18% 22%, rgb(255 255 255 / .18) 0 2px, transparent 3px) 0 0 / 23px 31px,
    radial-gradient(circle at 70% 60%, rgb(0 0 0 / .14) 0 2px, transparent 3px) 0 0 / 37px 29px,
    linear-gradient(135deg, var(--teal-pale), var(--teal) 40%, var(--teal-deep));
  box-shadow: inset 0 0 0 3px rgb(0 0 0 / .18), inset 0 0 0 7px rgb(255 255 255 / .08), 0 26px 50px rgb(0 0 0 / .45);
}
.frame img { width: 100%; height: 100%; object-fit: cover; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 54px; padding: 0 1.6em;
  font: 600 1.05rem/1 var(--f-body); letter-spacing: .03em; text-decoration: none; border: 0; border-radius: 3px; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 8px 18px rgb(0 0 0 / .25); }
.btn--teal:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- signage ---------- */
.sign {
  margin: 0; font: 400 clamp(3rem, 5.6vw, 5.6rem)/.98 var(--f-sign); color: var(--paper);
  text-shadow: 0 4px 0 #5a2618, 0 10px 24px rgb(0 0 0 / .35); letter-spacing: .005em;
}
.sign--md { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.sign--dark { color: var(--ink); text-shadow: none; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) minmax(120px, .32fr);
  grid-template-rows: 1fr auto; gap: 0 clamp(20px, 2.6vw, 40px);
  min-height: calc(100svh - 72px); padding: clamp(36px, 5vw, 72px) var(--gutter) 0;
}
.hero__sign { grid-column: 1; grid-row: 1; align-self: center; padding-bottom: 32px; }
.hero__lede { margin: 24px 0 0; color: var(--paper); font-size: clamp(1.1rem, 1.4vw, 1.3rem); max-width: 28ch; font-weight: 500; }
.hero__enquire { margin: 10px 0 0; color: #f0d9cc; font-size: 1.05rem; }
.hero__enquire b { color: #fff; }
.frame--hero { grid-column: 2; grid-row: 1; align-self: center; aspect-ratio: 4 / 5; max-height: calc(100svh - 270px); justify-self: center; width: 100%; max-width: 560px; }
.frame--hero img { object-position: 54% 30%; }
.frame--small { grid-column: 3; grid-row: 1; align-self: start; margin-top: 8%; aspect-ratio: 3 / 5; width: 100%; padding: 10px; transform: rotate(1.5deg); }

.shelf {
  grid-column: 1 / -1; grid-row: 2; margin: 28px calc(var(--gutter) * -1) 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(20px, 3vw, 44px);
  padding: 22px var(--gutter);
  background: linear-gradient(180deg, #e6e1d9, var(--concrete) 30%, var(--concrete-2));
  border-top: 4px solid #eeeae4; box-shadow: 0 -14px 26px rgb(0 0 0 / .28);
}
.shelf p { margin: 0; font-weight: 600; }
.shelf__open { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgb(42 159 163 / .25); }
.dot[data-closed] { background: #9a948b; box-shadow: none; }
.shelf__phones { display: inline-flex; gap: 10px; margin-left: auto !important; }
.shelf__phones a { text-decoration: none; }
.shelf__phones a:hover { text-decoration: underline; }

/* ---------- services as mirrors ---------- */
.services { padding: clamp(56px, 7vw, 100px) var(--gutter); }
.services > .sign { max-width: var(--max); margin: 0 auto 40px; }
.mirrors {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--max);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px); align-items: start;
}
.mirror {
  grid-column: span 2; padding: 14px;
  background:
    radial-gradient(circle at 18% 22%, rgb(255 255 255 / .18) 0 2px, transparent 3px) 0 0 / 23px 31px,
    linear-gradient(135deg, var(--teal-pale), var(--teal) 40%, var(--teal-deep));
  box-shadow: inset 0 0 0 3px rgb(0 0 0 / .18), 0 20px 36px rgb(0 0 0 / .4);
}
.mirror--tall .glass { min-height: 300px; }
.mirror--wide { grid-column: span 3; }
.mirror:nth-child(2) { margin-top: 40px; }
.mirror:nth-child(4) { margin-top: -30px; }
.mirror:nth-child(5) { margin-top: 30px; }
.glass {
  position: relative; overflow: hidden; height: 100%; min-height: 220px; padding: 26px 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(160deg, #f2f6f6 0, var(--glass) 40%, var(--glass-2) 100%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .25), inset 0 0 30px rgb(0 0 0 / .08);
}
.glass::after { /* the glint */
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / .75), transparent);
  transform: skewX(-18deg); transition: left .7s var(--ease);
}
.mirror:hover .glass::after, .mirror:focus-within .glass::after { left: 120%; }
.glass h3 { margin: 0; font: 400 1.65rem/1.05 var(--f-sign); color: var(--ink); }
.glass p { margin: 10px 0 0; color: var(--ink-2); max-width: 34ch; }
.mirror--feature .glass { background: linear-gradient(160deg, #f6fafa, #e3ecec 40%, #c3d4d6); }

/* ---------- the real salon ---------- */
.salon { background: var(--paper); padding: clamp(56px, 7vw, 100px) var(--gutter); }
.salon__head { max-width: var(--max); margin: 0 auto 40px; display: grid; grid-template-columns: auto minmax(0, 46ch); gap: 24px 48px; align-items: end; }
.salon__head p { margin: 0; color: var(--ink-2); font-size: 1.1rem; }
.gallery { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr 1.1fr .8fr; gap: clamp(14px, 2vw, 28px); align-items: center; }
.gallery .frame { padding: 12px; }
.frame--g1 { aspect-ratio: 4 / 5; }
.frame--g2 { aspect-ratio: 4 / 5; margin-top: 60px; }
.frame--g3 { aspect-ratio: 1; }
.frame--g4 { aspect-ratio: 3 / 5; margin-top: -40px; }
.ig-link { display: inline-flex; align-items: center; gap: 10px; margin: 36px auto 0; font-weight: 600; text-decoration: none; color: var(--teal-deep); }
.salon > .ig-link { display: flex; width: fit-content; }
.ig-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- booking ---------- */
.book {
  background: linear-gradient(180deg, var(--concrete), #cfc9bf);
  padding: clamp(56px, 7vw, 100px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px);
}
.book > * { max-width: calc(var(--max) * .6); }
.book__intro p { margin: 18px 0 0; color: var(--ink-2); font-size: 1.1rem; max-width: 40ch; }
.book__or a { color: var(--teal-deep); font-weight: 600; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; background: var(--paper); padding: clamp(20px, 3vw, 36px); box-shadow: 0 20px 40px rgb(0 0 0 / .12); border-radius: 4px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: .95rem; }
.field i { font-style: normal; font-weight: 400; color: var(--ink-2); }
.field--wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid #c9c2b7; border-radius: 3px;
  background: #fff; color: var(--ink); font: 400 1rem var(--f-body); caret-color: var(--teal);
}
.field textarea { min-height: 96px; resize: vertical; }
.field :is(input, select, textarea):focus-visible { outline: none; border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__msg { margin: 0; font-weight: 600; }
.form__msg[data-tone="ok"] { color: var(--teal-deep); }
.form__msg[data-tone="err"] { color: #b3261e; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- visit ---------- */
.visit { background: var(--chair); color: var(--paper); padding: clamp(56px, 7vw, 90px) var(--gutter); display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.visit h3 { margin: 0 0 12px; font: 600 .9rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-pale); }
.visit .sign { text-shadow: none; margin-bottom: 18px; }
.visit p { margin: 0 0 14px; font-size: 1.15rem; }
.visit b { font-size: 1.6rem; font-weight: 600; }
.visit__phones a { text-decoration: none; font-size: 1.4rem; font-weight: 600; }
.text-link { color: var(--teal-pale); font-weight: 600; text-underline-offset: 4px; }
.foot { background: #121214; color: #a7a39d; padding: 20px var(--gutter); font-size: .9rem; }
.foot p { margin: 0; }

/* ---------- motion: frames hang in ---------- */
@keyframes hang { from { opacity: 0; transform: translateY(-14px) rotate(-.6deg); } to { opacity: 1; transform: none; } }
.js [data-hang] { opacity: 0; }
.js [data-hang].is-in { animation: hang .7s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-hang] { opacity: 1; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bar__nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; }
  .frame--small { display: none; }
  .mirrors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mirror, .mirror--wide { grid-column: span 1; margin-top: 0 !important; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .frame--g2, .frame--g4 { margin-top: 0; }
  .book { grid-template-columns: minmax(0, 1fr); }
  .visit { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wordmark { font-size: 1.2rem; }
  .bar__call { padding: 0 12px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 22px; }
  .frame--hero { grid-column: 1; grid-row: 1; aspect-ratio: 5 / 4; max-height: none; padding: 12px; }
  .frame--hero img { object-position: 54% 25%; }
  .hero__sign { grid-column: 1; grid-row: 2; padding: 24px 0 8px; }
  .sign { font-size: clamp(2.8rem, 13vw, 3.8rem); }
  .sign--md { font-size: clamp(2rem, 9vw, 2.6rem); }
  .shelf { grid-column: 1; grid-row: 3; flex-direction: column; align-items: stretch; margin-top: 18px; }
  .shelf .btn { width: 100%; }
  .shelf__phones { margin-left: 0 !important; justify-content: space-between; }
  .mirrors { grid-template-columns: minmax(0, 1fr); }
  .glass { min-height: 0 !important; }
  .salon__head { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }
  .visit { grid-template-columns: minmax(0, 1fr); }
}
