/* ==========================================================================
   Beauty by Mad — custom build
   Palette: cream paper, deep wine, blush pink. Editorial, warm, tactile.
   Type: Fraunces (display serif) + Instrument Sans (UI/body)
   ========================================================================== */

:root {
  --paper:      #faf5ee;
  --paper-2:    #f4ecdf;
  --blush:      #f7dde4;
  --blush-deep: #efc3cf;
  --wine:       #6b1f2e;
  --wine-deep:  #4a1220;
  --ink:        #2b141a;
  --ink-soft:   #57383f;
  --muted:      #96767d;
  --line:       rgba(43, 20, 26, 0.14);
  --line-light: rgba(250, 245, 238, 0.22);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --radius: 22px;
  --container: 1180px;
  --shadow-soft: 0 24px 60px -24px rgba(74, 18, 32, 0.28);
}

/* ---------- resets ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* subtle film grain over everything — tactile, not flat */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.9rem, 7.2vw, 5.4rem); font-weight: 300; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.35rem; }

h1 em, h2 em, .wordmark em {
  font-style: italic;
  font-weight: 400;
  color: var(--wine);
}

p { margin: 0 0 1.1em; }
a { color: var(--wine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--wine-deep); }

::selection { background: var(--wine); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--wine);
  color: var(--paper);
  padding: 0.7rem 1.2rem;
  z-index: 3000;
  border-radius: 0 0 12px 0;
}
.skip:focus { left: 0; }

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 1.1rem;
}
.eyebrow-light { color: var(--blush); }

.ic { width: 1.05em; height: 1.05em; vertical-align: -0.16em; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 1.05rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: var(--wine);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--wine-deep);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-light {
  background: var(--paper);
  color: var(--wine-deep);
}
.btn-light:hover {
  background: var(--blush);
  color: var(--wine-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--line-light);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--blush);
  color: var(--blush);
  transform: translateY(-2px);
}

.btn-small { padding: 0.72rem 1.3rem; font-size: 0.9rem; }
.btn-wide  { width: 100%; }

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: rgba(250, 245, 238, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.7rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark em { font-weight: 300; }
.wordmark-light { color: var(--paper); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav > a:not(.btn) {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav > a:not(.btn):hover { color: var(--wine); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(8.5rem, 14vh, 11rem) 0 0;
  overflow: hidden;
}

.hero-word {
  position: absolute;
  top: 4.5rem;
  right: -1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(9rem, 26vw, 22rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(107, 31, 46, 0.22);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding-bottom: clamp(3rem, 6vh, 5rem);
}

.hero-copy .lede {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 2.2rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.hero-note {
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 30em;
}
.hero-note .ic-spark { color: var(--wine); margin-right: 0.15em; }

.hero-art {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}

.hero-arch {
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
  background-image:
    linear-gradient(rgba(74, 18, 32, 0.18), rgba(74, 18, 32, 0.05)),
    image-set(
      url("/assets/img/hero-nails-800.webp") 1x,
      url("/assets/img/hero-nails-1200.webp") 1.5x
    );
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
  outline: 1px solid rgba(74, 18, 32, 0.08);
  outline-offset: -1px;
  position: relative;
}
.hero-arch::before {
  content: "";
  position: absolute;
  inset: -9% -7% auto auto;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blush);
  z-index: -1;
}

.hero-badge {
  position: absolute;
  left: -1.1rem;
  bottom: 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 6.4rem;
  height: 6.4rem;
  padding: 0.9rem 0.5rem 0.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.15;
  text-align: center;
  color: var(--wine-deep);
  transform: rotate(-6deg);
  box-shadow: 0 14px 34px -18px rgba(74, 18, 32, 0.35);
}
.hero-badge svg { width: 1.25rem; height: 1.25rem; color: var(--blush-deep); }

/* ---------- marquee ---------- */

.marquee {
  background: var(--wine-deep);
  color: var(--blush);
  overflow: hidden;
  padding: 0.95rem 0;
  transform: rotate(-1deg) scale(1.02);
  margin-bottom: -1rem;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 88s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.06rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section { padding: clamp(4.5rem, 10vh, 7.5rem) 0; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.2rem, 5vh, 3.5rem);
}
.section-note {
  color: var(--muted);
  font-size: 1rem;
  max-width: 44em;
}

/* new-client banner */
.newclient {
  background: var(--blush);
  border-radius: var(--radius);
  padding: 1.4rem 1.7rem;
  margin-bottom: clamp(2.5rem, 5vh, 3.8rem);
  border: 1px solid rgba(107, 31, 46, 0.12);
}
.newclient p { margin: 0; color: var(--wine-deep); }
.newclient strong { font-weight: 600; }

/* ---------- services menu ---------- */

.svc-group { margin-bottom: clamp(2.8rem, 6vh, 4.2rem); }
.svc-group:last-child { margin-bottom: 0; }

.svc-group h3 {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--wine);
  margin-bottom: 0.6rem;
}
.svc-group h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: svc;
}

.svc {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 2rem;
  align-items: start;
  padding: 1.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  border-radius: 14px;
  transition: background 0.25s ease;
}
.svc:first-child { border-top: 1px solid var(--line); }
.svc:hover { background: rgba(247, 221, 228, 0.45); }
.svc:hover .svc-book { opacity: 1; transform: translateX(0); }

.svc-top {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}
.svc-top h4 {
  font-size: 1.28rem;
  margin: 0;
  flex-shrink: 1;
}

.chip {
  display: inline-block;
  vertical-align: 0.32em;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
  background: var(--blush);
  border: 1px solid rgba(107, 31, 46, 0.18);
  padding: 0.28em 0.75em;
  border-radius: 999px;
  margin-left: 0.6em;
  white-space: nowrap;
}

.dots {
  flex: 1;
  min-width: 2rem;
  border-bottom: 2px dotted rgba(43, 20, 26, 0.22);
  transform: translateY(-0.35em);
}

.svc-meta-line {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0;
  white-space: nowrap;
}
.svc-duration { font-size: 0.88rem; color: var(--muted); }
.svc-price {
  font-family: var(--font-display);
  font-size: 1.32rem;
  color: var(--wine-deep);
}

.svc-desc {
  color: var(--ink-soft);
  font-size: 0.99rem;
  max-width: 56em;
  margin: 0.55rem 0 0;
}
.svc-fine {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
  font-style: italic;
}

.svc-book {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(107, 31, 46, 0.35);
  padding: 0.45rem 0.2rem 0.3rem;
  margin-top: 0.55rem;
  white-space: nowrap;
  opacity: 0.75;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.2s ease;
}
.svc-book:hover { color: var(--wine-deep); border-color: currentColor; opacity: 1; }

/* ---------- booking steps ---------- */

.section-booking {
  background: var(--wine-deep);
  color: var(--paper);
}
.section-booking .eyebrow { color: var(--blush); }
.section-booking h2 { color: var(--paper); }
.section-booking h2 em { color: var(--blush); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  counter-reset: step;
}

.step {
  border-top: 1px solid var(--line-light);
  padding-top: 1.6rem;
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--blush-deep);
  margin-bottom: 0.9rem;
}
.step h3 { color: var(--paper); font-size: 1.3rem; }
.step p { color: rgba(250, 245, 238, 0.78); font-size: 0.98rem; margin: 0; }
.step a { color: var(--blush); }

/* ---------- cta ---------- */

.cta {
  background:
    radial-gradient(50rem 26rem at 50% 130%, rgba(107, 31, 46, 0.55), transparent 65%),
    var(--wine-deep);
  text-align: center;
  padding: clamp(5rem, 12vh, 8rem) 0;
}
.cta h2 { color: var(--paper); font-size: clamp(2.4rem, 5.4vw, 4rem); }
.cta h2 em { color: var(--blush); }

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin: 2.4rem 0 2.6rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--line-light);
  color: var(--paper);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.socials a:hover {
  border-color: var(--blush);
  color: var(--blush);
  transform: translateY(-3px);
}
.socials .ic { width: 1.25rem; height: 1.25rem; }

