:root {
  --brown: #3b2608;
  --brown-soft: #6b5338;
  --cream: #f8f3ec;
  --nude: #ead9c6;
  --gold: #b8936a;
  --ink: #120d0a;
  --ink-soft: #2a221d;

  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Montserrat", system-ui, sans-serif;

  --ease-out: cubic-bezier(.2, .7, .1, 1);

  --header-h: 120px;
  --header-h-scrolled: 80px;
}

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

html { scroll-behavior: smooth; }

/* Lenis (scroll lin) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--brown);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color .4s ease, box-shadow .4s ease, backdrop-filter .4s ease;
  animation: header-in 1s var(--ease-out) .1s both;
}

@keyframes header-in {
  from { opacity: 0; transform: translateY(-12px); }
}

.site-header.is-scrolled {
  background: rgba(18, 13, 10, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(248, 243, 236, .08);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3.5rem);
  position: relative;
  transition: height .4s ease;
}

/* linie fină sub header cât timp stă peste fotografie */
.site-header.on-dark:not(.is-scrolled):not(.menu-open) .header-inner::after {
  content: "";
  position: absolute;
  left: clamp(1rem, 4vw, 3.5rem);
  right: clamp(1rem, 4vw, 3.5rem);
  bottom: 0;
  height: 1px;
  background: rgba(248, 243, 236, .18);
}

.is-scrolled .header-inner { height: var(--header-h-scrolled); }

.logo { grid-column: 2; display: block; }

.logo img {
  width: clamp(200px, 20vw, 300px);
  transition: width .4s ease;
}

.is-scrolled .logo img { width: clamp(170px, 16vw, 230px); }

.logo .logo-light { display: none; }

/* Site cu fundal închis: clasa .on-dark pe header ține logo-ul și meniul în crem */
.site-header.on-dark:not(.menu-open) .logo-dark { display: none; }
.site-header.on-dark:not(.menu-open) .logo-light { display: block; }
.site-header.on-dark:not(.menu-open) .nav a,
.site-header.on-dark:not(.menu-open) .ig-icon { color: var(--cream); }
.site-header.on-dark:not(.menu-open) .menu-toggle span { background: var(--cream); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.75rem);
}

.nav-left  { grid-column: 1; justify-content: flex-start; }
.nav-right { grid-column: 3; justify-content: flex-end; }

.nav a,
.mobile-nav a {
  position: relative;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brown);
  text-decoration: none;
  padding: .4rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-ig {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

/* Mobile controls (ascunse pe desktop) */
.menu-toggle,
.ig-icon { display: none; }

.menu-toggle {
  grid-column: 1;
  justify-self: start;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1px;
  background: var(--brown);
  transition: transform .3s ease, top .3s ease;
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }

.menu-open .menu-toggle span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.ig-icon {
  grid-column: 3;
  justify-self: end;
  color: var(--brown);
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1rem 2.5rem;
  background: var(--cream);
  border-top: 1px solid rgba(59, 38, 8, .08);
}

@media (max-width: 960px) {
  :root {
    --header-h: 84px;
    --header-h-scrolled: 68px;
  }

  .nav { display: none; }
  .menu-toggle { display: block; }
  .ig-icon { display: flex; }

  .header-inner { gap: 1rem; }
  .logo img { width: clamp(170px, 48vw, 240px); }
  .is-scrolled .logo img { width: clamp(150px, 40vw, 200px); }

  .menu-open { background: var(--cream); }
  .menu-open .mobile-nav { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 6vw, 7rem) clamp(3rem, 11vh, 7.5rem);
  color: #fff;
  background: #3a2414;
}

/* fotografia, cu un zoom lent la încărcare */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/bgimg2.jpg") center / cover no-repeat;
  animation: hero-zoom 2.8s var(--ease-out) both;
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
}

/* se întunecă pe măsură ce derulezi (controlat din script.js) */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
}

/* granulație fină, ca pe film (textură, nu întunecă poza) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .08;
  mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 2; max-width: 46rem; }

/* literele titlului, împărțite din script.js */
.char { display: inline-block; will-change: transform, opacity, filter; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.75rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(248, 243, 236, .8);
}

.eyebrow::before {
  content: "";
  width: 2.75rem;
  height: 1px;
  background: currentColor;
}

.hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.75rem, 9vw, 9.5rem);
  line-height: .9;
  letter-spacing: -.02em;
  color: #fff;
}

.hero-title em {
  font-style: italic;
  color: #f1dfcb;
}

/* fiecare rând urcă din spatele unei „măști” */
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
}

.hero-title .line > * {
  display: inline-block;
  animation: line-up 1.2s var(--ease-out) var(--d, 0s) both;
}

@keyframes line-up {
  from { transform: translateY(105%); }
}

.hero-sub {
  margin: 1.5rem 0 0;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(248, 243, 236, .85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.75rem;
}

.btn-solid,
.btn-link {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  padding: 1.05rem 1.75rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--brown);
  transition: background-color .35s ease, gap .35s var(--ease-out);
}

.btn-solid:hover { background: #fff; gap: 1.3rem; }

.btn-link {
  position: relative;
  padding: .4rem 0;
  color: var(--cream);
}

.btn-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: .5;
  transition: opacity .3s ease;
}

.btn-link:hover::after { opacity: 1; }

