/* ============================================================
   FLAD.ro — Noi Patru
   Stil principal: cald, luminos, „storybook”
   ============================================================ */

:root {
  /* Paletă caldă, dar cu profunzime: crem luminos, teracotă vie, chihlimbar.
     Față de varianta veche („carton mat”) culorile au mai multă lumină în ele,
     iar suprafețele sunt din sticlă, nu opace. */
  --cream:      #FDF7EE;
  --cream-2:    #F6EBDA;
  --paper:      #FFFCF6;
  --ink:        #2E231C;
  --ink-soft:   #6A584B;
  --terracotta: #C4552F;
  --terracotta-d:#9E3D1E;
  --honey:      #E3A63C;
  --honey-soft: #F7E4BA;
  --sage:       #7A8C5E;
  --sage-soft:  #DCE5CD;
  --line:       #E9DCC6;
  --gold:       #B4822F;
  --plum:       #7E4B57;   /* accent rar, pentru contraste calde */

  /* ── Sistemul de sticlă (glassmorphism) ─────────────────── */
  --glass:        rgba(255, 253, 248, .60);
  --glass-2:      rgba(255, 253, 248, .34);
  --glass-brd:    rgba(255, 255, 255, .72);
  --glass-blur:   blur(16px) saturate(1.45);
  --glass-shadow: 0 10px 30px rgba(74, 48, 25, .10), 0 2px 6px rgba(74, 48, 25, .05),
                  inset 0 1px 0 rgba(255, 255, 255, .75);
  --glass-shadow-lg: 0 26px 64px rgba(58, 38, 20, .20), inset 0 1px 0 rgba(255, 255, 255, .55);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(58,46,39,.07);
  --shadow:    0 10px 30px rgba(58,46,39,.10);
  --shadow-lg: 0 24px 60px rgba(58,46,39,.18);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1140px;
}

* { box-sizing: border-box; }

/* atributul hidden trebuie să câștige în fața regulilor de display */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

/* Elementele care intră în pagină vin de lateral, deci tăiem orice depășire pe
   orizontală. Folosim „clip”, nu „hidden”: hidden ar transforma body-ul într-un
   container de derulare și ar strica bara de sus (position: sticky). */
