/* Nailholics — shared styles for every page */

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Pastel pink palette, with the logo's olive-beige as a small accent */
  --bg: #fdf4f7;
  --blush: #fbe6ed;
  --petal: #f7d4df;
  --rose-200: #f0bfcd;
  --sage: #ddd3bd;
  --rose: #b2506d;
  --rose-deep: #96405a;
  --plum: #5f4b52;
  --ink: #2e2226;
  --muted: #6d5a61;
  --line: #f1d3dc;
  --white: #fff;

  --sans: "DM Sans", system-ui, sans-serif;

  --radius: 1.25rem;
  --radius-lg: 2rem;
  --shadow: 0 1px 2px #96405a14, 0 18px 40px -18px #96405a40;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --header-h: 6rem;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--blush) 0, var(--bg) 44rem) no-repeat, var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--rose-200); color: var(--ink); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: .25rem; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(72rem, 100% - 3rem); margin-inline: auto; }
.skip-link {
  position: absolute; z-index: 20; top: .75rem; left: .75rem;
  padding: .5rem 1rem; border-radius: 999px;
  background: var(--ink); color: var(--white);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.nowrap { white-space: nowrap; }

/* Type: three sizes for headings, one size for text */
h1, h2 { font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.08; }
.panel h2, .footer-cols h2 { font-size: 1.375rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.lead { max-width: 36rem; color: var(--muted); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); }
.prose p { max-width: 36rem; color: var(--muted); }
.prose p + p { margin-top: 1rem; }
.prose h2 { margin-bottom: 1.1rem; }
.prose .btn-row { margin-top: 2rem; }
.text-link { color: var(--rose); font-weight: 600; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* Header: a floating, see-through pill. It gets a soft shadow after you scroll. */
.site-header { position: sticky; top: .75rem; z-index: 10; margin-top: .75rem; }
.site-header .header-inner {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  width: min(74rem, 100% - 2rem); min-height: 4.5rem;
  padding: .5rem .6rem .5rem 1.6rem;
  border: 1px solid #f1d3dccc; border-radius: 999px;
  background: #fffafccc;
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 2px #96405a0d;
  transition: box-shadow 240ms var(--ease-out), background-color 240ms var(--ease-out);
}
.site-header.is-scrolled .header-inner { background: #fffafcf0; box-shadow: 0 12px 32px -14px #96405a4d; }
.wordmark {
  display: inline-flex; align-items: center; gap: .55rem; justify-self: start;
  color: var(--rose-deep);
  font: 500 2.125rem/1 var(--sans);
  letter-spacing: .12em;
  text-decoration: none;
}
/* Small pink and olive dots before the name, taken from the logo */
.wordmark::before {
  content: ""; flex: none; width: .9em; height: .9em;
  background:
    radial-gradient(circle at 34% 64%, #f2c1cc 0 .3em, transparent calc(.3em + .5px)),
    radial-gradient(circle at 80% 22%, #ddd3bd 0 .15em, transparent calc(.15em + .5px));
}

.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .9rem;
  border-radius: 999px;
  color: var(--ink); font-size: 1rem; font-weight: 500; text-decoration: none;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.site-nav a[aria-current="page"] { background: var(--petal); color: var(--rose-deep); font-weight: 600; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: .5rem; }
.header-actions .btn { min-height: 3rem; padding-inline: 1.4rem; box-shadow: none; }
.menu-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.5rem;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 1rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--rose); color: var(--white); box-shadow: 0 8px 20px -10px #b2506d99; }
.btn-secondary { background: var(--white); border-color: var(--rose-200); color: var(--rose-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { background: var(--blush); color: var(--rose-deep); }
  .btn-primary:hover { background: var(--rose-deep); box-shadow: 0 12px 24px -12px #96405ab3; }
  .btn-secondary:hover { background: var(--blush); border-color: var(--rose); }
}

/* Sections */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-flush { padding-top: 0; }
.section-blush { background: var(--blush); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

.page-intro {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 3.5rem);
}
.page-intro h1 { margin-bottom: 1rem; }

/* Logo-style dots and lines. Circles may be cut by the left or right screen edge only. */
.hero, .page-intro { position: relative; isolation: isolate; overflow: hidden; }
.hero::before, .page-intro::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-repeat: no-repeat; background-size: 260px auto;
}
.hero::before { background-image: url("assets/dots-left.svg"); background-size: 160px auto; background-position: left 0 bottom 0; }
.page-intro::before { background-image: url("assets/dots-right.svg"); background-size: 180px auto; background-position: right 0 top -30px; }

/* Home hero */
.hero { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(4rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; gap: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { margin-bottom: 2rem; }
.hero-media img { width: 100%; aspect-ratio: 7 / 8; object-fit: cover; object-position: center top; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* One page-load moment: hero content rises in once */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-media { animation: rise 700ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3), .hero-media { animation-delay: 120ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Two-column layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2.5rem, 6vw, 5rem); }
.split-top { align-items: start; }
.split-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); }

/* Panel: the one card style */
.panel { padding: clamp(1.5rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: #fffafc; }
.panel h2 { margin-bottom: .5rem; }
/* Buttons inside a card */
.panel-actions { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.panel-actions .btn { flex: 1 1 0; }

/* Rows: one list style for prices, contact details, and hours */
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem 1rem; padding-block: .8rem; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row-label { font-weight: 500; }
.row-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.row-value a { color: var(--rose-deep); font-weight: 600; text-underline-offset: .2em; text-decoration-color: var(--rose-200); }
.row-value a:hover { text-decoration-color: currentColor; }
.row-note { grid-column: 1; color: var(--muted); }
.prices .row-value { color: var(--rose-deep); font-weight: 600; }
.hours .row.is-today .row-label, .hours .row.is-today .row-value { color: var(--rose-deep); font-weight: 600; }

/* Services */
.price-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.price-group.wide { grid-column: 1 / -1; }
.price-group.wide .rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; }
.price-group.wide .row:nth-child(2) { border-top: 0; }
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); color: var(--muted); }
.steps li::before { counter-increment: step; content: counter(step); color: var(--rose); font-weight: 600; }
.steps strong { color: var(--ink); font-weight: 600; }

/* Callout */
.callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem 3rem; padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius-lg); background: var(--petal); }
.callout h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: .6rem; }
.callout p { color: var(--muted); max-width: 34rem; }
.callout .text-link { color: var(--rose-deep); }
.section-blush + .wrap { margin-top: clamp(4rem, 8vw, 6.5rem); }

/* Gallery */
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.6rem, 1.5vw, 1rem); }
.photo-grid.teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-link { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--petal); }
.photo-link img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 500ms var(--ease-out); }
.photo-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px #2e22260f; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .photo-link:hover img { transform: scale(1.04); } }

