/* ============================================================
   DERMIQ — Tratamente Faciale Avansate, Bacău
   Minimalist · alb + verde-turcoaz · cinematic scroll
   ============================================================ */

:root {
  --bg:        #ffffff;
  --cream:     #f6f3ec;
  --cream-2:   #efeae0;
  --ink:       #1c2a26;   /* deep green-charcoal text */
  --green:     #2f5d54;   /* deep teal-green */
  --green-dk:  #234740;
  --turq:      #1fb6a6;   /* turquoise accent */
  --turq-dk:   #129488;
  --turq-soft: #d7f0ec;
  --muted:     #5f6f6a;
  --line:      #e6e1d6;
  --shadow:    0 18px 50px -22px rgba(28,42,38,.35);
  --radius:    18px;
  --maxw:      1180px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap { width: min(92vw, var(--maxw)); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--turq-dk);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--turq); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 100px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 12px 30px -12px rgba(47,93,84,.6); }
.btn-primary:hover { background: var(--green-dk); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-turq { background: var(--turq); color: #fff; }
.btn-turq:hover { background: var(--turq-dk); transform: translateY(-2px); }

/* ---------- Header ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(16px, 4vw, 44px);
  transition: background .45s cubic-bezier(.4,0,.2,1),
              box-shadow .45s cubic-bezier(.4,0,.2,1),
              padding .45s cubic-bezier(.4,0,.2,1),
              transform .5s cubic-bezier(.16,1,.3,1);
  transform: translateY(0);
  animation: navDrop .8s cubic-bezier(.16,1,.3,1) both;
}
@keyframes navDrop { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.nav.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 6px 30px -16px rgba(28,42,38,.28);
  padding-top: 11px; padding-bottom: 11px;
}
/* hide on scroll-down, reveal on scroll-up (set by JS, only after page load) */
.nav.hide { transform: translateY(-115%); }
.nav.ready { animation: none; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.nav-brand b { font-family: var(--font-head); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.nav-brand span { display: block; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { position: relative; font-weight: 600; font-size: 15px; color: var(--ink); opacity: .82; transition: opacity .3s ease, color .3s ease; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--turq); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--green); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 24px; position: relative; }
.nav-toggle span { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: .3s; }
.nav-toggle span:nth-child(1){ top: 2px; } .nav-toggle span:nth-child(2){ top: 11px; } .nav-toggle span:nth-child(3){ top: 20px; }

/* Light nav over dark hero (homepage), until scrolled */
.nav.over-hero:not(.scrolled) .nav-brand b,
.nav.over-hero:not(.scrolled) .nav-links a { color: #fff; }
.nav.over-hero:not(.scrolled) .nav-brand span { color: rgba(255,255,255,.78); }
.nav.over-hero:not(.scrolled) .nav-links a { opacity: .92; }
.nav.over-hero:not(.scrolled) .nav-links a:hover,
.nav.over-hero:not(.scrolled) .nav-links a.active { color: #fff; opacity: 1; }
.nav.over-hero:not(.scrolled) .nav-toggle span { background: #fff; }
.nav.over-hero:not(.scrolled) .nav-links a::after { background: #fff; }
@media (max-width: 820px){
  /* mobile menu is a white panel — keep its links dark even over hero */
  .nav.over-hero:not(.scrolled) .nav-links a { color: var(--ink); }
}
.nav-toggle.open span:nth-child(1){ top: 11px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ top: 11px; transform: rotate(-45deg); }

/* ---------- Cinematic hero ---------- */
.hero {
  position: relative;
  height: 200vh;            /* scroll distance — same on desktop & mobile */
}
.hero-sticky {
  position: sticky; top: 0; width: 100%;
  height: 100vh;            /* fallback */
  height: 100svh;           /* mobile: ignore address-bar resize → no black strip */
  overflow: hidden; background: #0e1f1c;
}
.hero-layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .9s ease;
  will-change: opacity, transform;
}
.hero-layer.show { opacity: 1; }
/* frame-scrub canvas — real video motion driven by scroll */
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  animation: heroReveal 1.2s cubic-bezier(.16,1,.3,1) both;
}
/* single cinematic image — scroll-driven horizontal parallax pan + intro wipe */
.hero-cine {
  position: absolute; inset: -3%;
  background-size: cover; background-position: center;
  transform: scale(1.12) translateX(6%);
  will-change: transform;
  animation: heroReveal 1.3s cubic-bezier(.16,1,.3,1) both;
}
@keyframes heroReveal {
  from { clip-path: inset(0 0 0 100%); opacity: .25; }
  to   { clip-path: inset(0 0 0 0);    opacity: 1; }
}
.hero-tint {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15,30,27,.74) 0%, rgba(15,30,27,.34) 36%, rgba(15,30,27,0) 62%),
    linear-gradient(180deg, rgba(15,30,27,.18) 0%, transparent 22%, transparent 74%, rgba(15,30,27,.26) 100%);
}
.hero-copy {
  position: absolute; left: clamp(20px, 6vw, 84px); top: 50%;
  transform: translateY(-50%);
  width: min(86vw, 620px); z-index: 5; color: #fff;
}
.hero-line {
  position: absolute; left: clamp(20px, 6vw, 84px); top: 50%;
  width: min(86vw, 620px); z-index: 5; color: #fff;
  opacity: 0; will-change: opacity, transform;
}
.hero-line .eyebrow { color: var(--turq-soft); }
.hero-line .eyebrow::before { background: var(--turq-soft); }
.hero-line h1, .hero-line h2 {
  font-size: clamp(2.1rem, 6.4vw, 4rem);
  font-weight: 500; margin: 16px 0 14px;
  text-shadow: 0 2px 30px rgba(0,0,0,.45), 0 1px 4px rgba(0,0,0,.4);
}
.hero-line p {
  font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 30em;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 14px rgba(0,0,0,.5);
}
.hero-line .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-progress {
  position: absolute; left: clamp(20px,6vw,84px); right: clamp(20px,6vw,84px); bottom: 40px;
  height: 2px; background: rgba(255,255,255,.22); z-index: 6;
}
.hero-progress i { display: block; height: 100%; width: 0; background: var(--turq); box-shadow: 0 0 12px var(--turq); }
.hero-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 6; color: rgba(255,255,255,.7); font-size: 11px; letter-spacing: .35em;
  text-transform: uppercase; animation: bob 1.9s ease-in-out infinite; transition: opacity .4s;
}
@keyframes bob { 0%,100%{ transform: translateX(-50%) translateY(0);} 50%{ transform: translateX(-50%) translateY(7px);} }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 130px) 0; }
.section.cream { background: var(--cream); }
.section.green { background: var(--green-dk); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 16px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section.green .section-head p { color: rgba(255,255,255,.8); }

/* ---------- Intro split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.split .media { position: relative; }
.split .media .badge {
  position: absolute; bottom: -18px; right: -18px; background: #fff;
  border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow); text-align: center;
}
.split .media .badge b { font-family: var(--font-head); font-size: 30px; color: var(--green); display: block; line-height: 1; }
.split .media .badge span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cosmetician-photo img { max-height: 540px; object-position: center 20%; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; } .split .media { order: -1; } .cosmetician-photo img { max-height: 460px; } }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--turq-soft); color: var(--turq-dk);
  display: grid; place-items: center; margin-bottom: 18px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }
@media (max-width: 820px){ .cards { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery figure { overflow: hidden; border-radius: 14px; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 820px){ .gallery { grid-template-columns: repeat(2,1fr); grid-auto-rows: 160px; } .gallery .wide{ grid-column: span 2;} .gallery .tall{ grid-row: span 1;} }

/* ---------- Services ---------- */
.svc-cat { margin-bottom: 56px; }
.svc-cat > h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--turq-dk); margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 14px;
  transition: box-shadow .3s, border-color .3s;
}
.svc:hover { box-shadow: var(--shadow); border-color: transparent; }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.svc-name { font-family: var(--font-head); font-size: 1.32rem; font-weight: 600; }
.svc-tag { display: inline-block; font-family: var(--font-body); font-size: 10.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 100px; margin-left: 10px; vertical-align: middle;
  background: var(--turq-soft); color: var(--turq-dk); }
