/* ==========================================================================
   Neribo Beauty Lounge
   Palette:  aubergine #34123F, plum-ink #1E1024, orchid #8B4B9C,
             lilac-white #F4EEF7, white, marigold gold #E2A72E
   Type:     Outfit (headings, prices), Hanken Grotesk (body)
   ========================================================================== */

:root {
  --plum: #34123f;
  --ink-deep: #1e1024;
  --orchid: #8b4b9c;
  --lilac: #f4eef7;
  --paper: #ffffff;
  --gold: #e2a72e;
  --gold-light: #f0bc4a;
  --text: #241528;
  --muted: #5b4863;
  --link: #6e2f80;
  --line: #dccfe3;
  --leader: #a683b3;
  --ph-1: #ddd3e3;
  --ph-2: #efe9f2;

  --font-head: "Outfit", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --radius: 5px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1rem; max-width: 62ch; }
h1, h2, h3, h4 { margin: 0; overflow-wrap: anywhere; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }

a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { color: var(--plum); }

:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--gold-light); }

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

.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-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 50;
  background: var(--gold);
  color: var(--plum);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--plum); }
.btn-gold:hover { background: var(--gold-light); color: var(--plum); }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--ink-deep); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--plum); border-color: #fff; }
.btn-lg { min-height: 3.4rem; padding-inline: 1.7rem; font-size: 1.05rem; }
.btn-xl { min-height: 4.4rem; padding: 1rem 2.6rem; font-size: 1.3rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--plum);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand-mark {
  flex: none;
  width: auto;
  height: 2.75rem;
  padding: 0.3rem 0.4rem;
  background: #fff;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.site-nav a {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--gold); color: #fff; }

.bar-cta { min-height: 2.75rem; padding-inline: 1.1rem; white-space: nowrap; }

.menu-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 1.15rem; height: 2px;
  background: #fff;
  content: "";
  position: relative;
}
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 34rem) {
  .bar { gap: 0.5rem; }
  .brand { font-size: 0.9rem; gap: 0.45rem; }
  .brand span { white-space: normal; line-height: 1.1; max-width: 6.6rem; }
  .brand-mark { height: 2.4rem; padding: 0.25rem 0.35rem; }
  .bar-cta { padding-inline: 0.7rem; font-size: 0.85rem; min-height: 2.6rem; }
  .menu-toggle { width: 2.6rem; height: 2.6rem; }
}
@media (max-width: 24rem) {
  .bar-cta { white-space: normal; line-height: 1.1; padding-inline: 0.55rem; }
  .menu-toggle { width: 2.4rem; height: 2.4rem; }
}

@media (max-width: 56rem) {
  .bar-cta { margin-left: auto; }
  .site-nav { margin-left: 0; }

  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--plum);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.5rem 1.25rem 1rem;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a {
    padding: 0.9rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
  .js .site-nav a:hover { border-bottom-color: rgba(255, 255, 255, 0.16); }

  /* Without JavaScript the links simply wrap under the logo */
  html:not(.js) .bar { flex-wrap: wrap; padding-block: 0.5rem; }
  html:not(.js) .site-nav { order: 3; width: 100%; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
}

/* ---------- Photo placeholder ---------- */
.photo,
.tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ph-1), var(--ph-2));
}
.photo img,
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--muted);
}
.photo img.focus-top { object-position: center 25%; }
.photo-fill { position: absolute; inset: 0; }
.photo-portrait { aspect-ratio: 4 / 5; border-radius: var(--radius); }

