/* HAIRA Nails: one page, mobile-first */

:root {
  /* colour: frost and slate, with one lacquer accent */
  --bg: #f7f9fa;
  --surface: #ecf0f2;
  --ink: #1f3038;
  --muted: #56646b;
  --accent: #b4235a;
  --accent-2: #951c4a;
  --accent-ink: #ffffff;
  --skin: #ecd1c3;
  --skin-2: #dfbcaa;

  /* type: one family, five sizes */
  --font: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --fs-small: 0.875rem;                                        /* 14 */
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);       /* 17–19 */
  --fs-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);         /* 20–26 */
  --fs-head: clamp(2rem, 1.3rem + 3vw, 3.5rem);                /* 32–56 */
  --fs-display: clamp(2.5rem, 1rem + 5vw, 5rem);               /* 40–80 */

  --gutter: clamp(20px, 3.4vw, 48px);
  --max: 1280px;
  --sec: clamp(88px, 10vw, 150px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #b9c3c8 var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ul, blockquote, address { margin: 0; }
p, blockquote { text-wrap: pretty; }
address { font-style: normal; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type roles ---------- */
h1 {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
h2 {
  font-size: var(--fs-head);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 { font-size: var(--fs-body); font-weight: 500; line-height: 1.3; }
.lead { font-size: var(--fs-lead); line-height: 1.3; }
.note { font-size: var(--fs-small); color: var(--muted); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 26px;
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--fs-body); font-weight: 500; line-height: 1.15;
  text-decoration: none; border-radius: 999px;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: var(--fs-small); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--accent-2); } }

.link {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em;
  transition: text-underline-offset 200ms var(--ease-out), color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-underline-offset: 0.4em; color: var(--accent); } }

/* ---------- header ---------- */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  min-height: 72px; padding: 12px var(--gutter);
}
.brand { font-size: var(--fs-body); font-weight: 700; letter-spacing: 0.01em; text-decoration: none; margin-right: auto; }
.nav-toggle {
  min-height: 44px; padding: 8px 4px; background: none; border: 0; cursor: pointer;
  font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 0.25em;
}
.nav-list { display: none; }
.js .nav.open .nav-list {
  display: block; position: absolute; left: var(--gutter); right: var(--gutter); top: 68px;
  background: var(--bg); padding: 8px 20px 14px;
  box-shadow: 0 16px 40px rgba(31, 48, 56, 0.16); /* taste-skill-ignore: open menu overlay */
}
.nav.open .nav-list a { display: block; padding: 10px 0; font-size: var(--fs-lead); text-decoration: none; }
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .nav-list { display: flex; gap: 12px; font-size: var(--fs-small); }

/* ---------- hero: ring of frames around the headline ---------- */
.hero {
  position: relative;
  min-height: clamp(700px, calc(100svh + 48px), 820px);
  overflow: hidden;
  --cy: calc(50% + 28px);
  --r: min(66vw, calc(50svh - 110px));
  --fw: 64px;
}
.ring { position: absolute; inset: 0; }
.rf {
  position: absolute;
  left: calc(50% + cos(var(--b)) * var(--r));
  top: calc(var(--cy) + sin(var(--b)) * var(--r));
  width: var(--fw);
  aspect-ratio: 3 / 4;
  translate: -50% -50%;
  overflow: hidden;
  background: var(--surface);
  transition: transform 250ms var(--ease-out), opacity 250ms ease;
}
.rf:nth-child(odd) { aspect-ratio: 4 / 3; width: calc(var(--fw) * 1.15); }
.rf img { width: 100%; height: 100%; object-fit: cover; }
.rf.d { display: none; }
.js .hero:not(.laid) .rf { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  .ring:hover .rf { opacity: 0.5; }
  .ring .rf:hover, .ring .rf:focus-visible { opacity: 1; transform: scale(1.06); }
}