body {
  overflow-x: clip;
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }
.dot { opacity: .5; margin: 0 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.row { display: flex; gap: 12px; align-items: center; }
.row--wrap { flex-wrap: wrap; }
.gap-lg { gap: 26px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ─────────────────  Butoane  ───────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  text-decoration: none; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--ink); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.btn--primary:hover { background: var(--terracotta-d); border-color: var(--terracotta-d); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--gold); color: #7a5a20; }
.btn--ghost:hover { background: rgba(185,138,60,.08); color: #5f4517; }
.btn--small { padding: 8px 16px; font-size: .88rem; }
.btn--tiny { padding: 5px 11px; font-size: .8rem; border-radius: 8px; box-shadow: none; }
.btn--danger { border-color: #d9a08f; color: #a5341a; background: #fff6f3; }
.btn--danger:hover { background: #ffe9e2; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--paper); cursor: pointer; font-size: 1rem; line-height: 1;
  text-decoration: none; transition: background .2s, transform .12s;
}
.btn-icon:hover { background: var(--honey-soft); transform: translateY(-1px); }

/* ─────────────────  Antet  ───────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,246,236,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px;
}
.topbar__thread {
  height: 3px; background: linear-gradient(90deg, transparent, var(--honey), var(--terracotta), var(--sage), transparent);
  opacity: .55;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand__logo { width: 52px; height: 52px; filter: drop-shadow(0 3px 6px rgba(58,46,39,.25)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--font-display); font-size: 1.22rem; letter-spacing: .02em; }
.brand__text em { font-style: normal; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-soft);
  font-weight: 600; font-size: .93rem; transition: background .2s, color .2s;
}
.nav a:hover { background: var(--honey-soft); color: var(--ink); }
.nav a.is-current { background: var(--terracotta); color: #fff; }
.nav__extra { display: flex; gap: 6px; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ─────────────────  Hero  ───────────────── */
.hero { position: relative; overflow: hidden; padding: 60px 0 40px; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background: radial-gradient(60% 60% at 50% 30%, rgba(217,164,65,.28), transparent 70%),
              radial-gradient(40% 40% at 75% 20%, rgba(194,91,58,.16), transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 46px; align-items: center;
}
.hero__logo {
  width: 100%; max-width: 420px; margin: 0 auto;
  filter: drop-shadow(0 22px 38px rgba(58,46,39,.28));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
.hero__kicker { text-transform: uppercase; letter-spacing: .3em; font-size: .74rem; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.hero__title { font-size: clamp(2.2rem, 5.4vw, 3.6rem); margin-bottom: .35em; }
.hero__subtitle { font-size: 1.12rem; color: var(--ink-soft); max-width: 54ch; }
.hero__motto { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--terracotta-d); }
.hero__cta { margin: 22px 0 18px; }

/* ── Pomul de toamnă din fundalul headerului ───────────────── */
.hero__inner { z-index: 1; }
.autumn-tree {
  /* ── Reglaje rapide ─────────────────────────────────────────
     Vrei pomul mai vizibil, mai mic sau mutat? Schimbi doar liniile de mai jos,
     în style.css, la regula .autumn-tree:                                */
  --tree-opacity: .62;   /* cât de vizibil e: .3 = abia se vede, 1 = puternic */
  --tree-width: clamp(300px, 40%, 540px);   /* cât de lat e pomul            */
  --tree-left: -3%;      /* cât de mult iese în stânga (valori negative)     */

  position: absolute;
  left: var(--tree-left);
  bottom: -18px;
  width: var(--tree-width);
  z-index: 0;
  pointer-events: none;          /* nu încurcă niciun clic */
  opacity: var(--tree-opacity);  /* decor discret, textul rămâne rege */
  filter: saturate(1.05);
}
.autumn-tree__svg { display: block; width: 100%; height: auto; }

/* Pe tabletă și telefon, unde așezarea se pune pe o singură coloană, pomul
   se mută în spatele emblemei: așa nu trece prin text și nu îngreunează citirea. */
@media (max-width: 1000px) {
  .autumn-tree {
    --tree-opacity: .5;
    top: 14px;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(250px, 70%, 380px);
  }
}

/* legănare lină: tot pomul pleacă din rădăcină */
.tree-sway {
  transform-box: view-box;
  transform-origin: 210px 402px;
  animation: treeSway 11s ease-in-out infinite;
  will-change: transform;
}
@keyframes treeSway {
  0%, 100% { transform: rotate(-.75deg) }
  50%      { transform: rotate(.75deg) }
}

/* coroana se mișcă puțin mai mult și decalat față de trunchi —
   așa se simte vântul, nu un bloc rigid */
.tree-cluster {
  transform-box: view-box;
  transform-origin: 210px 170px;
  animation: clusterSway 7.5s ease-in-out infinite;
}
.tree-cluster--2 { animation-duration: 8.8s; animation-delay: -2.3s; }
.tree-cluster--3 { animation-duration: 6.9s; animation-delay: -4.1s; }
@keyframes clusterSway {
  0%, 100% { transform: rotate(-1.15deg) translateX(-1.4px) }
  35%      { transform: rotate(.5deg)   translateX(1.6px) }
  70%      { transform: rotate(1.1deg)  translateX(2.6px) }
}

/* frunza care cade: coboară în zig-zag ușor și se topește la bază */
.leaf-fall {
  transform-box: view-box;
  animation: leafFall var(--dur, 12s) linear var(--delay, 0s) infinite;
  opacity: 0;
  will-change: transform, opacity;
}
@keyframes leafFall {
  0%   { transform: translate(var(--fx), var(--fy)) rotate(var(--r0)); opacity: 0 }
  7%   { opacity: .95 }
  25%  { transform: translate(calc(var(--fx) + var(--d1)), calc(var(--fy) + var(--h) * .26)) rotate(calc(var(--r0) + 95deg)) }
  50%  { transform: translate(calc(var(--fx) + var(--d2)), calc(var(--fy) + var(--h) * .55)) rotate(calc(var(--r0) + 185deg)) }
  75%  { transform: translate(calc(var(--fx) + var(--d3)), calc(var(--fy) + var(--h) * .82)) rotate(calc(var(--r0) + 275deg)) }
  93%  { opacity: .8 }
  100% { transform: translate(calc(var(--fx) + var(--d4)), calc(var(--fy) + var(--h))) rotate(calc(var(--r0) + 360deg)); opacity: 0 }
}

.together { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-left: 3px solid var(--honey); background: rgba(240,221,180,.35); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.together__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold); font-weight: 700; }
.together__value { font-family: var(--font-display); font-size: 1.05rem; }
.together__value b { color: var(--terracotta-d); }

/* ─────────────────  Banda cu statistici  ───────────────── */
.strip { background: var(--ink); color: #F6EEDF; padding: 20px 0; }
.strip__inner { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--honey); }
.stat span { font-size: .78rem; letter-spacing: .04em; opacity: .82; }

/* ─────────────────  Secțiuni  ───────────────── */
.section { padding: 66px 0; }
.section--alt { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.section__head { max-width: 72ch; margin-bottom: 34px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section__title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .35em; }
.section__title--spaced { margin-top: 46px; }
.section__lead { color: var(--ink-soft); }

.pagehead { padding: 46px 0 10px; }
.pagehead__kicker { text-transform: uppercase; letter-spacing: .3em; font-size: .72rem; color: var(--gold); font-weight: 700; }
.pagehead__title { margin-bottom: .3em; }
.pagehead__lead { color: var(--ink-soft); max-width: 70ch; }
.pagehead--404 { padding-bottom: 60px; }

/* ─────────────────  Grilă & carduri  ───────────────── */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--quiz { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); align-items: start; }
.grid--guest, .grid--contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.memory-card__media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--cream-2); }
.memory-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.memory-card:hover .memory-card__media img { transform: scale(1.04); }
.memory-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.memory-card__meta { font-size: .82rem; color: var(--ink-soft); margin: 0; }
.memory-card__title { font-size: 1.18rem; margin: 0; }
.memory-card__title a { text-decoration: none; color: inherit; }
.memory-card__title a:hover { color: var(--terracotta); }
.memory-card__excerpt { font-size: .93rem; color: var(--ink-soft); margin: 0; flex: 1; }
.memory-card__foot { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 10px; }
.memory-card__author { font-weight: 600; }
.memory-card__stats { display: flex; gap: 8px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--honey-soft); color: #6d4f14; border: 1px solid rgba(185,138,60,.35); text-decoration: none;
}
.chip--link { transition: background .2s, transform .12s; }
.chip--link:hover { background: var(--honey); color: #fff; transform: translateY(-1px); }
.chip--link.is-active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.chip--soft { background: rgba(126,143,99,.16); border-color: rgba(126,143,99,.35); color: #4d5a3a; }
.chip--on-media { position: absolute; left: 12px; top: 12px; background: rgba(255,253,248,.94); }
.chip b { font-weight: 700; opacity: .75; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 6px 0 14px; }
.tag { background: rgba(126,143,99,.14); border: 1px solid rgba(126,143,99,.3); color: #4d5a3a; padding: 3px 11px; border-radius: 999px; font-size: .8rem; }

/* ─────────────────  Panouri  ───────────────── */
.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.panel--warm { background: linear-gradient(160deg, #FFF7E8, #FDEFDC); border-color: #EBD6B4; }
.panel--quiz { background: linear-gradient(160deg, #FFF6E6, #F8E9CE); }
.panel__title { font-size: 1.3rem; margin-bottom: .45em; }
.panel__meta { font-size: .92rem; color: var(--ink-soft); }
.facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.facts span { flex: 0 0 auto; }

.mini-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.mini-list li { display: flex; gap: 10px; font-size: .92rem; }
.mini-list__mood { font-size: 1.1rem; }
.mini-list em { font-style: normal; font-size: .82rem; }

/* ─────────────────  Cei patru  ───────────────── */
.member-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.member-strip__item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .25s ease;
  border-top: 4px solid var(--accent, var(--terracotta));
}
.member-strip__item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.member-strip__avatar { font-size: 2.4rem; display: block; margin-bottom: 6px; }
.member-strip__item strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.member-strip__item em { display: block; font-style: normal; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, var(--terracotta)); font-weight: 700; }
.member-strip__age { display: block; margin-top: 8px; font-size: .85rem; color: var(--ink-soft); }

.member-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px 24px; box-shadow: var(--shadow-sm); border-top: 5px solid var(--accent, var(--terracotta));
  scroll-margin-top: 100px; height: 100%;
}
.member-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.member-card__avatar { font-size: 2.6rem; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, white); border: 2px solid color-mix(in srgb, var(--accent) 40%, white); }
.member-card__name { margin: 0; font-size: 1.5rem; }
.member-card__role { margin: 0; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent, var(--terracotta)); font-weight: 700; }
.member-card__tagline { font-family: var(--font-display); font-style: italic; color: var(--ink-soft); }
.member-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); text-align: center; }
.member-card__stats b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--accent, var(--terracotta)); }
.member-card__stats span { font-size: .74rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.member-card__bio { font-size: .96rem; }
.member-card__power { background: rgba(217,164,65,.13); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; margin-bottom: 0; }
.favorites { margin: 0 0 14px; display: grid; gap: 6px; font-size: .9rem; }
.favorites div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.favorites dt { color: var(--ink-soft); font-weight: 600; }
.favorites dd { margin: 0; }
.member-wrap__links { display: flex; gap: 14px; flex-wrap: wrap; font-size: .88rem; margin: 10px 2px 0; }

.story { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.story__aside { text-align: center; }
.story__seal { margin: 0 auto 14px; opacity: .92; filter: drop-shadow(0 12px 20px rgba(58,46,39,.2)); }
.story__text p { font-size: 1.04rem; }
.story__text p:first-child::first-letter {
  font-family: var(--font-display); font-size: 3.4rem; float: left; line-height: .8;
  padding: 6px 10px 0 0; color: var(--terracotta);
}

.rules { list-style: none; counter-reset: r; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.rules li { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--honey); border-radius: var(--radius-sm); padding: 16px 18px 16px 60px; position: relative; font-size: .96rem; }
.rules li span {
  position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--honey-soft); color: #6d4f14; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display);
}

/* ─────────────────  Colțul lui Luna  ───────────────── */
.luna-corner { background: linear-gradient(180deg, var(--cream), #F3E7D2); }
.luna-corner__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.luna-corner__photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.luna-facts { list-style: none; padding: 0; display: grid; gap: 10px; }
.luna-facts li { display: flex; gap: 12px; align-items: baseline; font-size: .98rem; }
.luna-facts b { font-family: var(--font-display); font-size: 1.6rem; color: var(--terracotta-d); min-width: 46px; text-align: right; }
.luna-quote {
  border-left: 3px solid var(--gold); margin: 20px 0; padding: 6px 0 6px 18px;
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ink-soft);
  min-height: 56px;
}
.luna-quote.is-new { animation: pop .5s ease; }
@keyframes pop { from { opacity: .2; transform: translateY(6px) } to { opacity: 1; transform: none } }

/* ─────────────────  Filtre  ───────────────── */
.filters { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.filters__group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); font-weight: 700; }
.filters__search { display: flex; gap: 8px; }
.filters__search--page { margin-top: 18px; }
input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], textarea, select {
  font: inherit; font-size: .96rem; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); width: 100%;
}
input:focus-visible, textarea:focus-visible, select:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(217,164,65,.55); outline-offset: 2px;
}
.cats { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 30px; }