.svc-tag.gold { background: #f4ecd6; color: #997a2c; }
.svc-meta { text-align: right; flex-shrink: 0; }
.svc-price { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--green); white-space: nowrap; }
.svc-dur { font-size: 13px; color: var(--muted); }
.svc-lead { color: var(--muted); margin-top: 8px; font-size: 1rem; }
.svc details { margin-top: 10px; }
.svc summary { cursor: pointer; color: var(--turq-dk); font-weight: 700; font-size: 14px; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after { content: "+"; font-weight: 700; }
.svc details[open] summary::after { content: "–"; }
.svc details p { font-size: .95rem; color: var(--muted); margin-top: 12px; line-height: 1.7; }
@media (max-width: 600px){ .svc-top { flex-direction: column; } .svc-meta { text-align: left; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: start; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.section.cream .review { background: #fff; }
.review .stars { color: #e2b53d; letter-spacing: 3px; margin-bottom: 12px; }
.review p { font-size: 1.02rem; line-height: 1.7; }
.review .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.review .av { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); }
.review .who b { display: block; font-size: 15px; }
.review .who span { font-size: 13px; color: var(--muted); }
.review.full { grid-column: span 3; }
@media (max-width: 900px){ .reviews { grid-template-columns: 1fr; } .review.full { grid-column: span 1; } }

/* ---------- Stats / CTA band ---------- */
.band { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.band .stat b { font-family: var(--font-head); font-size: clamp(2.2rem,5vw,3.4rem); color: var(--turq); display: block; }
.band .stat span { font-size: 14px; letter-spacing: .04em; color: rgba(255,255,255,.78); }
@media (max-width: 700px){ .band { grid-template-columns: repeat(2,1fr); gap: 30px; } }

.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(2.1rem,5vw,3.4rem); margin-bottom: 14px; }
.cta-final p { color: var(--muted); max-width: 40em; margin: 0 auto 28px; font-size: 1.12rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px,5vw,60px); align-items: start; }
.contact-info { display: grid; gap: 22px; }
.cinfo { display: flex; gap: 16px; align-items: flex-start; }
.cinfo .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--turq-soft); color: var(--turq-dk); display: grid; place-items: center; flex-shrink: 0; }
.cinfo .ico svg { width: 22px; height: 22px; }
.cinfo h4 { font-family: var(--font-body); font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.cinfo p, .cinfo a { font-size: 1.05rem; }
.cinfo a:hover { color: var(--green); }
.hours { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours td:last-child { text-align: right; font-weight: 700; }
.hours tr.closed td:last-child { color: #b14b4b; }
.hours tr.today td { color: var(--green); font-weight: 800; }
.cinfo.booking { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.mero-book { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.mero-qr { text-align: center; }
.mero-qr img { width: 116px; height: 116px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px; }
.mero-qr figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 420px; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 150px 0 60px; background: var(--cream); text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem,6vw,4rem); margin: 14px 0 12px; }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 40em; margin: 0 auto; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin: 34px 0 12px; color: var(--green); }
.legal h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--turq-dk); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; margin-bottom: 44px; }
.footer-brand b { font-family: var(--font-head); font-size: 24px; color: #fff; }
.footer-brand p { margin-top: 12px; font-size: 14px; line-height: 1.7; }
.footer h5 { color: #fff; font-family: var(--font-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer a { display: block; padding: 6px 0; font-size: 14.5px; transition: color .2s; }
.footer a:hover { color: var(--turq); }
.footer .ig { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.footer-legal-links a { display: inline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: var(--turq); }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px){ .footer-grid { grid-template-columns: 1fr; } }

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

/* ---------- Floating actions ---------- */
/* WhatsApp is fixed/visible on every screen; call + Instagram only on mobile. */
.float-cta { position: fixed; right: 16px; bottom: 16px; z-index: 95; display: flex; flex-direction: column; gap: 12px; }
.float-cta a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); color: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.float-cta a:hover { transform: translateY(-3px) scale(1.04); }
.float-cta .wa { background: #25d366; }
.float-cta .call { background: var(--green); display: none; }
.float-cta .ig { background: var(--turq); display: none; }
.float-cta svg { width: 26px; height: 26px; }

/* ---------- Mobile menu backdrop ---------- */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 99; background: rgba(15,30,27,.5);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.nav-backdrop.show { opacity: 1; visibility: visible; }

@media (max-width: 820px){
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(82vw, 330px); background: #fff; flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 22px; transform: translateX(100%);
    transition: transform .35s cubic-bezier(.16,1,.3,1); box-shadow: var(--shadow); padding: 96px 40px 40px; z-index: 105; }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 21px; opacity: 1; }
  /* keep menu links readable on the white panel — even over the hero */
  .nav-links a,
  .nav.over-hero:not(.scrolled) .nav-links a { color: var(--ink); opacity: 1; }
  .nav-links a.active,
  .nav-links a:hover,
  .nav.over-hero:not(.scrolled) .nav-links a.active,
  .nav.over-hero:not(.scrolled) .nav-links a:hover { color: var(--green); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; z-index: 110; }
  .nav .nav-cta .btn { display: none; }
  /* never hide the header (and its toggle) while the menu is open */
  .nav.menu-open.hide { transform: translateY(0); }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce){
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-layer { transition: none; }
  * { scroll-behavior: auto; }
}
