/* ============================================================
   Melisa Beauty Wien — "Soft modern beauty bar"
   Light ivory/mauve · Fraunces + Inter · asymmetric, airy
   ============================================================ */

:root {
  --ivory:  #faf6f1;
  --cream:  #f3ece4;
  --sand:   #ece1d4;
  --mauve:  #9c7a78;
  --mauve-d:#7e5f5d;
  --rose:   #cf9f97;
  --rose-soft:#e7c9c2;
  --gold:   #c2a06a;
  --ink:    #2b2422;
  --muted:  #7c6f68;
  --line:   rgba(43, 36, 34, 0.10);
  --white:  #fffdfb;

  --shadow-sm: 0 1px 2px rgba(43,36,34,.05), 0 6px 18px rgba(124,95,93,.07);
  --shadow-md: 0 8px 30px rgba(124,95,93,.13), 0 2px 6px rgba(43,36,34,.06);
  --shadow-lg: 0 24px 60px rgba(124,95,93,.20);

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 34px;

  --ff-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 74px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff-body);
  background: var(--ivory);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--rose-soft); color: var(--ink); }

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

.section { padding-block: clamp(4.5rem, 9vw, 8rem); }

/* ---------- Typography primitives ---------- */
.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mauve-d);
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
  color: var(--ink);
}
.section-title .em,
.hero-em { font-style: italic; color: var(--mauve); }

.section-head { max-width: 44ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
  max-width: 52ch;
}

.lead { font-size: 1.12rem; color: var(--ink); margin: 0 0 1.1rem; }
.body { color: var(--muted); margin: 0 0 1.8rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 48px;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn .ico { width: 18px; height: 18px; }

.btn-primary {
  background: var(--mauve);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--mauve-d); box-shadow: var(--shadow-md); }

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-line:hover { border-color: var(--mauve); color: var(--mauve-d); background: var(--white); }

.btn-large { padding: 1.1rem 2rem; font-size: 1.02rem; min-height: 54px; }

@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0); }
}

.ico {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* phone glyph uses a filled path */
.btn .ico path[d^="M22 16.92"],
.mobile-call-btn .ico path,
.contact-card-head .ico path[d^="M22 16.92"] { fill: currentColor; stroke: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
#navbar.scrolled {
  background: rgba(250, 246, 241, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: inline-flex; align-items: center; gap: 0.7rem; }
.nav-monogram {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--white);
  background: var(--mauve);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50% 50% 50% 4px;
  letter-spacing: -0.02em;
}
.nav-wordmark {
  font-family: var(--ff-display);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.005em;
}
.nav-wordmark em { font-style: italic; color: var(--mauve); }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 0.4rem;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--mauve);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: 0.92rem; font-weight: 600;
  color: var(--white); background: var(--ink);
  padding: 0.62rem 1.3rem; border-radius: 999px;
  transition: background-color .25s ease;
}
.nav-cta:hover { background: var(--mauve); }

.nav-hamburger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}
.nav-hamburger span {
  position: absolute; left: 50%; top: 50%;
  width: 20px; height: 2px; background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-hamburger span:nth-child(1) { transform: translate(-50%, -7px); }
.nav-hamburger span:nth-child(2) { transform: translate(-50%, 0); }
.nav-hamburger span:nth-child(3) { transform: translate(-50%, 7px); }
.nav-hamburger.active span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translate(-50%, 0) rotate(-45deg); }

/* ============================================================
   HERO  — asymmetric: copy left, framed portrait + offset block right
   ============================================================ */