/* ---------- Hero: full-bleed split ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--plum);
  color: #fff;
}
.hero-copy { min-width: 0; padding: 3rem 1.25rem 3.25rem; }

.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
  max-width: 11em;
  text-wrap: balance;
}
.hero-lead {
  font-size: 1.2rem;
  color: #e6d9ec;
  margin-bottom: 2rem;
  max-width: 33rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-photo { position: relative; min-height: 26rem; }
.hero-photo .photo { animation: reveal 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }

@keyframes reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    min-height: clamp(34rem, 82vh, 46rem);
  }
  .hero-copy {
    align-self: center;
    padding: 4rem 3rem 4rem max(1.25rem, calc((100vw - 74rem) / 2));
  }
  .hero-photo::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background: var(--gold);
    z-index: 2;
  }
}

/* ---------- Shared section styles ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-lilac { background: var(--lilac); }

.h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--plum);
  margin-bottom: 0.9rem;
  text-wrap: balance;
}
.section-head { margin-bottom: 2.25rem; max-width: 40rem; }
.section-head .h2 { margin-bottom: 0.75rem; }
.section-intro { font-size: 1.15rem; color: var(--muted); margin: 0; max-width: 40rem; }

/* ---------- Services: the price menu ---------- */
.menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
}
.menu-col { display: flex; flex-direction: column; gap: 2.5rem; }

.menu-group h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--plum);
  margin-bottom: 0.9rem;
}
.menu-group h3::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.6rem;
  background: var(--gold);
}

.rows { list-style: none; }
.row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.6rem 0;
}
.name {
  font-weight: 600;
  color: var(--plum);
  line-height: 1.3;
}
.name small {
  display: block;
  margin-top: 0.1rem;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--muted);
}
.leader {
  flex: 1 1 1rem;
  min-width: 1rem;
  border-bottom: 2px dotted var(--leader);
  transform: translateY(-0.3em);
}
.price {
  flex: none;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--plum);
}
.price .from {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
  margin-right: 0.1rem;
}

.menu-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.75rem;
}
.menu-foot p { margin: 0; color: var(--muted); font-size: 1rem; }

@media (min-width: 58rem) {
  .menu { grid-template-columns: 1fr 1fr; gap: 4.5rem; padding: 2.75rem 3.25rem; }
}

/* ---------- Gallery: masonry with varied proportions ---------- */
.gallery {
  column-count: 2;
  column-gap: 0.75rem;
}
.tile {
  aspect-ratio: var(--r, 1 / 1);
  margin-bottom: 0.75rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  border-radius: 4px;
}
.cap {
  position: absolute;
  left: 0.6rem; bottom: 0.6rem;
  z-index: 1;
  padding: 0.15rem 0.65rem;
  background: var(--plum);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 3px;
}
@media (min-width: 48rem) {
  .gallery { column-count: 3; column-gap: 1rem; }
  .tile { margin-bottom: 1rem; }
}

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.team-card { max-width: 26rem; }
.team-card .photo { margin-bottom: 1rem; }
.team-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--plum);
  margin-bottom: 0.4rem;
}
.team-card p { margin: 0; font-size: 1.05rem; }

@media (min-width: 40rem) and (max-width: 57.99rem) {
  .team { grid-template-columns: repeat(2, 1fr); }
  .team-intro { grid-column: 1 / -1; }
}
@media (min-width: 58rem) {
  .team { grid-template-columns: 4fr 4fr 4fr; gap: 3rem; align-items: start; }
  .team-card:nth-of-type(2) { margin-top: 3.5rem; }
}

/* ---------- Book your appointment ---------- */
.book {
  background: var(--gold);
  color: var(--plum);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.book-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.book h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.book p { font-size: 1.25rem; max-width: 34rem; }
.book-action .btn-xl { width: 100%; }
.book-alt { font-size: 1rem !important; margin: 1rem 0 0; }
.book a:not(.btn) { color: var(--plum); font-weight: 600; }

@media (min-width: 58rem) {
  .book-inner { grid-template-columns: 7fr 5fr; gap: 4rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: #dccfe3;
  border-top: 3px solid var(--gold);
  padding-top: 3rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer .brand { color: #fff; }

.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.footer-brand p { margin-top: 1rem; max-width: 26rem; }
.site-footer h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }

.footer-base {
  margin-top: 2.5rem;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
}
.footer-base p { margin: 0 0 0.35rem; max-width: none; }

@media (min-width: 52rem) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo .photo { animation: none; }
  .btn { transition: none; }
}