/* Lightbox */
.lightbox {
  width: min(100vw - 2rem, 44rem); max-height: calc(100dvh - 2rem);
  padding: .75rem; border: 0; border-radius: var(--radius);
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete;
}
@starting-style { .lightbox[open] { opacity: 0; transform: scale(.96); } }
.lightbox::backdrop { background: #2e2226b8; backdrop-filter: blur(4px); }
body:has(.lightbox[open]) { overflow: hidden; }
.lightbox-panel { position: relative; }
.lightbox-image { touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-drag: none; width: 100%; max-height: min(74dvh, 52rem); object-fit: contain; border-radius: .75rem; background: var(--blush); }
.lightbox-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding-top: .6rem; }
.lightbox-bar p { text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.icon-btn {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--rose-deep);
  cursor: pointer; transition: background-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.icon-btn svg { width: 1.15rem; height: 1.15rem; stroke-width: 2; }
.icon-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--blush); } }
.close-photo { position: absolute; top: .6rem; right: .6rem; }

/* Contact */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.stack { display: grid; gap: 1.25rem; }
.visit-photo { position: relative; min-height: 28rem; }
.visit-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.map { display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: clamp(1.5rem, 4vw, 2.5rem); border: 0; border-radius: var(--radius-lg); background: var(--petal); }

/* Booking */
.booking-frame { height: max(44rem, 85dvh); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.booking-fallback { margin-top: 1rem; color: var(--muted); }

/* Footer */
.site-footer { margin-top: clamp(4rem, 8vw, 6.5rem); padding-block: clamp(3rem, 6vw, 4rem); background: var(--blush); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 2.5rem; }
.footer-cols { display: grid; grid-template-columns: repeat(2, auto); gap: 2rem clamp(3rem, 8vw, 6rem); }
.footer-cols h2 { margin-bottom: .75rem; font-size: 1.0625rem; }
.footer-cols p { color: var(--muted); }
.footer-cols p + p { margin-top: .25rem; }
.footer-cols a { text-decoration-color: var(--rose-200); text-underline-offset: .2em; }
.footer-cols a:hover { color: var(--rose-deep); text-decoration-color: currentColor; }

/* Tablet */
@media (max-width: 60rem) {
  .hero-grid, .split, .visit-grid { grid-template-columns: 1fr; }
  .visit-photo { min-height: 0; }
  .visit-photo img { position: static; height: auto; }
  .hero-media { max-width: 30rem; }
  .hero::before { display: none; }
  .page-intro::before { background-size: 150px auto; background-position: right 0 top -30px; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .callout { grid-template-columns: 1fr; }
}

/* Header becomes a menu */
@media (max-width: 52rem) {
  .site-header .header-inner { display: flex; justify-content: space-between; }
  .site-nav a { padding-inline: 1rem; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 50%;
    background: var(--white); cursor: pointer;
  }
  .menu-toggle svg { width: 1.2rem; height: 1.2rem; }
  .menu-toggle .icon-close { display: none; }
  .menu-open .menu-toggle .icon-open { display: none; }
  .menu-open .menu-toggle .icon-close { display: block; }
  .site-nav {
    position: absolute; top: calc(100% + .5rem); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    padding: .5rem;
    background: #fffafc; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav a { min-height: 3rem; font-size: 1.0625rem; }
}

/* Phone */
@media (max-width: 40rem) {
  .wrap { width: calc(100% - 2.5rem); }
  :root { --header-h: 5rem; }
  .site-header { top: .5rem; margin-top: .5rem; }
  .site-header .header-inner { width: calc(100% - 1rem); min-height: 4rem; gap: .5rem; padding: .4rem .4rem .4rem 1rem; }
  .wordmark { gap: .4rem; font-size: 1.625rem; letter-spacing: .1em; }
  .page-intro::before { display: none; }
  .header-actions { gap: .375rem; }
  .header-actions .btn { min-height: 2.75rem; padding-inline: .875rem; font-size: .9375rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .price-groups, .price-group.wide .rows { grid-template-columns: 1fr; }
  .price-group.wide .row:nth-child(2) { border-top: 1px solid var(--line); }
  .photo-grid, .photo-grid.teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr; }
}

/* Small phones */
@media (max-width: 24rem) {
  .site-header .header-inner { padding-left: .85rem; }
  .wordmark { gap: .3rem; font-size: 1.375rem; letter-spacing: .07em; }
  .header-actions .btn { padding-inline: .75rem; }
}

@media (max-width: 21.5rem) {
  .wordmark { font-size: 1.3rem; letter-spacing: .05em; }
  .wordmark::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

