/* ==========================================================================
   NAILSXLISSA — DESIGN TOKENS
   Palette:  --ink (near-black), --white, --pink (hot signature pink),
             --pink-deep (hover/pressed), --blush (tint bg), --blush-soft
   Type:     Fraunces (display serif, editorial) + Space Grotesk (UI/body)
   Signature: the "almond" nail-tip shape used on buttons, tags & cards
   ========================================================================== */

:root {
  --ink: #16121a;
  --ink-70: rgba(22, 18, 26, .7);
  --ink-45: rgba(22, 18, 26, .45);
  --white: #fffefc;
  --pink: #e8195f;
  --pink-deep: #b80e49;
  --pink-soft: #ff5c8d;
  --blush: #ffe0ec;
  --blush-soft: #fff3f7;
  --line: rgba(22, 18, 26, .12);

  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;

  --radius-nail: 50% 50% 46% 46% / 62% 62% 22% 22%;
  --radius-nail-sm: 50% 50% 40% 40% / 55% 55% 22% 22%;
  --ease: cubic-bezier(.19, 1, .22, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

:focus-visible { outline: 2.5px solid var(--pink); outline-offset: 3px; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin: 0 0 .9rem;
}

/* subtle grain so flat pink/black doesn't look sterile */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   BUTTONS — the almond "nail tip" shape is the signature element
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s ease;
}
.btn--lg { padding: 1.05rem 2.1rem; border-radius: var(--radius-nail); }
.btn--sm { padding: .6rem 1.3rem; border-radius: var(--radius-nail-sm); font-size: .82rem; }
.btn--nail {
  background: var(--ink); color: var(--white);
  box-shadow: 0 0 0 0 rgba(232,25,95,0);
}
.btn--nail:hover { background: var(--pink); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(232,25,95,.55); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover { border-color: var(--pink); color: var(--pink-deep); transform: translateY(-2px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(255,254,252,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__mark { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.nav__mark span { color: var(--pink); }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { font-size: .88rem; font-weight: 500; color: var(--ink-70); transition: color .2s; }
.nav__links a:hover { color: var(--pink); }
.nav__cta { display: none; }
@media (min-width: 760px) { .nav__cta { display: inline-flex; } }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-photo {
  max-width: 1400px; margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
}
.hero-photo__brand {
  text-align: center; font-family: var(--sans); font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -.01em;
  margin-bottom: clamp(1.2rem, 3vw, 1.8rem);
}

.hero-photo__frame {
  position: relative; width: 100%;
  aspect-ratio: 16/9;
  border-radius: 22px; overflow: hidden;
  background: var(--blush);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -28px rgba(22,18,26,.35);
}
@media (max-width: 640px) { .hero-photo__frame { aspect-ratio: 4/3; } }

.hero-photo__img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo__frame.img-missing .hero-photo__img { display: none; }

.hero-photo__fallback {
  display: none; position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  text-align: center; padding: 2rem; color: var(--pink-deep);
  background: repeating-linear-gradient(135deg, var(--blush), var(--blush) 12px, var(--blush-soft) 12px, var(--blush-soft) 24px);
}
.hero-photo__frame.img-missing .hero-photo__fallback { display: flex; }
.hero-photo__fallback span { font-family: var(--sans); font-weight: 700; font-size: .95rem; }
.hero-photo__fallback small { color: var(--ink-45); max-width: 26ch; }

/* soften the photo so white script + buttons stay legible over any image */
.hero-photo__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(22,18,26,.05) 0%, rgba(22,18,26,0) 35%, rgba(22,18,26,.35) 100%);
}

.hero-photo__script {
  position: absolute; inset: 0; margin: auto; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-family: "Yellowtail", cursive;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: var(--white);
  text-shadow: 0 4px 24px rgba(0,0,0,.35);
  pointer-events: none;
  text-align: center;
  padding: 0 1rem;
}

.hero-photo__actions {
  position: absolute; right: clamp(.9rem, 2.5vw, 1.6rem); bottom: clamp(.9rem, 2.5vw, 1.6rem);
  z-index: 3; display: flex; gap: .7rem; flex-wrap: wrap; justify-content: flex-end;
}
.btn--photo {
  background: var(--ink); color: var(--white);
  padding: .8rem 1.5rem; border-radius: var(--radius-nail-sm);
  font-size: .85rem; box-shadow: 0 10px 26px -10px rgba(0,0,0,.5);
}
.btn--photo:hover { background: var(--pink); transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(232,25,95,.55); }
@media (max-width: 480px) {
  .hero-photo__actions { left: .9rem; right: .9rem; justify-content: center; }
  .btn--photo { flex: 1; text-align: center; }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  background: var(--ink); color: var(--blush); overflow: hidden;
  padding: .85rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.marquee__track { display: flex; width: max-content; animation: scroll 26s linear infinite; }
.marquee__track span {
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  white-space: nowrap; padding-right: 2rem;
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ==========================================================================
   SECTION HEAD (shared)
   ========================================================================== */
.section__head {
  max-width: 640px; margin: 0 auto; text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.25rem 2.5rem;
}
.section__head h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; }
.section__sub { margin-top: .9rem; color: var(--ink-70); line-height: 1.55; }

/* ==========================================================================
   GALLERY / PHOTO STACK
   A deck of tilted, overlapping cards — click "Shuffle" or tap the top
   photo to send it flying to the back, revealing the next one underneath.
   ========================================================================== */
.gallery { padding-bottom: clamp(3rem, 6vw, 5rem); }

.stack {
  max-width: 420px; margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
  display: flex; flex-direction: column; align-items: center;
}

.stack__deck {
  position: relative; width: 100%; aspect-ratio: 4/5;
  /* extra headroom so tilted/offset cards behind the front one aren't clipped */
  margin-bottom: 1.6rem;
}

.stack-card {
  position: absolute; inset: 0; margin: 0;
  border-radius: 22px; overflow: hidden;
  background: var(--blush);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -16px rgba(22,18,26,.35);
  cursor: pointer;
  transition: transform .48s cubic-bezier(.19,1,.22,1), opacity .4s ease;
  will-change: transform, opacity;
}
.stack-card.no-anim { transition: none; }

.stack-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.stack-card.img-missing img { display: none; }

.stack-card__fallback {
  display: none; position: absolute; inset: 0;
  align-items: center; justify-content: center; text-align: center; padding: 1.5rem;
  background: repeating-linear-gradient(135deg, var(--blush), var(--blush) 14px, var(--blush-soft) 14px, var(--blush-soft) 28px);
  color: var(--pink-deep); font-weight: 700; font-size: .88rem;
}
.stack-card.img-missing .stack-card__fallback { display: flex; }

/* a little washi-tape corner accent, alternating sides, purely decorative */
.stack-card::before {
  content: ""; position: absolute; top: -6px; left: 50%;
  width: 64px; height: 22px; margin-left: -32px;
  background: var(--pink); opacity: .85; border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.stack-card:nth-child(even)::before { transform: rotate(-6deg); }
.stack-card:nth-child(odd)::before { transform: rotate(5deg); }

.stack__controls {
  display: flex; align-items: center; gap: 1.1rem;
}
.stack-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--white);
  font-size: 1.3rem; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.stack-btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.stack-btn--primary {
  width: auto; height: auto; border-radius: var(--radius-nail-sm);
  padding: .75rem 1.4rem; font-size: .85rem; font-weight: 600;
  background: var(--ink); color: var(--white); border: none;
}
.stack-btn--primary:hover { background: var(--pink); }
.stack__counter {
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink-70);
  min-width: 4.5rem; text-align: center;
}
.stack__hint {
  margin-top: .8rem; font-size: .76rem; color: var(--ink-45);
  text-transform: uppercase; letter-spacing: .06em;
}

/* ==========================================================================
   BOOKING
   ========================================================================== */
.booking { background: var(--blush-soft); padding-bottom: clamp(3rem, 7vw, 6rem); }
.booking__layout {
  max-width: 1300px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
@media (max-width: 980px) { .booking__layout { grid-template-columns: 1fr; } }

/* --- service categories --- */
.svc-cat { margin-bottom: 2.4rem; }
.svc-cat__head { display: flex; align-items: baseline; gap: .7rem; margin-bottom: 1rem; }
.svc-cat__head h3 { font-size: 1.3rem; font-weight: 600; }
.svc-cat__head p { color: var(--ink-45); font-size: .85rem; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem; }

.svc {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: 16px; padding: .95rem 1.1rem; text-align: left;
  transition: border-color .2s, background .2s, transform .2s;
}
.svc:hover { border-color: var(--pink-soft); transform: translateY(-1px); }
.svc.selected { background: var(--ink); border-color: var(--ink); color: var(--white); }
.svc.selected .svc__price { color: var(--blush); }
.svc__name { font-weight: 600; font-size: .92rem; }
.svc__price { font-size: .84rem; color: var(--ink-45); margin-top: .15rem; }
.svc__check {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: var(--radius-nail-sm);
  border: 1.5px solid var(--ink-45); display: flex; align-items: center; justify-content: center;
  font-size: .75rem; transition: all .2s;
}
.svc.selected .svc__check { background: var(--pink); border-color: var(--pink); color: var(--white); }

.svc-addon {
  margin-top: .6rem; font-size: .84rem; color: var(--pink-deep);
  border: 1px dashed var(--pink-soft); border-radius: 12px; padding: .7rem .9rem;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  background: var(--blush);
}
.svc-addon button {
  border: none; background: var(--ink); color: var(--white);
  border-radius: var(--radius-nail-sm); padding: .4rem .9rem; font-size: .78rem; font-weight: 600;
}
.svc-addon button.selected { background: var(--pink); }

/* --- order / booking panel --- */
.order {
  position: sticky; top: 90px;
  background: var(--white); border-radius: 26px; border: 1px solid var(--line);
  box-shadow: 0 20px 50px -20px rgba(22,18,26,.15);
}
.order__inner { padding: clamp(1.4rem, 3vw, 2rem); }
.order__title { font-size: 1.4rem; margin-bottom: 1rem; }
.order__empty { color: var(--ink-45); font-size: .88rem; padding: .5rem 0 1.2rem; }
.order__list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.order__list li {
  display: flex; justify-content: space-between; gap: .8rem;
  font-size: .88rem; padding: .55rem .2rem; border-bottom: 1px dashed var(--line);
}
.order__list li span:first-child { color: var(--ink-70); }
.order__list li strong { flex: 0 0 auto; }
.order__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .9rem 0; margin-bottom: 1.2rem; border-top: 1.5px solid var(--ink);
  font-family: var(--serif);
}
.order__total span { font-family: var(--sans); font-size: .8rem; color: var(--ink-45); text-transform: uppercase; letter-spacing: .06em; }
.order__total strong { font-size: 1.6rem; color: var(--pink-deep); }

.order__field { margin-bottom: 1rem; }
.order__field label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .4rem; }
.order__field label span { font-weight: 400; color: var(--ink-45); }
.order__field input, .order__field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: .75rem .9rem; font-size: .92rem; background: var(--blush-soft);
  transition: border-color .2s;
}
.order__field input:focus, .order__field textarea:focus { border-color: var(--pink); background: var(--white); }
.order__field textarea { resize: vertical; }

.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.slot {
  border: 1.5px solid var(--line); background: var(--blush-soft);
  border-radius: 12px; padding: .65rem; font-size: .85rem; font-weight: 600;
  transition: all .2s;
}
.slot:hover:not(:disabled) { border-color: var(--pink); }
.slot.selected { background: var(--ink); border-color: var(--ink); color: var(--white); }
.slot:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.order__hint { font-size: .76rem; color: var(--ink-45); margin-top: .5rem; }

.order__submit { width: 100%; margin-top: .4rem; }
.order__disclaimer { font-size: .74rem; color: var(--ink-45); text-align: center; margin-top: .7rem; }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(22,18,26,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal[hidden] { display: none; }
.modal__card {
  background: var(--white); border-radius: 28px; padding: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 420px; width: 100%; text-align: center;
  box-shadow: 0 30px 80px -20px rgba(22,18,26,.4);
}
.modal__stamp {
  width: 56px; height: 56px; border-radius: 50%; background: var(--pink); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  margin: 0 auto 1rem;
}
.modal__card h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.modal__msg { color: var(--ink-70); font-size: .92rem; line-height: 1.5; }
.modal__summary {
  margin: 1.3rem 0; padding: 1rem; border-radius: 16px; background: var(--blush-soft);
  text-align: left; font-size: .85rem; line-height: 1.7;
}
.modal__summary b { color: var(--pink-deep); }
.modal .btn { width: 100%; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: var(--white); padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem) 1.5rem; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 2rem; max-width: 1300px; margin: 0 auto; }
.footer__mark { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.footer__mark span { color: var(--pink-soft); }
.footer__brand p { margin-top: .6rem; color: rgba(255,254,252,.6); max-width: 32ch; font-size: .9rem; }
.footer__socials { display: flex; gap: .8rem; }
.social {
  display: flex; align-items: center; gap: .5rem;
  border: 1.5px solid rgba(255,254,252,.25); border-radius: var(--radius-nail-sm);
  padding: .65rem 1.1rem; font-size: .85rem; transition: all .2s;
}
.social svg { width: 18px; height: 18px; }
.social:hover { border-color: var(--pink-soft); color: var(--pink-soft); transform: translateY(-2px); }
.footer__bottom {
  max-width: 1300px; margin: 2.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,254,252,.15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  font-size: .78rem; color: rgba(255,254,252,.5);
}