.core {
  position: absolute; left: 50%; top: var(--cy); translate: -50% -50%;
  width: min(34rem, calc(100% - 40px));
  text-align: center;
  z-index: 2;
}
.core h1 .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.core h1 .ln > span { display: block; }
.core-text { margin: 20px auto 0; max-width: 34ch; }
.core-act { margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.core-sub { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; }
.rating { font-size: var(--fs-small); color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.stars { display: inline-flex; color: var(--accent); }
.stars svg { width: 80px; height: 16px; fill: currentColor; }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec); }
.sec--frost { background: var(--surface); }
.sec--tight { padding-top: 0; }

/* services: two-ended rows in a narrow column */
.services { display: grid; gap: 40px; }
.services-head p { margin-top: 14px; color: var(--muted); max-width: 36ch; }
.services-head .nudge { color: var(--ink); }
.gal-cta { margin-top: 28px; max-width: 46ch; }
.sec-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.menu { display: grid; gap: 36px; max-width: 34rem; }
.group h3 { margin-bottom: 4px; font-weight: 500; }
.group li {
  display: grid; grid-template-columns: 16px 1fr auto; column-gap: 10px; align-items: start;
  padding: 10px 0; min-height: 44px;
}
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); margin-top: 0.3em; box-shadow: inset 0 0 0 1px rgba(31, 48, 56, 0.14); } /* taste-skill-ignore: a hairline ring so pale polish dots stay visible */
.name small { display: block; font-size: var(--fs-small); color: var(--muted); margin-top: 2px; max-width: 34ch; }
.val { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.val i { font-style: normal; font-size: var(--fs-small); color: var(--muted); }

/* designer */
.designer { display: grid; gap: 32px; }
.designer-head p { margin-top: 14px; max-width: 40ch; }
.preview { background: var(--bg); padding: 16px 16px 20px; }
.preview svg { width: 100%; height: auto; display: block; }
.preview figcaption { display: grid; gap: 4px; padding: 12px 4px 0; }
.pick { font-size: var(--fs-lead); font-weight: 500; }
.price { font-size: var(--fs-small); color: var(--muted); }
.choices { display: grid; gap: 26px; }
.choices fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 10px; color: var(--muted); }
.choices legend output { color: var(--ink); font-weight: 500; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
/* the radio stays in the page for keyboard and screen readers; the visible label takes the pointer */
.opt input { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.opt label {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: var(--bg); cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.opt label svg { width: 16px; height: 22px; fill: currentColor; }
.opt label:active { transform: scale(0.96); }
.opt input:checked + label { background: var(--ink); color: var(--bg); }
.opt input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .opt label:hover { background: #fff; } .opt input:checked + label:hover { background: var(--ink); } }
.opts--color { gap: 10px; }
.opts--color label { width: 44px; height: 44px; padding: 0; justify-content: center; background: var(--c); box-shadow: inset 0 0 0 1px rgba(31, 48, 56, 0.16); } /* taste-skill-ignore: hairline ring so white polish stays visible */
.opts--color input:checked + label { background: var(--c); outline: 2px solid var(--ink); outline-offset: 3px; }
.send { display: grid; gap: 10px; justify-items: start; }
html:not(.js) .choices fieldset, html:not(.js) .preview { display: none; }

/* about: portrait as drop cap */
.about { display: grid; gap: 32px; }
.bio h2 { margin-bottom: 24px; }
.bio .lead + .lead { margin-top: 1em; }
.bio b { font-weight: 500; }
.soft { color: var(--muted); }
.drop { float: left; width: 3.9em; height: 3.9em; object-fit: cover; margin: 0.2em 0.6em 0.1em 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: var(--fs-small); order: 2; }
.facts b { display: block; font-weight: 500; color: var(--muted); }

/* gallery: the contact sheet */
.gal-title { margin-bottom: 32px; }
.gal-title span { font-size: var(--fs-small); font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 10px; }
.sheet { display: grid; gap: 28px; }
.run h3 { font-size: var(--fs-small); color: var(--muted); font-weight: 400; margin-bottom: 8px; }
.frames { display: flex; flex-wrap: wrap; gap: 6px; }
.frames::after { content: ""; flex: 100 0 0; }
.shot { padding: 0; border: 0; background: none; cursor: zoom-in; display: flex; flex: 1 1 auto; max-width: 100%; transition: transform 160ms var(--ease-out); }
.shot:active { transform: scale(0.98); }
.shot img { flex: 1 1 auto; }
.frames img {
  height: 112px; width: auto; flex: 1 1 auto; max-width: 100%;
  object-fit: cover; background: var(--surface);
  transition: opacity 250ms ease, transform 250ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .sheet:hover .frames img { opacity: 0.55; }
  .sheet .frames img:hover { opacity: 1; transform: scale(1.04); }
}

/* reviews */
.reviews h2 { margin-bottom: 32px; }
.quotes { display: grid; gap: 40px; }
.quote { display: grid; gap: 14px; align-content: start; }
.quote blockquote { font-size: var(--fs-lead); line-height: 1.3; max-width: 26ch; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: var(--fs-small); color: var(--muted); }
.quote figcaption img { width: 56px; height: 56px; object-fit: cover; flex: none; }
.quote figcaption b { display: block; font-weight: 500; color: var(--ink); }

/* visit */
.visit { display: grid; gap: 40px; }
.visit-info { display: grid; gap: 28px; align-content: start; }
.links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.links .link { display: inline-block; padding: 6px 0; }
.now { color: var(--accent); font-size: var(--fs-small); margin-bottom: 8px; }
.hours table { width: 100%; max-width: 26rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 7px 10px; text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours td span { white-space: nowrap; }
.hours tr.today { background: var(--surface); }
.hours tr.today th { font-weight: 500; }
.map { position: relative; aspect-ratio: 1 / 1; min-height: 300px; background: var(--surface); }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }
.map iframe { position: relative; width: 100%; height: 100%; border: 0; display: block; filter: grayscale(0.35); }

/* contact */
#visitanos { padding-bottom: clamp(56px, 7vw, 96px); }
.sec--contact { padding-top: 0; padding-bottom: clamp(56px, 7vw, 96px); }
.contact { display: grid; grid-template-columns: 96px 1fr; gap: 28px 20px; align-items: start; }
.contact-say { grid-column: 1 / -1; }
.contact-say h2 { margin-bottom: 18px; }
.statement { font-size: var(--fs-lead); line-height: 1.3; max-width: 24ch; }
.contact-pic { width: 96px; height: 96px; object-fit: cover; }
.contact-links { display: grid; gap: 6px; justify-items: start; }
.contact-links .q { font-weight: 500; }
.contact-links .link { display: inline-block; padding: 4px 0; }

/* footer: one quiet line */
.foot {
  display: grid; gap: 8px; padding: 0 var(--gutter) 28px;
  font-size: var(--fs-small); color: var(--muted);
}
.foot ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot ul a { color: var(--ink); text-decoration: none; display: inline-block; padding: 6px 0; }
@media (hover: hover) and (pointer: fine) { .foot ul a:hover { text-decoration: underline; } }

/* ======================================================
   Tablet
   ====================================================== */
@media (min-width: 700px) {
  .hero { min-height: max(100svh, 640px); }
  .hero { --fw: 104px; --r: min(60vw, calc(50svh - 120px)); }
  .services { grid-template-columns: 1fr 1.4fr; column-gap: 64px; align-items: start; }
  .services-head { position: sticky; top: 32px; }
  .menu { max-width: none; }
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .visit { grid-template-columns: 1fr 1fr; gap: 56px; }
  .map { aspect-ratio: auto; height: 100%; min-height: 460px; }
  .contact { grid-template-columns: 5fr 2fr 3fr; gap: 40px; }
  .contact-say { grid-column: auto; }
  .contact-pic { width: 160px; height: 160px; justify-self: center; }
  .statement { font-size: var(--fs-lead); }
  .facts { order: 0; grid-template-columns: 1fr; align-content: start; }
  .about { grid-template-columns: 11rem 1fr; gap: 56px; align-items: start; }
  .frames { gap: 8px; }
  .frames img { height: 150px; }
  .foot { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .foot p:last-child { text-align: right; }
}

/* ======================================================
   Desktop: the full ellipse
   ====================================================== */
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .nav-list, .js .nav-list { display: flex; gap: 26px; font-size: var(--fs-small); }
  .nav-list a { text-decoration: none; padding: 10px 0; }
  @media (hover: hover) and (pointer: fine) { .nav-list a:hover { text-decoration: underline; text-underline-offset: 0.3em; } }
  .nav { margin-right: 8px; }

  .hero {
    --rx: min(560px, 40vw);
    --ry: clamp(220px, calc(50svh - 120px), 320px);
    --cy: calc(50% + 30px);
    --fw: 88px;
  }
  .rf, .rf.d {
    display: block;
    --a: calc(var(--i) * 22.5deg - 78.75deg);
    left: calc(50% + cos(var(--a)) * var(--rx));
    top: calc(var(--cy) + sin(var(--a)) * var(--ry));
    width: calc(var(--fw) * (1.25 + 0.25 * sin(var(--a))));
    rotate: calc(cos(var(--a)) * sin(var(--a)) * -40deg);
  }
  .rf:nth-child(odd), .rf.d:nth-child(odd) { width: calc(var(--fw) * 1.15 * (1.25 + 0.25 * sin(var(--a)))); }
  .core { width: 36rem; }

  .designer { grid-template-columns: 7fr 5fr; column-gap: 64px; align-items: start; }
  .designer-head { grid-column: 1 / -1; }
  .preview { position: sticky; top: 24px; }
  .frames::after { display: none; }
  .frames { flex-wrap: nowrap; }
  .frames img { height: 160px; min-width: 0; }
}

/* ======================================================
   Motion: the headline rises once, the rest arrives quietly
   ====================================================== */
@media (prefers-reduced-motion: no-preference) {
  .core h1 .ln > span { animation: rise 900ms var(--ease-out) both; }
  .core h1 .ln + .ln > span { animation-delay: 110ms; }
  @keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
  .core-text, .core-act { animation: fade 700ms var(--ease-out) 520ms both; }
  @keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .rf { animation: frame 700ms var(--ease-out) both; animation-delay: calc(var(--i) * 35ms + 200ms); }
  @keyframes frame { from { opacity: 0; scale: 0.94; } to { opacity: 1; scale: 1; } }

  /* content is never hidden while it waits: it only sits a little low and rises into place */
  .js [data-r] { transform: translateY(14px); transition: transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-r].in { opacity: 1; transform: none; }

  .drop { animation: drift 18s ease-in-out infinite alternate; }
  @keyframes drift { from { object-position: 40% 50%; } to { object-position: 60% 50%; } }
}

/* booking dialog (only used once the Booksy widget code is added) */
.book-dialog { border: 0; padding: 16px; width: min(94vw, 760px); max-height: 92svh; background: var(--bg); color: var(--ink); }
.book-dialog::backdrop { background: rgba(31, 48, 56, 0.72); }
.book-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.book-head h2 { font-size: var(--fs-lead); }
.book-body { min-height: 60svh; }
.book-alt { margin-top: 12px; font-size: var(--fs-small); }

/* gallery dialog */
.shot-dialog {
  border: 0; padding: 16px; max-width: min(92vw, 640px); width: 100%;
  background: var(--bg); color: var(--ink);
}
.shot-dialog::backdrop { background: rgba(31, 48, 56, 0.72); }
.shot-dialog img { width: 100%; max-height: 70svh; object-fit: contain; background: var(--surface); }
.shot-dialog figcaption { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }
.shot-actions { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.close { background: none; border: 0; padding: 10px 0; cursor: pointer; font: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .shot-dialog[open] { animation: pop 220ms var(--ease-out); }
  @keyframes pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
}