#hero {
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(120% 80% at 92% 0%, var(--cream) 0%, var(--ivory) 55%);
  position: relative;
}
.hero-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-copy { max-width: 36rem; }
.hero-title {
  font-family: var(--ff-display);
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted);
  margin: 0 0 1.8rem;
  max-width: 38ch;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  list-style: none; margin: 0 0 2.1rem; padding: 0;
}
.hero-tags li {
  font-size: 0.84rem; font-weight: 500;
  color: var(--mauve-d);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* the figure: portrait in a lash-arch frame with offset rose block */
.hero-figure { position: relative; justify-self: center; width: min(100%, 420px); }
.hero-block {
  position: absolute;
  inset: 26px -26px -26px 40px;
  background: linear-gradient(150deg, var(--rose-soft), var(--rose));
  border-radius: 200px 200px var(--r-md) var(--r-md);
  z-index: 0;
}
.hero-frame {
  position: relative; z-index: 1;
  margin: 0;
  border-radius: 200px 200px var(--r-md) var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
  aspect-ratio: 4 / 5;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-chip {
  position: absolute; z-index: 2;
  left: -18px; bottom: 28px;
  background: var(--white);
  border-radius: var(--r-sm);
  padding: 0.8rem 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; line-height: 1.1;
}
.hero-chip-k { font-family: var(--ff-display); font-size: 1.5rem; color: var(--mauve); }
.hero-chip-l { font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   ABOUT — photos left (collage), text right
   ============================================================ */
.about { background: var(--ivory); }
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}
.about-photo { margin: 0; overflow: hidden; box-shadow: var(--shadow-md); background: var(--cream); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-tall {
  grid-row: span 2;
  border-radius: 160px 160px var(--r-md) var(--r-md);
  aspect-ratio: 3 / 5;
}
.about-photo-wide {
  grid-column: 2;
  border-radius: var(--r-md);
  aspect-ratio: 1 / 1;
  align-self: center;
}
/* decorative filler under wide photo so column reads balanced */
.about-photos::after {
  content: "";
  grid-column: 2;
  border-radius: var(--r-md);
  background: linear-gradient(150deg, var(--cream), var(--sand));
  aspect-ratio: 3 / 2;
  align-self: center;
}

.about-stats {
  display: flex; flex-wrap: wrap; gap: 2.2rem;
  margin: 0 0 2.2rem; padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}
.stat { margin: 0; display: flex; flex-direction: column-reverse; gap: 0.15rem; }
.stat-number { font-family: var(--ff-display); font-size: 2rem; color: var(--mauve); line-height: 1; }
.stat-label { font-size: 0.78rem; letter-spacing: .04em; color: var(--muted); }

/* ============================================================
   SERVICES — soft cards, gold hairline rule
   ============================================================ */
.services { background: var(--cream); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 2rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid rgba(255,255,255,.6);
}
@media (prefers-reduced-motion: no-preference) {
  .service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
}
.service-card-featured { background: var(--ink); }
.service-card-featured .service-name { color: var(--white); }
.service-card-featured .service-desc { color: rgba(255,255,255,.72); }
.service-card-featured .service-tag { color: var(--gold); border-color: rgba(194,160,106,.45); }

.service-rule { width: 40px; height: 2px; background: var(--gold); border-radius: 2px; margin-bottom: 1.3rem; display: block; }
.service-name { font-family: var(--ff-display); font-weight: 500; font-size: 1.32rem; margin: 0 0 0.7rem; line-height: 1.15; }
.service-desc { font-size: 0.96rem; color: var(--muted); margin: 0 0 1.6rem; flex: 1; }
.service-tag {
  align-self: flex-start;
  font-size: 0.74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--mauve-d);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

/* ============================================================
   GALLERY — soft rounded tiles, mixed sizes
   ============================================================ */
.gallery { background: var(--ivory); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  margin: 0; padding: 0; border: 0;
  background: var(--cream);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  grid-row: span 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gi-tall { grid-row: span 2; }
.gi-wide { grid-column: span 2; }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,36,34,0) 55%, rgba(43,36,34,.28));
  opacity: 0;
  transition: opacity .35s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .gallery-item:hover img { transform: scale(1.06); }
}
.gallery-item:hover::after { opacity: 1; }

.gallery-note { text-align: center; margin: 2.4rem 0 0; color: var(--muted); font-size: 0.98rem; }
.gallery-note a { color: var(--mauve-d); font-weight: 600; border-bottom: 1px solid var(--rose); }
.gallery-note a:hover { color: var(--mauve); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.contact-intro .section-title { margin-bottom: 1.3rem; }
.contact-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
}
.contact-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
}
.contact-card-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem; }
.contact-card-head .ico { width: 22px; height: 22px; color: var(--mauve); flex: none; }
.contact-card-head h3 { font-family: var(--ff-display); font-weight: 500; font-size: 1.1rem; margin: 0; }
.contact-line {
  display: inline-block;
  font-weight: 600; font-size: 1.02rem; color: var(--ink);
  word-break: break-word;
}
a.contact-line:hover { color: var(--mauve); }
.contact-line-plain { font-weight: 600; }
.contact-note { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,253,251,.75); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--ff-display); font-size: 1.3rem; color: var(--white); }
.footer-brand em { font-style: italic; color: var(--rose); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.footer-links a { font-size: 0.94rem; color: rgba(255,253,251,.8); transition: color .25s ease; }
.footer-links a:hover { color: var(--white); }
.footer-ig { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; color: var(--rose); }
.footer-ig .ico { width: 20px; height: 20px; }
.footer-ig:hover { color: var(--rose-soft); }
.footer-copy { font-size: 0.82rem; color: rgba(255,253,251,.5); margin: 0.4rem 0 0; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(36, 28, 27, 0.9);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.active { display: flex; }
.lightbox-inner { margin: 0; max-width: min(92vw, 560px); max-height: 86vh; }
.lightbox-inner img {
  width: 100%; height: 100%; max-height: 86vh; object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  background: var(--ink);
}
.lightbox button {
  position: absolute;
  background: rgba(255,253,251,.92);
  color: var(--ink);
  border: none; border-radius: 50%;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}
.lightbox button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox button:hover { background: var(--white); }
@media (prefers-reduced-motion: no-preference) { .lightbox button:hover { transform: scale(1.08); } }
.lightbox-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox-prev { left: clamp(0.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(0.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
  .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
}

/* ============================================================
   STICKY MOBILE CALL BAR
   ============================================================ */
.mobile-call-bar {
  display: none;
  position: fixed; inset: auto 0 0 0; z-index: 90;
  padding: 0.7rem clamp(0.8rem, 4vw, 1.2rem);
  padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-call-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%; min-height: 52px;
  background: var(--mauve); color: var(--white);
  font-weight: 600; font-size: 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.mobile-call-btn .ico { width: 20px; height: 20px; }

/* ============================================================
   ENTRANCE ANIMATIONS (progressive, reduced-motion safe)
   Content is fully visible by default; JS adds .reveal-ready
   only when motion is allowed.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
  }
  .reveal-ready .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: clamp(2.5rem, 8vw, 4rem); }
  .hero-copy { max-width: none; }
  .hero-figure { justify-self: start; width: min(100%, 380px); }
  .about-grid { grid-template-columns: 1fr; }
  .about-photos { max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto;
    width: min(82vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.6rem;
    background: var(--ivory);
    padding: 2rem var(--gutter);
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.22,.61,.36,1);
    box-shadow: -16px 0 50px rgba(43,36,34,.16);
  }
  .nav-links.nav-open { transform: translateX(0); }
  .nav-link { font-family: var(--ff-display); font-size: 1.4rem; }
  .nav-cta { font-size: 1rem; padding: 0.8rem 1.6rem; }
  .nav-hamburger { display: block; z-index: 101; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 76px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding-block: clamp(3.5rem, 12vw, 5rem); }
  .services-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 165px; }
  .gi-wide { grid-column: span 2; }
  .about-stats { gap: 1.6rem; }
  .stat-number { font-size: 1.7rem; }
  .nav-wordmark { font-size: 1.05rem; }
  .hero-chip { left: 0; }
}

@media (max-width: 380px) {
  .gallery-grid { gap: 0.7rem; grid-auto-rows: 150px; }
  .hero-tags li { font-size: 0.78rem; }
}