/* ─────────────────  Galerie  ───────────────── */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.gallery--small { grid-template-columns: repeat(5, 1fr); }
.gallery__item {
  position: relative; padding: 0; border: 0; background: var(--cream-2); border-radius: var(--radius-sm);
  overflow: hidden; cursor: zoom-in; aspect-ratio: 1/1; display: block; box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__meta {
  position: absolute; inset: auto 0 0 0; padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(30,22,16,.82)); color: #FBF6EC;
  text-align: left; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.gallery__item:hover .gallery__meta, .gallery__item:focus-visible .gallery__meta { opacity: 1; transform: none; }
.gallery__meta strong { font-size: .92rem; }
.gallery__meta em { font-style: normal; font-size: .76rem; opacity: .85; }

/* ─────────────────  Amintire (detalii)  ───────────────── */
.memory__head { padding: 40px 0 6px; }
.breadcrumb { font-size: .84rem; color: var(--ink-soft); margin-bottom: 10px; }
.memory__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .88rem; color: var(--ink-soft); }
.memory__excerpt { font-family: var(--font-display); font-style: italic; font-size: 1.16rem; color: var(--ink-soft); max-width: 74ch; }
.memory__figure { max-width: 980px; margin: 20px auto 34px; padding: 0 20px; }
.memory__figure img { border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; }
.memory__body { max-width: 780px; }
.memory__body > p { font-size: 1.07rem; }
.memory__body > p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 3.6rem; float: left; line-height: .78;
  padding: 8px 12px 0 0; color: var(--terracotta);
}
.memory__actions { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; margin: 34px 0; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.reactions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reactions__label { font-size: .86rem; color: var(--ink-soft); }
.reaction {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font: inherit;
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px;
  transition: transform .15s ease, background .2s, border-color .2s;
}
.reaction:hover { transform: translateY(-2px) scale(1.03); border-color: var(--honey); }
.reaction.is-active { background: var(--honey-soft); border-color: var(--gold); }
.reaction.is-bump .reaction__emoji { animation: bump .45s ease; }
@keyframes bump { 0% { transform: scale(1) } 40% { transform: scale(1.5) rotate(-8deg) } 100% { transform: scale(1) } }
.reaction__count { font-weight: 700; font-size: .88rem; color: var(--ink-soft); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.memory__nav { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.memory__nav-item { text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; max-width: 320px; background: var(--paper); transition: border-color .2s, transform .15s; }
.memory__nav-item:hover { border-color: var(--honey); transform: translateY(-2px); }
.memory__nav-item small { display: block; color: var(--ink-soft); font-size: .78rem; }
.memory__nav-item strong { font-family: var(--font-display); }
.memory__nav-item--prev { text-align: right; margin-left: auto; }

/* ─────────────────  Cronologie  ───────────────── */
.timeline { position: relative; margin-top: 30px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--honey), var(--terracotta), var(--sage)); opacity: .5; border-radius: 2px; }
.timeline__year { margin: 26px 0 14px; }
.timeline__year span {
  display: inline-block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  background: var(--ink); color: var(--honey); padding: 4px 16px; border-radius: 999px; letter-spacing: .08em;
}
.tl-item { position: relative; margin-bottom: 16px; }
.tl-item__icon {
  position: absolute; left: -46px; top: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent, var(--terracotta)); display: grid; place-items: center; font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.tl-item__body { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent, var(--terracotta)); border-radius: var(--radius-sm); padding: 16px 20px; }
