/* ============================================================
   ESTHEA — Cabinet Estetic
   Elegant cream / editorial luxury system
   ============================================================ */
:root {
  --ivory:    #f5f1ea;
  --cream:    #ece5da;
  --sand:     #e3dac9;
  --ink:      #393530;
  --ink-soft: #5b554d;
  --muted:    #938b7e;
  --accent:   #b29470;   /* warm taupe gold */
  --accent-d: #97794f;
  --line:     rgba(57, 53, 48, 0.14);
  --shadow:   0 30px 80px -40px rgba(57, 53, 48, 0.45);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-width: none; scroll-behavior: smooth; }
html::-webkit-scrollbar { display: none; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.serif { font-family: var(--serif); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent-d);
}
.wrap { width: min(1180px, 90vw); margin: 0 auto; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 54px);
  transition: background .5s ease, padding .5s ease, box-shadow .5s ease;
  mix-blend-mode: normal;
}
.nav.solid {
  background: rgba(245, 241, 234, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 16px; padding-bottom: 16px;
}
.nav.on-dark:not(.solid) { color: var(--ivory); }
.nav.on-dark:not(.solid) .brand-sub { color: rgba(245,241,234,.7); }
.nav.on-dark:not(.solid) .nav-links a { color: rgba(245,241,234,.85); }
.nav.on-dark:not(.solid) .burger span { background: var(--ivory); }

.brand { line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
}
.brand-sub {
  display: block;
  font-size: 0.56rem;
  letter-spacing: 0.46em;
  color: var(--muted);
  margin-top: 3px;
  padding-left: 0.46em;
}
.nav-links { display: flex; gap: clamp(20px, 3vw, 40px); align-items: center; }
.nav-links a {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--accent); transition: width .4s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  border: 1px solid currentColor;
  padding: 9px 20px !important;
  border-radius: 100px;
  opacity: .9;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--ivory) !important; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.burger span { width: 24px; height: 1.5px; background: var(--ink); transition: .3s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 100px;
  border: 1px solid var(--accent);
  background: var(--accent); color: var(--ivory);
  transition: .4s ease; cursor: pointer;
}
.btn:hover { background: var(--accent-d); border-color: var(--accent-d); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn.light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

/* ============================================================
   Cinematic scroll-scrub sections
   ============================================================ */
.cinematic { position: relative; }
.cinematic.h-hero  { height: 280vh; }
.cinematic.h-mid   { height: 200vh; }
.sticky {
  position: sticky; top: 0; height: 100vh; width: 100%;
  overflow: hidden; display: grid; place-items: center;
  background: #100d0a;
}
.sticky canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18,13,8,0.74) 0%, rgba(18,13,8,0.5) 26%, rgba(18,13,8,0.12) 52%, transparent 68%),
    radial-gradient(120% 90% at 30% 50%, rgba(18,13,8,0.35) 0%, transparent 55%),
    linear-gradient(180deg, rgba(18,13,8,0.4) 0%, transparent 24%, transparent 60%, rgba(18,13,8,0.66) 100%);
}
.cine-overlay { position: absolute; inset: 0; z-index: 10; color: var(--ivory); }
.cine-overlay .reveal-line {
  position: absolute; left: clamp(22px, 7vw, 120px); top: 50%; transform: translateY(-50%);
  width: min(86vw, 600px); max-width: 86vw;
  white-space: normal; word-break: normal; overflow-wrap: break-word;
  text-align: left; text-wrap: balance;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 4rem); line-height: 1.08; letter-spacing: 0.01em;
  opacity: 0; text-shadow: 0 2px 24px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.5); will-change: opacity, transform;
}
.cine-overlay .reveal-line small {
  display: block; font-family: var(--sans); font-weight: 300;
  font-size: clamp(.8rem, 1.5vw, 1.05rem); letter-spacing: 0.4em;
  text-transform: uppercase; margin-top: 22px; color: rgba(245,241,234,.82);
}
.cine-overlay em { font-style: italic; color: #e8cfa9; }

.cine-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 12; font-size: .62rem; letter-spacing: .42em; text-transform: uppercase;
  color: rgba(245,241,234,.7); animation: bob 2s ease-in-out infinite; transition: opacity .5s;
}
@keyframes bob { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(7px)} }
.cine-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(245,241,234,.14); z-index: 12; }
.cine-progress i { display: block; height: 100%; width: 0; background: var(--accent); }

