/* Studio Nuanță, salon de frumusețe, Chișinău. Premium v2.
   Palette: cold-neutral paper + near-black ink + one saturated berry accent.
   Signature: the shade card, grown into the page's structural device
   (named ribbon, section marks, the before/after tonare slider).
   Type: Yeseva One in three display tiers vs small PT Sans body.
   Grade: one cool editorial filter on every photograph, 4:5 per grid. */

:root {
  --ink: #19181D;
  --paper: #F1F0F2;
  --paper-2: #E7E5E9;
  --line: #D6D3D8;
  --accent: #C31556;
  --accent-dark: #970F41;
  --accent-bright: #E0286F; /* accent for display type on ink (3.9:1, large only) */
  --rose: #E7A9C1;          /* hover tint for small text on ink (8.9:1) */
  --muted: #605E67;        /* small text on paper, AA */
  --muted-on-ink: #A3A1AA; /* small text on ink, AA */

  --font-display: 'Yeseva One', Georgia, 'Times New Roman', serif;
  --font-body: 'PT Sans', Arial, Helvetica, sans-serif;

  /* One photographic grade for every image: cool, contrasty, tamed saturation. */
  --grade: contrast(1.07) saturate(0.86) brightness(1.02);

  --size-display-xl: clamp(3.5rem, 9.5vw, 8.5rem); /* was 2.75rem; 3.9rem overflowed "manichiură." in its overflow:hidden hero at 390px, 3.5rem is the largest that fits */
  --size-display-l: clamp(2.3rem, 5vw, 4.25rem);
  --size-display-m: clamp(1.6rem, 2.6vw, 2.4rem);

  --radius-pill: 4px; /* was 999px; guardrail wants sharp/barely-rounded controls, not pills */
  --radius-chip: 3px;

  --gap: 1.5rem;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* height:auto keeps the width/height attributes as CLS hints only,
   so CSS aspect-ratio crops actually apply. */
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-chip) 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Header (dark, bookends the dark contact band) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
}

#top, #servicii, #echipa, #galerie, #contact {
  scroll-margin-top: 80px;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  margin-right: auto;
}
.brand-name { font-family: var(--font-display); font-size: 1.1rem; }
.brand-tagline { font-size: 0.68rem; color: var(--muted-on-ink); }

.site-nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.95rem;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--rose); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-phone {
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
/* Desktop-only: enlarge the tap target without shifting the 68px header row
   (mobile-nav-panel's .header-phone already clears 40px via its own padding). */
.header-actions .header-phone {
  padding-block: 0.5rem;
  margin-block: -0.5rem;
}
.site-header .header-phone:hover { color: var(--rose); }

.lang-switch {
  display: flex;
  border: 1px solid #47454E;
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.75rem;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}

.mobile-nav { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-hero { font-size: 1.05rem; padding: 1rem 2rem; }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid var(--paper);
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }

/* ---------- Reveal motion ----------
   Hidden-by-default only once JS has proven it can reveal content again
   (html.js from the inline head script). No-JS/print/static capture stays visible. */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Choreographed children: shade ribbon chips, portraits, gallery tiles. */
html.js .shade-ribbon li,
html.js .master,
html.js .g-item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
html.js .is-visible .shade-ribbon li,
html.js .is-visible .master,
html.js .is-visible .g-item {
  opacity: 1;
  transform: none;
}
html.js .shade-ribbon li { transition-delay: calc(var(--i, 0) * 45ms); }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js .shade-ribbon li,
  html.js .master,
  html.js .g-item {
    opacity: 1; transform: none; transition: none;
  }
}

/* ---------- Hero: one committed full-bleed image, one line, one CTA ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--grade);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 14, 18, 0.85) 0%, rgba(15, 14, 18, 0.42) 45%, rgba(15, 14, 18, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
}

.hero-headline {
  color: var(--paper);
  font-size: var(--size-display-xl);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  overflow-wrap: break-word; /* hero has overflow:hidden, so a too-long word would silently vanish instead of wrapping */
}
.hero-line { display: block; }
.hero-line-accent { color: var(--accent-bright); }