.tl-item__body time { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 700; }
.tl-item__body h3 { font-size: 1.2rem; margin: 4px 0 6px; }
.tl-item__body p { margin: 0 0 8px; font-size: .95rem; color: var(--ink-soft); }
.tl-item__who { font-size: .84rem; text-decoration: none; }
.tl-item--plan .tl-item__body { border-style: dashed; background: #FFFBF2; }
.timeline__cta { margin-top: 28px; }

/* ─────────────────  Quiz  ───────────────── */
.quiz { position: sticky; top: 96px; }
.quiz__bar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: .86rem; color: var(--ink-soft); }
.quiz__progress { flex: 1; height: 9px; background: var(--cream-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.quiz__progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--honey), var(--terracotta)); transition: width .35s ease; }
.quiz__question { font-size: clamp(1.25rem, 2.6vw, 1.7rem); }
.quiz__options { display: grid; gap: 10px; margin: 18px 0; }
.quiz-option {
  text-align: left; font: inherit; font-size: 1rem; cursor: pointer;
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; display: flex; gap: 12px; align-items: center;
  transition: background .18s, border-color .18s, transform .12s;
}
.quiz-option:hover:not(:disabled) { border-color: var(--honey); background: #FFF8EA; transform: translateX(3px); }
.quiz-option:disabled { cursor: default; }
.quiz-option b { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; background: var(--honey-soft); color: #6d4f14; font-family: var(--font-display); }
.quiz-option.is-correct { background: #EAF3E2; border-color: #8DB06A; }
.quiz-option.is-correct b { background: #8DB06A; color: #fff; }
.quiz-option.is-wrong { background: #FBEBE5; border-color: #D98A6E; }
.quiz-option.is-wrong b { background: #D98A6E; color: #fff; }
.quiz__feedback { margin: 0 0 16px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--cream-2); border-left: 4px solid var(--honey); font-size: .96rem; }
.quiz__feedback.is-ok { border-color: #8DB06A; background: #EFF6E8; }
.quiz__feedback.is-no { border-color: #D98A6E; background: #FDF0EB; }
.quiz__result { text-align: center; }
.quiz__result-emoji { font-size: 3.4rem; margin: 0; }
.quiz__result-score { font-family: var(--font-display); font-size: 1.6rem; }
.quiz__save { margin: 22px 0; padding: 18px; background: var(--cream); border-radius: var(--radius-sm); border: 1px dashed var(--line); text-align: left; }
.quiz__save label { display: block; margin-bottom: 10px; font-weight: 600; font-size: .94rem; }

.board { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.board li { display: flex; align-items: center; gap: 10px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 14px; font-size: .92rem; }
.board__rank { font-family: var(--font-display); font-weight: 700; color: var(--terracotta); width: 22px; }
.board__name { flex: 1; font-weight: 600; }
.board__score { font-weight: 700; color: var(--sage); }
.board__when { font-style: normal; font-size: .78rem; color: var(--ink-soft); }
.board li:first-child { background: linear-gradient(120deg, #FFF4DE, #FFE9C4); border-color: #E7C98D; }

/* ─────────────────  Carte de oaspeți  ───────────────── */
.mood-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.mood { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer; background: var(--paper); font-size: .88rem; }
.mood input { position: absolute; opacity: 0; pointer-events: none; }
.mood em { font-style: normal; color: var(--ink-soft); }
.mood.is-checked { background: var(--honey-soft); border-color: var(--gold); }
.mood.is-checked em { color: #6d4f14; }
.mood-summary { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.guest { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.guest__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.guest__avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--honey-soft); color: #6d4f14; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.guest__head div { display: flex; flex-direction: column; }
.guest__head .muted { font-size: .82rem; }
.guest__mood { margin-left: auto; font-size: 1.2rem; }
.guest p { margin: 0; font-size: .97rem; }

/* ─────────────────  Formulare  ───────────────── */
.form__row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form label, .form__label { font-weight: 600; font-size: .92rem; }
.form__errors { list-style: none; padding: 12px 16px; margin: 0 0 18px; background: #FBEBE5; border-left: 4px solid #D98A6E; border-radius: var(--radius-sm); font-size: .92rem; display: grid; gap: 4px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-aside { display: grid; gap: 18px; align-content: start; }

/* ─────────────────  Diverse  ───────────────── */
.empty { text-align: center; padding: 48px 20px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty__emoji { font-size: 2.8rem; margin: 0 0 6px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 34px 0 10px; }
.pager__link { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); text-decoration: none; font-weight: 600; font-size: .92rem; }
.pager__link:hover { border-color: var(--honey); }
.pager__link.is-current { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.pager__info { font-size: .88rem; color: var(--ink-soft); }
.search-events { list-style: none; padding: 0; display: grid; gap: 12px; }
.search-events li { display: flex; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.search-events__icon { font-size: 1.3rem; }
.bdays { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bdays li { display: flex; align-items: center; gap: 12px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 16px; font-size: .94rem; }
.bdays__emoji { font-size: 1.2rem; }
.bdays__name { font-weight: 600; flex: 1; }
.bdays__when { color: var(--ink-soft); font-size: .86rem; }
.bdays__count { font-weight: 700; color: var(--terracotta); font-size: .86rem; }
.admin-hint { margin-top: 24px; }

/* ─────────────────  Toast & overlay  ───────────────── */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 26px; z-index: 95;
  background: var(--ink); color: #FBF6EC; padding: 13px 20px; border-radius: 999px;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-lg); font-size: .94rem;
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px) } to { opacity: 1; transform: translate(-50%, 0) } }
.toast--err { background: #8E3B22; }
.toast button { background: none; border: 0; color: inherit; font-size: 1.2rem; cursor: pointer; line-height: 1; }
.toast.is-hidden { opacity: 0; transform: translate(-50%, 10px); transition: .3s; pointer-events: none; }

.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(35,26,20,.62); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 20px; }
.overlay[hidden] { display: none; }
.overlay__box { background: var(--paper); border-radius: var(--radius); padding: 26px 28px; width: min(680px, 100%); box-shadow: var(--shadow-lg); max-height: 80vh; overflow: auto; }
.overlay__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.overlay__head h2 { font-size: 1.25rem; margin: 0; }
.overlay__form { display: flex; gap: 10px; margin: 16px 0; }
.overlay__results { display: grid; gap: 10px; }
.search-hit { display: flex; gap: 12px; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; background: var(--cream); }
.search-hit:hover { border-color: var(--honey); }
.search-hit img { width: 68px; height: 54px; object-fit: cover; border-radius: 8px; flex: 0 0 68px; }
.search-hit strong { display: block; font-family: var(--font-display); }
.search-hit small { color: var(--ink-soft); }

/* ─────────────────  Widget Luna  ───────────────── */
.luna-widget { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.luna-widget__button {
  width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--paper); cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #F0CE86, var(--gold)); font-size: 1.9rem; line-height: 1;
  box-shadow: var(--shadow); transition: transform .18s ease;
}
.luna-widget__button:hover { transform: scale(1.07) rotate(-4deg); }
.luna-widget__bubble {
  width: min(320px, 84vw); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px 16px; box-shadow: var(--shadow-lg); position: relative; animation: toastIn .25s ease;
}
.luna-widget__bubble[hidden] { display: none; }
.luna-widget__close { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--ink-soft); }
.luna-widget__avatar { font-size: 1.8rem; }
.luna-widget__line { font-size: .94rem; margin: 6px 0 12px; }
.luna-widget__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.luna-widget__note { display: block; margin-top: 10px; color: var(--ink-soft); font-size: .8rem; }

/* ─────────────────  Subsol  ───────────────── */
.footer { background: var(--ink); color: #EADFCB; margin-top: 40px; padding: 40px 0 22px; position: relative; }
.footer__tree { color: var(--honey); opacity: .5; display: flex; justify-content: center; margin-bottom: 14px; }
.footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__col h3 { color: var(--honey); font-size: 1.05rem; }
.footer__col p { font-size: .92rem; opacity: .85; }
.footer a { color: #F3E7D2; }
.footer a:hover { color: var(--honey); }
.footer__links { list-style: none; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.footer__clock strong { color: var(--honey); font-variant-numeric: tabular-nums; }
.footer__where { font-size: .9rem; }
.footer__bottom { max-width: var(--wrap); margin: 26px auto 0; padding: 16px 20px 0; border-top: 1px solid rgba(234,223,203,.2); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .84rem; opacity: .8; }
.footer__counters { display: flex; gap: 16px; }
.footer__counters b { color: var(--honey); }

/* ─────────────────  Animare la derulare  ─────────────────
   Ascundem elementele doar dacă JavaScript-ul rulează (clasa .js pe <html>),
   ca site-ul să rămână complet vizibil și fără JS. */
/* Distanța din care intră elementele; mai mică pe telefon, ca să nu iasă din ecran */
:root { --rv: 44px; }

/* Fiecare secțiune își taie propriul conținut pe orizontală: așa elementele
   intră „de după marginea secțiunii” fără să împingă pagina în lateral.
   Folosim clip, nu hidden, ca să nu stricăm elementele lipicioase (sticky). */
.section, .strip, .footer__inner { overflow-x: clip; }

.js .reveal { opacity: 0; }
.js .reveal--left  { transform: translate3d(calc(var(--rv) * -1), 0, 0); }
.js .reveal--right { transform: translate3d(var(--rv), 0, 0); }
.js .reveal--up    { transform: translate3d(0, 20px, 0); }

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .72s ease, transform .72s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal { opacity: 1; transform: none; }
  .hero__logo,
  .tree-sway, .tree-cluster, .leaf-fall { animation: none !important; }
  .leaf-fall { opacity: .9; }
  html { scroll-behavior: auto; }
}

/* ─────────────────  Responsive  ───────────────── */
@media (max-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery--small { grid-template-columns: repeat(3, 1fr); }
  .strip__inner { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .hero__inner { grid-template-columns: 1fr; gap: 26px; }
  .hero__art { order: -1; max-width: 300px; margin: 0 auto; }
  .story { grid-template-columns: 1fr; }
  .story__aside { text-align: left; }
  .story__seal { margin: 0 0 10px; width: 110px; }
  .grid--quiz, .grid--guest, .grid--contact, .luna-corner__inner { grid-template-columns: 1fr; }
  .quiz { position: static; }
  .member-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rules { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --rv: 24px; }          /* pe telefon intră de mai aproape */
  .nav-toggle { display: flex; }
  .nav {
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    width: 100%; margin: 8px 0 4px; padding: 10px; background: var(--paper);
    border: 1px solid var(--line); border-radius: var(--radius);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 14px; }
  .nav__extra { border-left: 0; padding-left: 0; margin-left: 0; padding-top: 8px; border-top: 1px solid var(--line); }
  .topbar__inner { flex-wrap: wrap; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery--small { grid-template-columns: repeat(2, 1fr); }
  .member-strip { grid-template-columns: 1fr; }
  .member-card__stats { grid-template-columns: 1fr; gap: 6px; }
  .favorites div { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
  .memory__actions { flex-direction: column; align-items: stretch; }
  .luna-widget { right: 12px; bottom: 12px; }
  .luna-widget__button { width: 54px; height: 54px; font-size: 1.6rem; }
  .timeline { padding-left: 26px; }
  .tl-item__icon { left: -38px; width: 28px; height: 28px; font-size: .85rem; }
  .bdays li { flex-wrap: wrap; gap: 6px; }
}

@media print {
  .topbar, .footer, .luna-widget, .memory__actions, .overlay, .toast { display: none !important; }
  body { background: #fff; }
  .memory__body { max-width: none; }
}

/* ============================================================
   LIMBAJ VIZUAL NOU — sticlă, lumină, forme organice
   (bloc adăugat la sfârșit, ca să calce peste regulile vechi;
    dacă vreodată vrei înapoi stilul „carton”, ștergi de aici în jos)
   ============================================================ */

/* ── 1. Fundal viu: pete de lumină care se mișcă foarte încet ────────── */
body { position: relative; }
body::before {
  content: ''; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 18% 12%, rgba(227, 166, 60, .20), transparent 62%),
    radial-gradient(34vmax 34vmax at 84% 22%, rgba(196, 85, 47, .16), transparent 62%),
    radial-gradient(30vmax 30vmax at 62% 84%, rgba(122, 140, 94, .16), transparent 62%),
    radial-gradient(26vmax 26vmax at 8% 78%,  rgba(126, 75, 87, .10), transparent 62%);
  filter: blur(30px);
  animation: auroraDrift 34s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) scale(1) }
  50%  { transform: translate3d(2.2%, -1.6%, 0) scale(1.06) }
  100% { transform: translate3d(-1.8%, 2%, 0) scale(1.02) }
}
/* secțiunile cu fundal propriu trebuie să rămână deasupra fundalului viu */
.section, .strip, .pagehead, .footer, .hero { position: relative; }

/* ── 2. Suprafețe de sticlă ─────────────────────────────────────────── */
.panel, .card, .member-card, .guest, .stat, .quiz__card,
.overlay__box, .topbar, .search__panel, .form__box {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--glass-shadow);
}
.panel, .card, .member-card, .guest, .quiz__card, .overlay__box, .form__box {
  border-radius: var(--radius);
}
/* muchia luminoasă de sus, ca pe sticlă */
.card, .member-card, .panel, .guest {
  position: relative;
  overflow: hidden;
}
.card::after, .member-card::after, .panel::after, .guest::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent);
  pointer-events: none;
}
/* la trecerea mouse-ului, sticla „se luminează” puțin */
@media (hover: hover) and (pointer: fine) {
  .card, .member-card, .panel {
    transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, background .35s ease;
  }
  .card:hover, .member-card:hover, .panel:hover {
    background: rgba(255, 253, 248, .78);
    box-shadow: var(--glass-shadow-lg);
  }
}
/* bara de sus: sticlă fumurie, ca să se vadă conținutul pe sub ea */
.topbar {
  background: rgba(253, 247, 238, .72);
  border-bottom: 1px solid rgba(255, 255, 255, .6);
}
.strip__inner > .stat {
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
/* jetoanele (categorii, filtre) — tot din sticlă */
.chip {
  background: rgba(255, 253, 248, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .7);
}

/* ── 3. Înclinare ușoară la trecerea mouse-ului (efect 3D discret) ────
   Variabilele --tx/--ty stau la 0 până vine mouse-ul, deci pe telefon
   transformarea asta nu schimbă nimic. */
.tilt {
  transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

/* ── 4. Forme organice pentru poze (nu toate dreptunghiuri) ─────────── */
.gallery__item {
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 26px rgba(74, 48, 25, .14);
  transition: transform .45s cubic-bezier(.22,.61,.36,1), border-radius .5s ease, box-shadow .35s ease;
}
/* cinci forme diferite, în rotație, ca albumul să nu pară o tabelă */
.shape-0 { border-radius: 46% 54% 52% 48% / 40% 42% 58% 60%; }   /* bob */
.shape-1 { border-radius: 50% 50% 12px 12px / 34% 34% 12px 12px; }  /* arcadă */
.shape-2 { border-radius: 62% 8% 62% 8%; }                        /* frunză */
.shape-3 { border-radius: 8px 46% 8px 46%; }                      /* petală */
.shape-4 { border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; }    /* ovoid */

.gallery__item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 22px 44px rgba(74, 48, 25, .22);
}
/* la hover, forma se mai schimbă puțin — „respiră” */
.shape-0:hover { border-radius: 54% 46% 44% 56% / 46% 52% 48% 54%; }
.shape-1:hover { border-radius: 50% 50% 20px 20px / 40% 40% 20px 20px; }
.shape-2:hover { border-radius: 8% 62% 8% 62%; }
.shape-3:hover { border-radius: 46% 8% 46% 8%; }
.shape-4:hover { border-radius: 50% 50% 50% 50% / 38% 38% 62% 62%; }
.gallery__item img { transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.gallery__item:hover img { transform: scale(1.09); }

/* ── 5. „Teatrul de poze” — altceva decât un lightbox obișnuit ──────── */
.theater {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: clamp(14px, 3vw, 44px);
  background: rgba(26, 18, 12, .58);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.theater[hidden] { display: none; }

/* fundalul e chiar poza, mărită și estompată — de unde vine culoarea */
.theater__backdrop {
  position: absolute; inset: -8%; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(60px) saturate(1.5) brightness(.62);
  transform: scale(1.15);
  transition: background-image .5s ease, opacity .5s ease;
  opacity: .95;
}
.theater__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(70% 70% at 50% 45%, transparent, rgba(20, 14, 9, .55) 100%);
}

.theater__stage {
  position: relative; z-index: 2;
  display: grid; place-items: center; gap: 16px;
  width: 100%;
}
.theater__figure {
  margin: 0; position: relative;
  display: grid; place-items: center;
  max-width: min(1000px, 94vw);
}
.theater__figure img {
  max-width: 100%;
  max-height: 68vh;
  width: auto; height: auto;
  border-radius: 14px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
}
.theater__caption {
  margin-top: 14px; text-align: center; color: #FBF3E4;
  padding: 12px 20px; max-width: 62ch;
  background: rgba(255, 253, 248, .14);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  display: grid; gap: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.theater__caption strong { font-family: var(--font-display); font-size: 1.05rem; }
.theater__caption span { font-size: .92rem; opacity: .9; }
.theater__caption em { font-style: normal; font-size: .78rem; opacity: .72; letter-spacing: .04em; }

/* banda de film, jos: sari direct la orice poză */
.theater__strip {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; gap: 10px; justify-content: center;
  padding: 14px 16px 18px;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: thin;
  background: linear-gradient(transparent, rgba(18, 12, 8, .55));
}
.theater__strip[hidden] { display: none; }
.theater__thumb {
  flex: 0 0 auto; width: 62px; height: 62px; padding: 0; border: 0; cursor: pointer;
  border-radius: 12px; overflow: hidden; opacity: .5;
  outline: 2px solid transparent; outline-offset: 2px;
  transition: opacity .25s ease, transform .25s ease, outline-color .25s ease;
  background: none;
}
.theater__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theater__thumb:hover { opacity: .85; transform: translateY(-3px); }
.theater__thumb.is-current {
  opacity: 1; outline-color: rgba(227, 166, 60, .95); transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
}

/* butoanele: sticlă pe întuneric */
.theater__btn {
  position: absolute; z-index: 4; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: #FBF3E4;
  background: rgba(255, 253, 248, .14);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: background .25s ease, transform .25s ease;
}
.theater__btn:hover { background: rgba(255, 253, 248, .3); }
.theater__btn--prev { left: clamp(8px, 2vw, 26px); }
.theater__btn--next { right: clamp(8px, 2vw, 26px); }
.theater__btn--close { top: clamp(10px, 2vw, 22px); right: clamp(10px, 2vw, 22px); transform: none; font-size: 1.5rem; }
.theater__counter {
  position: absolute; z-index: 4; top: clamp(12px, 2vw, 24px); left: clamp(12px, 2vw, 24px);
  color: #FBF3E4; font-size: .84rem; letter-spacing: .08em; opacity: .8;
  background: rgba(255, 253, 248, .12); padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

@media (max-width: 760px) {
  .theater__figure img { max-height: 54vh; }
  .theater__btn { width: 44px; height: 44px; font-size: 1.4rem; }
  .theater__caption { border-radius: 18px; font-size: .9rem; padding: 10px 16px; }
  .theater__thumb { width: 52px; height: 52px; }
  .shape-0, .shape-1, .shape-2, .shape-3, .shape-4 { border-radius: 16px; }
}

/* ── 6. Cine nu vrea mișcare, primește totul liniștit ───────────────── */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .gallery__item, .gallery__item img, .card, .member-card, .panel { transition: none; }
  .theater__backdrop { transition: none; }
}