/* ============================================================
   Editorial content sections
   ============================================================ */
.section { padding: clamp(80px, 12vh, 160px) 0; }
.section.tight { padding: clamp(56px, 8vh, 110px) 0; }
.section.cream { background: var(--cream); }
.section.sand  { background: var(--sand); }
.section.dark  { background: #1c1813; color: var(--ivory); }
.section.dark .eyebrow { color: #d8b98f; }
.section.dark .lead, .section.dark p { color: rgba(245,241,234,.78); }

.head { max-width: 720px; }
.head.center { margin: 0 auto; text-align: center; }
.head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; letter-spacing: 0.01em;
  margin: 18px 0 0;
}
.head .eyebrow + h2 { margin-top: 14px; }
.lead { font-size: 1.08rem; color: var(--ink-soft); margin-top: 22px; font-weight: 300; }

/* intro split */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split .media { position: relative; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); }
.split .media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.split .media .tag {
  position: absolute; left: 18px; bottom: 18px; background: rgba(245,241,234,.92);
  padding: 8px 16px; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; border-radius: 100px;
}

/* feature trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); margin-top: 64px; }
.feat { padding-top: 28px; border-top: 1px solid var(--line); }
.feat .n { font-family: var(--serif); font-size: 1.1rem; color: var(--accent-d); letter-spacing: .2em; }
.feat h3 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin: 14px 0 10px; }
.feat p { color: var(--ink-soft); font-size: .98rem; }

/* services preview cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 58px; }
.card {
  background: var(--ivory); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: transform .5s ease, box-shadow .5s ease;
}
.section.cream .card { background: #faf7f1; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card .ph { aspect-ratio: 3/2; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.card:hover .ph img { transform: scale(1.06); }
.card .body { padding: 26px 26px 30px; }
.card .body h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.card .body p { color: var(--ink-soft); font-size: .94rem; margin: 8px 0 16px; }
.card .price { font-family: var(--serif); font-size: 1.25rem; color: var(--accent-d); }
.card .price small { font-family: var(--sans); font-size: .62rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }

/* price list (servicii page) */
.pricelist { margin-top: 50px; display: grid; gap: 0; }
.pl-group { margin-bottom: 56px; }
.pl-group > h3 {
  font-family: var(--serif); font-weight: 500; font-size: 1.9rem; margin-bottom: 8px;
}
.pl-group > .sub { color: var(--muted); font-size: .9rem; letter-spacing: .04em; margin-bottom: 18px; }
.pl-row {
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.pl-row .name { font-family: var(--serif); font-size: 1.35rem; }
.pl-row .desc { display: block; font-family: var(--sans); font-size: .86rem; color: var(--ink-soft); margin-top: 4px; max-width: 56ch; }
.pl-row .meta { display: flex; align-items: baseline; gap: 20px; white-space: nowrap; }
.pl-row .dur { font-size: .74rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.pl-row .amt { font-family: var(--serif); font-size: 1.5rem; color: var(--accent-d); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat .stat-num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--accent); }
.stat .lab { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.review {
  background: var(--ivory); border: 1px solid var(--line); border-radius: 6px; padding: 34px 30px;
  display: flex; flex-direction: column; gap: 18px;
}
.section.cream .review { background: #faf7f1; }
.section.dark .review { background: rgba(245,241,234,.05); border-color: rgba(245,241,234,.12); }
.review .stars { color: var(--accent); letter-spacing: 3px; font-size: .9rem; }
.review p { font-family: var(--serif); font-size: 1.28rem; line-height: 1.5; font-style: italic; color: var(--ink); }
.section.dark .review p { color: var(--ivory); }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review .ava { width: 38px; height: 38px; border-radius: 50%; background: var(--sand); display: grid; place-items: center;
  font-family: var(--serif); color: var(--accent-d); font-size: 1rem; }
.section.dark .review .ava { background: rgba(245,241,234,.1); color: #e8cfa9; }
.review .who b { font-weight: 500; font-size: .92rem; letter-spacing: .04em; }
.review .who span { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .08em; }

/* big quote band */
.band {
  text-align: center;
  background: radial-gradient(70% 100% at 50% 0%, rgba(178,148,112,.1), transparent 60%), var(--cream);
}
.band blockquote { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.25; max-width: 16ch; margin: 0 auto; }
.band cite { display: block; font-style: normal; margin-top: 30px; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* CTA */
.cta { text-align: center; background: #1c1813; color: var(--ivory); }
.cta h2 { color: var(--ivory); }
.cta .lead { color: rgba(245,241,234,.72); }
.cta .actions { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.cinfo { display: grid; gap: 30px; }
.cinfo .row { border-top: 1px solid var(--line); padding-top: 18px; }
.cinfo .row .k { font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.cinfo .row .v { font-family: var(--serif); font-size: 1.5rem; margin-top: 6px; }
.cinfo .row .v a:hover { color: var(--accent-d); }
.form { display: grid; gap: 18px; }
.form label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.form input, .form textarea, .form select {
  width: 100%; margin-top: 8px; padding: 14px 16px; font-family: var(--sans); font-size: .95rem;
  background: var(--ivory); border: 1px solid var(--line); border-radius: 4px; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); }
.map { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/7; margin-top: 50px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) sepia(.1); }

/* page hero (sub pages) */
.phero { padding: clamp(150px, 22vh, 240px) 0 clamp(50px, 8vh, 90px); background: var(--cream); text-align: center; }
.phero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02; margin-top: 14px; }
.phero p { color: var(--ink-soft); max-width: 60ch; margin: 18px auto 0; }

/* legal pages */
.legal { max-width: 820px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1rem; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--accent-d); text-decoration: underline; }
.legal .updated { font-size: .8rem; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* footer */
.footer { background: #15110d; color: rgba(245,241,234,.7); padding: 70px 0 40px; }
.footer .bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer .bottom .legal-links a:hover { color: #e8cfa9; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand-name { color: var(--ivory); font-size: 1.9rem; }
.footer .brand-sub { color: rgba(245,241,234,.45); }
.footer p { font-size: .9rem; max-width: 34ch; margin-top: 16px; }
.footer h4 { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(245,241,234,.45); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: .92rem; }
.footer ul a:hover { color: #e8cfa9; }
.footer .bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(245,241,234,.1);
  display: flex; justify-content: space-between; font-size: .76rem; letter-spacing: .08em; color: rgba(245,241,234,.45); flex-wrap: wrap; gap: 10px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- mobile nav drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 99; background: rgba(245,241,234,.98); backdrop-filter: blur(8px);
  display: grid; place-content: center; gap: 26px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer a { font-family: var(--serif); font-size: 2rem; }
.drawer .eyebrow { margin-top: 20px; }
.drawer .btn {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .2em;
  margin-top: 10px; justify-self: center; padding: 14px 32px;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .trio, .cards, .reviews { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer .top { grid-template-columns: 1fr 1fr; }
  /* on stacked split, show image first */
  .split .media { order: -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .trio, .cards, .reviews, .footer .top { grid-template-columns: 1fr; }
  .pl-row { grid-template-columns: 1fr; gap: 10px; }
  .pl-row .meta { justify-content: space-between; width: 100%; }
  .brand-name { font-size: 1.4rem; }
  /* shorter scrub distance so mobile scroll isn't endless */
  .cinematic.h-hero { height: 230vh; }
  .cinematic.h-mid  { height: 170vh; }
  .section { padding: 64px 0; }
  .section.tight { padding: 48px 0; }
  .trio { margin-top: 40px; }
  .cards, .reviews, .pricelist { margin-top: 34px; }
  .split .media img { aspect-ratio: 4/3; }
  .cine-overlay .reveal-line { font-size: clamp(2rem, 11vw, 3.2rem); }
  .nav { padding: 14px 18px; }
  .map { aspect-ratio: 4/3; }
  .cta .actions, .actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; justify-content: center; }
  .nav-cta { width: auto !important; }
}
@media (max-width: 380px) {
  .phero h1 { font-size: 2.3rem; }
  .head h2 { font-size: 2rem; }
}

/* nicer touch feel + safe areas */
* { -webkit-tap-highlight-color: rgba(178,148,112,.18); }
@supports (padding: max(0px)) {
  .nav { padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .cine-hint, .scroll-hint { animation: none; }
  html { scroll-behavior: auto; }
}