/* Page-load choreography: the three lines rise in sequence, then the CTA. */
html.js .hero-line {
  animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
html.js .hero-line:nth-child(1) { animation-delay: 0.05s; }
html.js .hero-line:nth-child(2) { animation-delay: 0.16s; }
html.js .hero-line:nth-child(3) { animation-delay: 0.27s; }
html.js .btn-hero {
  animation: hero-fade 0.6s ease-out 0.5s backwards;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .hero-line, html.js .btn-hero { animation: none; }
}

/* ---------- Signature: the shade card, full-width and named ---------- */

.signature {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
}

.shade-ribbon {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.6rem;
}
.shade-ribbon li { min-width: 0; }
.chip {
  display: block;
  height: 56px;
  border-radius: var(--radius-chip);
  background: var(--c);
}
.chip-light { border: 1px solid var(--line); }
.chip-name {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signature-caption {
  max-width: 30ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.25;
  color: var(--ink);
}
.signature-sub {
  max-width: 52ch;
  margin: 1.5rem auto 0;
  color: #3a383f;
  font-size: 1.02rem;
}
.signature-meta {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Section furniture ---------- */

.services h2, .team h2, .gallery h2, .reviews h2, .ba h2, .contact h2 {
  font-size: var(--size-display-l);
  letter-spacing: -0.01em;
}

/* ---------- Services: fine-dining price sheet ---------- */

.services {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.section-head { margin-bottom: 2.75rem; max-width: 62ch; }
.section-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.92rem; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4rem;
}

.svc-cat + .svc-cat { margin-top: 3rem; }

.svc-cat h3 {
  font-size: var(--size-display-m);
  margin-bottom: 1.25rem;
}

.svc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.svc-list li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  row-gap: 0.3rem;
  column-gap: 0.6rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.svc-list li:last-child { border-bottom: none; }
.svc-name { flex: 0 1 auto; }
.svc-dur { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.svc-leader { display: none; } /* was a dotted leader; twinned the cafe menu device, now a plain tariff row */
.svc-price { margin-left: auto; font-weight: 700; white-space: nowrap; padding-left: 1rem; }

/* ---------- Before / after: the tonare slider ---------- */

.ba {
  background: var(--paper-2);
}
.ba-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.ba-text {
  margin: 1.5rem 0 0;
  max-width: 44ch;
  font-size: 1.05rem;
}
.ba-fact {
  margin: 1.75rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.ba-fact span:first-child { font-weight: 700; color: var(--ink); }

.ba-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-chip);
  --pos: 50%;
}
.ba-frame:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.ba-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-after-img { filter: var(--grade) saturate(1.3) contrast(1.08); }
.ba-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-before-wrap img { filter: saturate(0.3) contrast(0.92) brightness(1.08); }

.ba-tag {
  position: absolute;
  top: 0.9rem;
  z-index: 2;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--paper);
  background: rgba(25, 24, 29, 0.72);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-chip);
  pointer-events: none;
}
.ba-tag-before { left: 0.9rem; }
.ba-tag-after { right: 0.9rem; }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 2;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--ink);
}

.ba-range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* ---------- Team: portrait-editorial, offset pair columns ---------- */

.team {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 5rem;
}
.team h2 { margin-bottom: 2.5rem; }

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem 2.5rem;
  padding-bottom: 4rem; /* absorbs the offset column */
}
.master:nth-child(even) { margin-top: 4rem; margin-bottom: -4rem; }

.master-photo {
  overflow: hidden;
  border-radius: var(--radius-chip);
}
.master-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: var(--grade);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.master:hover .master-photo img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .master-photo img { transition: none; }
  .master:hover .master-photo img { transform: none; }
}

.master-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  margin: 1.2rem 0 0.3rem;
}
.master-role { margin: 0 0 0.4rem; font-size: 0.87rem; color: var(--muted); }
.master-note { margin: 0; font-size: 0.95rem; }

/* ---------- Gallery: one crop, one grade, four works ---------- */