/* ---------- footer ---------- */

.site-footer {
  background: #1d0b10;
  color: rgba(250, 245, 238, 0.75);
  padding: 3.2rem 0 2.4rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.footer-nav a {
  color: rgba(250, 245, 238, 0.75);
  text-decoration: none;
  font-size: 0.94rem;
}
.footer-nav a:hover { color: var(--blush); }

.footer-note {
  font-size: 0.84rem;
  color: rgba(250, 245, 238, 0.5);
  margin: 0;
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(250, 245, 238, 0.1);
  padding-top: 1.6rem;
  margin-top: 0.4rem;
}

/* ---------- mobile booking bar ---------- */

.mobile-cta {
  display: none;
}

@media (max-width: 760px) {
  .mobile-cta {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 900;
    padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
    background: rgba(250, 245, 238, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 0.35s ease;
  }
}
.mobile-cta.visible { transform: translateY(0); }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; margin-top: 1rem; }
  .hero-word { top: 6.5rem; font-size: clamp(8rem, 30vw, 14rem); right: -2rem; opacity: 0.7; }

  .steps { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
    padding: 6rem 2rem 2.5rem;
    background: var(--paper);
    box-shadow: 0 24px 40px -30px rgba(43, 20, 26, 0.4);
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    z-index: -1;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav > a:not(.btn) { font-size: 1.4rem; font-family: var(--font-display); }

  body { font-size: 1rem; }

  .svc { grid-template-columns: 1fr; padding: 1.4rem 0.4rem; }
  .svc-top { flex-wrap: wrap; }
  .dots { display: none; }
  .svc-meta-line {
    width: 100%;
    justify-content: flex-start;
    gap: 1.4rem;
    order: 3;
  }
  .svc-meta-line .svc-price { margin-left: auto; }

  .hero-badge { left: auto; right: -0.6rem; }

  .footer-inner { justify-content: center; text-align: center; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .svc, .svc-book, .socials a { transition: none; }
}