.reveal { animation: fade-up 1s var(--ease-out) var(--d, 0s) both; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
}

/* indicator de scroll, jos în dreapta */
.scroll-cue {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3.5rem);
  bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  font-size: .6rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(248, 243, 236, .8);
  text-decoration: none;
}

.scroll-cue span { writing-mode: vertical-rl; }

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 3.5rem;
  overflow: hidden;
  background: rgba(248, 243, 236, .25);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  animation: scroll-line 2.2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

@media (max-width: 960px) {
  /* pe ecran îngust aducem chipul (din dreapta pozei) în cadru */
  .hero-media { background-position: 82% center; }

  .hero { padding-bottom: 3rem; }

  /* fără overlay: o umbră fină doar în spatele textului îl ține lizibil peste piele */
  .hero-content { text-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 2px 28px rgba(0, 0, 0, .45); }
  .eyebrow, .hero-sub, .btn-link { color: #fff; }

  .hero-title { font-size: clamp(3.5rem, 17vw, 5.5rem); }
  .hero-actions { margin-top: 2rem; }
  .scroll-cue,
  .bubble-hero { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .hero-media,
  .hero-title .line > *,
  .reveal,
  .scroll-cue i::after { animation: none; }
}

/* ---------- Bule de sticlă (lentile care măresc ce e în spate) ---------- */

.bubble {
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  pointer-events: none;
  backdrop-filter: blur(.5px) brightness(1.06) saturate(1.08);
  -webkit-backdrop-filter: blur(.5px) brightness(1.06) saturate(1.08);
  background:
    /* reflexie mică, sus-stânga */
    radial-gradient(ellipse 22% 14% at 32% 22%, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, 0) 100%),
    /* reflexie secundară jos-dreapta */
    radial-gradient(ellipse 30% 18% at 66% 84%, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 100%),
    /* marginea care prinde lumina */
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .06) 78%, rgba(255, 255, 255, .32) 98%, rgba(255, 255, 255, 0) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .22),
    inset 0 -18px 30px rgba(255, 255, 255, .05),
    0 24px 50px rgba(0, 0, 0, .18);
  animation: bubble-float 9s ease-in-out infinite alternate;
}

@keyframes bubble-float {
  from { translate: 0 0; }
  to   { translate: 10px -24px; }
}

.bubble-hero { width: clamp(110px, 13vw, 210px); aspect-ratio: 1; top: 18%; right: 36%; }
.bubble-a { width: clamp(90px, 11vw, 180px); aspect-ratio: 1; top: 14%; left: 9%; animation-duration: 8s; }
.bubble-b { width: clamp(60px, 6vw, 100px); aspect-ratio: 1; top: 52%; left: 40%; animation-duration: 11s; }
.bubble-c { width: clamp(120px, 14vw, 240px); aspect-ratio: 1; top: 26%; right: 6%; animation-duration: 10s; }

/* ---------- Panouri (servicii) ---------- */

.looks {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}

.look {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 clamp(1.25rem, 3vw, 3rem) clamp(2.5rem, 9vh, 6rem);
  color: #fff;
  overflow: hidden;
}

.look + .look { border-left: 1px solid rgba(248, 243, 236, .08); }

.look-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.look-img {
  position: absolute;
  inset: -8% 0;
  background-size: cover;
  background-position: center;
}

/* gradient doar jos, sub text */
.look-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 13, 10, .65) 0%, rgba(18, 13, 10, 0) 45%);
}

.look:nth-child(1) .look-img { background-position: 62% center; }
.look:nth-child(2) .look-img { background-position: 52% center; }
.look:nth-child(3) .look-img { background-position: 45% center; }

.look-num,
.look-title { position: relative; }

.look-num {
  margin-bottom: 1rem;
  font-size: .68rem;
  letter-spacing: .3em;
  color: rgba(248, 243, 236, .75);
}

.look-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ---------- Final (contact) ---------- */

.cta {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 8rem clamp(1.25rem, 6vw, 7rem);
  text-align: center;
  color: var(--cream);
  background: var(--ink);
}

.cta-media {
  position: absolute;
  inset: 0;
  background: url("assets/glam-3.jpg") center / cover no-repeat;
  opacity: .45;
}

.cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(18, 13, 10, .25) 0%, rgba(18, 13, 10, .9) 75%);
}

.cta-content { position: relative; max-width: 44rem; }

.cta .eyebrow { justify-content: center; }

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.015em;
}

.section-title em { font-style: italic; color: #f1dfcb; }

.cta-text {
  max-width: 30rem;
  margin: 2rem auto 2.5rem;
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(248, 243, 236, .78);
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem clamp(1.25rem, 6vw, 7rem);
  background: var(--ink);
  border-top: 1px solid rgba(248, 243, 236, .08);
}

.site-footer img { width: 160px; }

.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--cream);
  text-decoration: none;
  opacity: .8;
  transition: opacity .3s ease;
}

.footer-ig:hover { opacity: 1; }

.site-footer p {
  margin: 0;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(248, 243, 236, .5);
}

/* ---------- Mobil ---------- */

@media (max-width: 760px) {
  .looks {
    grid-template-columns: 1fr;
    height: auto;
  }

  .look { min-height: 78svh; }
  .look + .look { border-left: 0; border-top: 1px solid rgba(248, 243, 236, .08); }

  .bubble-b { display: none; }

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

@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; }
}