.gallery {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 5rem;
}
.gallery h2 { margin-bottom: 2.5rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.g-item {
  overflow: hidden;
  border-radius: var(--radius-chip);
}
.g-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: var(--grade);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.g-item:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .g-item img { transition: none; }
  .g-item:hover img { transform: none; }
}

/* ---------- Amenities ---------- */

.amenities {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.amenities h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 1.5rem; }

.amenities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
}
.amenities-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.98rem;
}
.amenity-mark {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: var(--radius-chip);
  flex-shrink: 0;
}

/* ---------- Reviews: one lead voice, two seconds ---------- */

.reviews {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem 5.5rem;
}
.reviews h2 { margin-bottom: 2.5rem; }

.reviews blockquote { margin: 0; }
.reviews footer { font-size: 0.85rem; color: var(--muted); }

.review-lead {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0;
}
.review-lead p {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.4;
  max-width: 46ch;
}

.reviews-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.9rem 0;
}
.reviews-pair p { margin: 0 0 0.75rem; font-size: 1rem; max-width: 52ch; }

/* ---------- Contact / footer band ---------- */

.contact {
  background: var(--ink);
  color: var(--paper);
}
.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem 3rem;
}
.contact-primary { grid-column: 1; }
.contact h2 { margin-bottom: 1.5rem; }

.phone-huge {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.05;
  color: var(--paper);
  text-decoration: none;
  margin-bottom: 1.75rem;
}
.phone-huge:hover { color: var(--rose); }

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.walkin-note {
  margin-top: 1.5rem;
  max-width: 50ch;
  font-size: 0.9rem;
  color: #C7C5CA;
}

.contact-details {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-on-ink);
  margin: 0 0 0.3rem;
}
.contact-block p { margin: 0.15rem 0; }
.contact-details a { text-decoration: underline; text-decoration-color: var(--accent); }

.contact-map {
  grid-column: 1 / -1;
  border: 1px solid #35333a;
  position: relative;
  background: var(--paper);
  min-height: 320px;
}
.contact-map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.contact-map iframe { display: block; position: relative; z-index: 1; }

.site-footer {
  border-top: 1px solid #35333a;
}
.site-footer p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  font-size: 0.85rem;
  color: #C7C5CA;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
}
.site-footer .brand-name { font-size: 0.9rem; }
.site-footer a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  color: inherit;
  padding-block: 0.6rem;
  margin-block: -0.6rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .site-nav, .header-actions { display: none; }
  .mobile-nav { display: block; margin-left: auto; }
  .mobile-nav summary {
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    padding: 0.5rem 0.9rem;
    border: 1px solid #47454E;
    border-radius: var(--radius-pill);
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav-panel {
    position: absolute;
    right: 1.5rem;
    top: 64px;
    background: var(--ink);
    border: 1px solid #47454E;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.5rem;
    min-width: 210px;
  }
  .mobile-nav-panel a { text-decoration: none; padding: 0.5rem; }
  .mobile-nav-panel .lang-switch { align-self: flex-start; margin: 0.25rem 0 0; }
  .mobile-nav-panel .lang-switch button { padding: 0.8rem 0.9rem; font-size: 0.85rem; }

  .hero { min-height: 78vh; min-height: 78svh; }
  .hero-content { padding-bottom: 2.5rem; }

  .signature { padding-top: 3.5rem; }
  .shade-ribbon { grid-template-columns: repeat(5, 1fr); }
  .chip { height: 44px; }

  .services-grid { grid-template-columns: 1fr; }
  .services-col + .services-col .svc-cat:first-child {
    margin-top: 3rem;
  }

  .ba-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 1.5rem; }

  .team-grid { grid-template-columns: 1fr; gap: 3rem; padding-bottom: 0; }
  .master:nth-child(even) { margin-top: 0; margin-bottom: 0; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }

  .reviews-pair { grid-template-columns: 1fr; gap: 1.75rem; }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-primary, .contact-details { grid-column: 1; }
}

@media (max-width: 560px) {
  .header-inner { height: 60px; }
  .chip-name { font-size: 0.6rem; }
  .gallery-grid { gap: 0.75rem; }
  .phone-huge { line-height: 1.15; } /* nudges the min-clamp size past the 40px tap-target floor */
}
