/* ============================================================
   Studio Beauty Salon — Makeup & Beauty
   Mobile-first, warm-neutral palette, serif + clean sans.
   Edit the tokens in :root to re-skin the whole site.
   ============================================================ */

:root {
  /* Palette ------------------------------------------------ */
  --cream:       #faf6f1;
  --beige:       #ede3d8;
  --blush-light: #f4e3df;
  --blush:       #e3bdbb;
  --charcoal:    #2e2a28;
  --charcoal-70: rgba(46, 42, 40, 0.7);
  --accent:      #b76e79;   /* rose-gold — the one accent colour */
  --accent-dark: #9c5763;

  /* Semantic ---------------------------------------------- */
  --bg:        var(--cream);
  --bg-alt:    var(--beige);
  --text:      var(--charcoal);
  --muted:     #6f6862;
  --line:      rgba(46, 42, 40, 0.12);

  /* Type --------------------------------------------------- */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout ------------------------------------------------- */
  --container: 1140px;
  --gap: 1.5rem;
  --radius: 4px;
  --shadow: 0 18px 50px -24px rgba(46, 42, 40, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: 0.01em; }

::selection { background: var(--accent); color: #fff; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Layout helpers ----------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-title { font-size: clamp(2rem, 5.5vw, 3.25rem); }
.section-lede { color: var(--muted); margin-top: 0.75rem; font-size: 1.05rem; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

/* Buttons ------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}
.btn--solid { background: var(--accent); color: #fff; }
.btn--solid:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--charcoal); color: var(--charcoal); }
.btn--ghost:hover { background: var(--charcoal); color: var(--cream); transform: translateY(-2px); }

/* ───────────────── Header / Nav ───────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header[data-state="scrolled"] {
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand__logo { height: 30px; width: auto; display: block; }
/* Hero is a light background, so the charcoal logo is used throughout the header. */
.brand__logo--light { display: none; }
.brand__logo--dark { display: block; }
@media (min-width: 880px) { .brand__logo { height: 34px; } }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-menu a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-menu a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid currentColor;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
  z-index: 110;
}
.nav-toggle__bar {
  width: 26px; height: 2px;
  background: var(--charcoal);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.4s var(--ease);
}

/* ───────────────── Hero ───────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--cream) 0%, var(--blush-light) 55%, var(--beige) 100%);
  perspective: 1100px;
}
.hero__content { position: relative; z-index: 2; min-width: 0; color: var(--text); max-width: 46rem; }

/* ---- Decorative 3D makeup crayon ---- */
.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transform-style: preserve-3d;
  transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 0.4s var(--ease);
}
.hero__glow {
  position: absolute;
  top: 50%; right: 9%;
  width: 30rem; height: 30rem;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(183, 110, 121, 0.26) 0%, rgba(183, 110, 121, 0) 66%);
}
.lipstick {
  --w: 118px;
  position: absolute;
  top: 50%; right: 10%;
  width: var(--w);
  height: 400px;
  margin-top: -200px;
  transform: rotate(-15deg);
  transform-style: preserve-3d;
  animation: lipstickFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 24px 18px rgba(46, 42, 40, 0.26));
}
.lipstick__svg { width: 100%; height: 100%; display: block; overflow: visible; }
@keyframes lipstickFloat {
  0%, 100% { transform: rotate(-15deg) translateY(-10px); }
  50%      { transform: rotate(-15deg) translateY(12px); }
}
/* On small screens, tuck the lipstick into the empty lower-right corner. */
@media (max-width: 768px) {
  .lipstick {
    --w: 88px;
    height: 300px;
    top: 58%; right: 24%; bottom: auto; margin-top: 0;
  }
  .hero__glow { top: 64%; bottom: auto; right: 6%; width: 19rem; height: 19rem; transform: translateY(-50%); }
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.78rem;
  margin-bottom: 1rem;
  color: var(--accent);
}
.hero__title { line-height: 0; margin-block: 0.25rem 0.5rem; }
.hero__logo { width: min(460px, 80vw); height: auto; }
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 3.5vw, 1.7rem);
  margin: 1.25rem 0 2.25rem;
  max-width: 32rem;
  color: var(--charcoal-70);
}
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 2rem;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1px solid rgba(46, 42, 40, 0.45);
  border-radius: 999px;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 8px;
  background: var(--charcoal);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollHint 1.8s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ───────────────── Portfolio ───────────────── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.filter {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.is-active { background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.gallery__item.is-hidden { display: none; }
.gallery__item figure { overflow: hidden; border-radius: var(--radius); }
.gallery__btn {
  display: block; width: 100%; padding: 0;
  background: var(--blush-light);
  position: relative;
}
.gallery__btn img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.gallery__btn::after {
  content: "View";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff;
  background: rgba(46, 42, 40, 0.28);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.gallery__btn:hover img { transform: scale(1.05); }
.gallery__btn:hover::after { opacity: 1; }
.gallery__empty { color: var(--muted); padding-block: 2rem; text-align: center; }

/* ───────────────── Services ───────────────── */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 1.85rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.section--alt .card { background: #fff; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card--featured { border-color: var(--accent); }
.card__badge {
  position: absolute; top: -0.7rem; left: 1.85rem;
  background: var(--accent); color: #fff;
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.35rem 0.85rem; border-radius: 999px;
}
.card__title { font-size: 1.75rem; }
.card__price {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--accent);
  margin: 0.4rem 0 1rem;
}
.card__price span {
  font-family: var(--sans);
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); display: block; line-height: 1;
}
.card__desc { color: var(--muted); }
.card__list { margin: 1.4rem 0 1.8rem; display: grid; gap: 0.6rem; }
.card__list li {
  position: relative; padding-left: 1.5rem; font-size: 0.95rem;
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.card .btn { margin-top: auto; text-align: center; }
.services__note { text-align: center; color: var(--muted); margin-top: 2rem; font-size: 0.92rem; }

/* ───────────────── About ───────────────── */
.about {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about__media picture { display: block; overflow: hidden; border-radius: var(--radius); }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__body p { color: var(--muted); margin-top: 1rem; }
.about__body .section-title { margin-top: 0.25rem; }
.about__stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin: 2rem 0;
}
.about__stats strong {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 500;
  color: var(--accent); display: block; line-height: 1;
}
.about__stats span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ───────────────── Testimonials ───────────────── */
.quotes { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.quote {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem 1.85rem;
  border-top: 3px solid var(--accent);
}
.quote p {
  font-family: var(--serif); font-style: italic; font-size: 1.2rem;
  line-height: 1.5; color: var(--text);
}
.quote cite {
  display: block; margin-top: 1.1rem;
  font-style: normal; font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}

/* ───────────────── Contact ───────────────── */
.contact { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.contact__intro p { color: var(--muted); margin-top: 1rem; }
.contact__details { margin-top: 1.5rem; display: grid; gap: 0.5rem; }
.contact__details a:hover { color: var(--accent); }

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field label .opt { letter-spacing: 0.04em; text-transform: none; opacity: 0.7; }

/* Location chooser (radio group) */
.choice { border: 0; padding: 0; margin: 0; }
.choice legend {
  padding: 0; margin-bottom: 0.55rem;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.choice__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.choice__opt {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem; line-height: 1.3;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.choice__opt input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; flex: none; }
.choice__opt:hover { border-color: var(--accent); }
.choice__opt:has(input:checked) {
  border-color: var(--accent);
  background: rgba(183, 110, 121, 0.06);
  box-shadow: 0 0 0 2px rgba(183, 110, 121, 0.18);
}
@media (max-width: 540px) { .choice__row { grid-template-columns: 1fr; } }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.98rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.15);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 0.85rem; font-size: 0.9rem; min-height: 1.2em; }
.form-status.is-success { color: var(--accent-dark); }
.form-status.is-error { color: #b3261e; }

/* ───────────────── Footer ───────────────── */
.site-footer { background: var(--charcoal); color: var(--cream); padding-top: 3rem; }
.footer__inner {
  display: grid; gap: 1.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(250,246,241,0.14);
  align-items: center;
}
.footer__logo { height: 42px; width: auto; margin-bottom: 0.5rem; }
.footer__tag { color: rgba(250,246,241,0.6); font-size: 0.9rem; }
.instagram-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.95rem; letter-spacing: 0.05em;
  color: var(--cream);
  transition: color 0.3s var(--ease);
}
.instagram-cta:hover { color: var(--blush); }
.socials { display: flex; gap: 1.1rem; }
.socials a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid rgba(250,246,241,0.25);
  border-radius: 50%;
  color: var(--cream);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  padding-block: 1.5rem;
  font-size: 0.82rem;
  color: rgba(250,246,241,0.55);
}

/* ───────────────── Lightbox ───────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: rgba(28, 25, 24, 0.94);
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { max-width: min(92vw, 720px); }
.lightbox__figure img {
  width: 100%; max-height: 86vh; object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  transform: scale(0.97);
  transition: transform 0.3s var(--ease);
}
.lightbox.is-open .lightbox__figure img { transform: scale(1); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  color: var(--cream);
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background 0.3s var(--ease);
}
.lightbox__close {
  top: 1.1rem; right: 1.2rem;
  width: 46px; height: 46px; font-size: 2rem; line-height: 1;
}
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2.4rem; }
.lightbox__nav--prev { left: 0.6rem; }
.lightbox__nav--next { right: 0.6rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.14); }

/* ───────────────── Scroll-reveal animation ───────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
  .lipstick { animation: none; }
  .lipstick__shine { display: none; }
}

/* ═════════════════ Responsive ═════════════════ */
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
  .quotes  { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 880px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .cards   { grid-template-columns: repeat(3, 1fr); }
  .about   { grid-template-columns: 0.9fr 1.1fr; }
  .contact { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
}

/* Mobile nav (below 880px) */
@media (max-width: 879px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
    background: var(--cream);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow);
  }
  .site-header[data-menu="open"] .nav-menu { transform: translateX(0); }
  .nav-menu a { color: var(--charcoal); font-size: 1rem; }
  .site-header[data-menu="open"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header[data-menu="open"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .site-header[data-menu="open"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
  .booking-form { grid-template-columns: 1fr; }
}
