@import "fonts.css";

/* ==========================================================================
   Cabana Bendis
   Paleta este luată din fotografiile cabanei: bârnele afumate, pinul ușilor,
   verdele vopsit al tocurilor și streșinii, și florile pictate de mână —
   laleaua roșie, floarea galbenă cu șase petale, mărgăritele cu inimă
   portocalie. Verdele-petrol vine de la canapelele din living.
   ========================================================================== */

:root {
  /* Lemn */
  --timber-deep: #17110B;
  --timber: #221A12;
  --timber-soft: #2E2318;
  --honey: #A9703C;

  /* Pin vopsit */
  --pine: #EBE0C8;
  --pine-dim: #E3D7BB;
  --pine-deep: #C9B893;

  /* Culori de pensulă */
  --trim-green: #2E4A33;
  --leaf: #1C7040;
  --tulip: #C8341C;
  --tulip-bright: #DC4526;
  --folk-yellow: #E7B02A;
  /* Verdele canapelelor, coborât până unde textul crem trece 4,5:1 peste el. */
  --teal: #0E625D;
  --daisy: #F4F1E6;

  /* Roluri.  Valorile de text au fost alese ca fiecare să atingă cel puțin
     4,5:1 pe fundalurile pe care apare efectiv — inclusiv --pine-dim, care
     este cel mai strâns dintre cele deschise. */
  --ink: #2A2018;        /* 12,2:1 pe pine */
  --ink-muted: #514536;  /*  7,1:1 pe pine · 6,5:1 pe pine-dim */
  --ink-faint: #685C4B;  /*  5,0:1 pe pine · 4,6:1 pe pine-dim */
  --paper: var(--pine);

  --on-dark: #EDE6D5;       /* 13,8:1 pe timber */
  --on-dark-muted: #B4A48A; /*  7,0:1 pe timber */
  --on-dark-faint: #928268; /*  4,6:1 pe timber · 5,0:1 pe deep */

  /* Tipografie */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Karla", "Segoe UI", system-ui, sans-serif;
  --data: "Space Mono", ui-monospace, "Cascadia Mono", monospace;

  --fs-hero: clamp(3.1rem, 8.2vw, 7rem);
  --fs-h2: clamp(1.95rem, 4.2vw, 3.25rem);
  --fs-h3: clamp(1.2rem, 1.6vw, 1.5rem);
  --fs-lead: clamp(1.1rem, 0.55vw + 1rem, 1.35rem);
  --fs-body: clamp(1rem, 0.25vw + 0.95rem, 1.09rem);
  --fs-data: 0.73rem;

  /* Ritm */
  --wrap: 78rem;
  --wrap-text: 40rem;
  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --band-y: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- baza ---- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pine);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.018em;
  font-variation-settings: "SOFT" 70, "WONK" 1, "opsz" 100;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

::selection { background: var(--folk-yellow); color: var(--timber-deep); }

:focus-visible {
  outline: 2px solid var(--folk-yellow);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--folk-yellow);
  color: var(--timber-deep);
  font-family: var(--data);
  font-size: var(--fs-data);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 0.5rem; }

.vh {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------- primitive ------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.band { padding-block: var(--band-y); position: relative; }

.band--timber { background: var(--timber); color: var(--on-dark); }
.band--deep   { background: var(--timber-deep); color: var(--on-dark); }
.band--pine   { background: var(--pine); color: var(--ink); }
.band--dim    { background: var(--pine-dim); color: var(--ink); }
.band--teal   { background: var(--teal); color: var(--daisy); }

/* Eticheta mică, monospațiată — folosită pentru date și pentru supratitluri */
.tag {
  font-family: var(--data);
  font-size: var(--fs-data);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.4;
  margin: 0;
}

.tag--muted { color: var(--ink-faint); }
.band--timber .tag--muted,
.band--deep .tag--muted { color: var(--on-dark-faint); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 34ch;
}

.prose { max-width: var(--wrap-text); }
.prose > * + * { margin-top: 1.15em; }
.prose strong { font-weight: 700; }

/* Rândul de titlu al secțiunii: floare pictată + supratitlu + titlu */
.head { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }

.head__mark {
  width: clamp(2.4rem, 4vw, 3.4rem);
  height: clamp(2.4rem, 4vw, 3.4rem);
  display: block;
  margin-bottom: 1.1rem;
}

.head__tag { margin-bottom: 0.7rem; }
.head__title { font-size: var(--fs-h2); }

.head__note {
  margin-top: 1.1rem;
  max-width: 46ch;
  color: var(--ink-muted);
}
.band--timber .head__note,
.band--deep .head__note { color: var(--on-dark-muted); }

/* ---------------------------------------------------------- butoane ------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--data);
  font-size: var(--fs-data);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--solid {
  background: var(--tulip);
  color: var(--daisy);
}
.btn--solid:hover { background: var(--tulip-bright); }

.btn--ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(237, 230, 213, 0.32);
}
.btn--ghost:hover {
  border-color: var(--folk-yellow);
  color: var(--folk-yellow);
}

.btn--ink {
  background: var(--trim-green);
  color: var(--pine);
}
.btn--ink:hover { background: #3A5C40; }

.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ------------------------------------------- cusătura de bârne ----------- */
/* Trecerea dintre secțiunea închisă și cea de pin: cursuri de bârne
   suprapuse, ca la peretele real. Singurul loc unde apare textura. */

.logrule {
  height: clamp(26px, 3vw, 40px);
  background:
    repeating-linear-gradient(
      180deg,
      #33261A 0,
      #3E2F20 2px,
      #2A2016 8px,
      #1B140E 12px,
      #33261A 13px
    );
  box-shadow: inset 0 14px 22px -12px rgba(0, 0, 0, 0.85),
              inset 0 -12px 18px -12px rgba(0, 0, 0, 0.7);
  position: relative;
}
.logrule::after {
  /* capetele bârnelor, spre margini */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 14%),
    linear-gradient(270deg, rgba(0, 0, 0, 0.55), transparent 14%);
}

/* ============================================================ HERO ======= */

.hero {
  background: var(--timber-deep);
  color: var(--on-dark);
  position: relative;
  overflow: clip;
}

.hero__grid {
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero__panel {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gut) clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.35rem, 2.4vw, 2rem);
  position: relative;
  z-index: 2;
}

.hero__eyebrow { color: var(--folk-yellow); }

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 500;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 90, "WONK" 1, "opsz" 144;
}
.hero__title span { display: block; }
.hero__title .is-second { margin-left: 0.07em; }

/* Replica scrisă de mână — momentul de personalitate al paginii */
.hero__claim {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.9vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  color: var(--folk-yellow);
  max-width: 22ch;
}

.hero__lead { color: var(--on-dark-muted); max-width: 38ch; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.75rem;
  margin: 0;
  padding: 1.1rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(237, 230, 213, 0.16);
}
.hero__fact { display: flex; align-items: baseline; gap: 0.45rem; line-height: 1.2; }
.hero__fact b {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  color: var(--daisy);
}
.hero__fact span { color: var(--on-dark-faint); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__score {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--on-dark-faint);
}
.hero__score b {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  color: var(--folk-yellow);
  font-variation-settings: "SOFT" 60, "WONK" 0, "opsz" 40;
}
.hero__score .tag { line-height: 1.3; }

.hero__figure {
  position: relative;
  min-height: clamp(20rem, 58vw, 30rem);
  background: #2b2a1e;
}
.hero__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}
.hero__figure::after {
  /* topește marginea fotografiei în lemnul panoului */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(23, 17, 11, 0.85) 0,
    rgba(23, 17, 11, 0) 9rem
  );
}

@media (min-width: 62rem) {
  /* Fotografia curge până în marginea ecranului, iar textul rămâne aliniat
     cu restul paginii. */
  .hero__grid {
    max-width: none;
    grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
    align-items: stretch;
    min-height: min(88vh, 46rem);
  }
  .hero__panel {
    padding-block: clamp(3.5rem, 6vw, 5.5rem);
    padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)))
                    clamp(2rem, 4vw, 4rem);
  }
  .hero__panel > * { max-width: 34rem; }
  .hero__figure { min-height: 0; }
  .hero__figure img { object-position: 50% 52%; }
  /* Doar cusătura din stânga se topește în lemn; restul fotografiei rămâne
     neatins.  Lungimile sunt fixe, nu procentuale, ca fotografia să nu se
     întunece pe ecrane late. */
  .hero__figure::after {
    background: linear-gradient(
      to right,
      rgb(23, 17, 11) 0,
      rgba(23, 17, 11, 0.75) 6rem,
      rgba(23, 17, 11, 0) 24rem
    );
  }
}

/* Banda de miniaturi de sub hero, care duce în galerie */
.filmstrip {
  background: var(--timber-deep);
  border-top: 1px solid rgba(237, 230, 213, 0.1);
}
.filmstrip__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.9rem var(--gut);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.filmstrip__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--on-dark-faint);
  transition: color 0.25s var(--ease);
}
.filmstrip__link:hover { color: var(--folk-yellow); }
.filmstrip__shots { display: flex; gap: 0.4rem; flex: none; }
.filmstrip__link > .tag { min-width: 0; }
.filmstrip__shots img {
  width: clamp(2.6rem, 6vw, 3.6rem);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 1px;
  filter: saturate(0.85);
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.filmstrip__link:hover .filmstrip__shots img {
  filter: saturate(1.05);
}
.filmstrip__shots img:nth-child(1) { transition-delay: 0ms; }
.filmstrip__shots img:nth-child(2) { transition-delay: 40ms; }
.filmstrip__shots img:nth-child(3) { transition-delay: 80ms; }
.filmstrip__shots img:nth-child(4) { transition-delay: 120ms; }
.filmstrip__shots img:nth-child(5) { transition-delay: 160ms; }
.filmstrip__link:hover .filmstrip__shots img { transform: translateY(-2px); }

@media (max-width: 40rem) {
  .filmstrip__shots img:nth-child(n + 4) { display: none; }
}
@media (max-width: 26rem) {
  .filmstrip__shots img:nth-child(n + 3) { display: none; }
}

/* ============================================================= NAV ====== */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23, 17, 11, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(237, 230, 213, 0.12);
  color: var(--on-dark);
}
.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.6rem var(--gut);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 30;
  white-space: nowrap;
}
.nav__brand svg { width: 1.6rem; height: 1.6rem; flex: none; }

.nav__links {
  display: flex;
  gap: 1.4rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.nav__links a {
  font-family: var(--data);
  font-size: var(--fs-data);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--on-dark-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="true"] {
  color: var(--daisy);
  border-color: var(--tulip);
}

.nav__cta { margin-left: auto; padding: 0.7rem 1.1rem; }
.nav__links + .nav__cta { margin-left: 0; }

@media (max-width: 68rem) {
  .nav__links { display: none; }
}
@media (max-width: 30rem) {
  .nav__cta span { display: none; }
}

/* ============================================================= CASA ===== */

.story {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 58rem) {
  .story { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); }
}

.story__figure { position: relative; }
.story__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.story__caption {
  margin-top: 0.7rem;
  color: var(--ink-faint);
}

/* Fâșia de fapte, cu numere monospațiate */
.facts {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(42, 32, 24, 0.18);
  display: grid;
  gap: 1.6rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.facts__item b {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 40;
  color: var(--trim-green);
}
.facts__item span {
  display: block;
  margin-top: 0.4rem;
  color: var(--ink-muted);
}

/* ==================================================== FACILITĂȚI ======== */

.amen {
  display: grid;
  gap: clamp(2rem, 3.5vw, 3rem) clamp(1.5rem, 3vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.amen__group h3 {
  font-size: var(--fs-h3);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(237, 230, 213, 0.18);
}
.amen__group h3 svg { width: 1.15rem; height: 1.15rem; flex: none; }
.amen__group ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.amen__group li {
  display: flex;
  gap: 0.65rem;
  color: var(--on-dark-muted);
  line-height: 1.45;
}
.amen__group li::before {
  content: "";
  flex: none;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: 0.6rem;
  border-radius: 50%;
  background: var(--folk-yellow);
}

.amen__missing {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(237, 230, 213, 0.18);
  border-left: 3px solid var(--tulip);
  border-radius: var(--radius);
  color: var(--on-dark-muted);
  max-width: 58ch;
}
.amen__missing b { color: var(--daisy); font-weight: 700; }

/* ========================================================= DORMIT ====== */

.beds { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 50rem) {
  .beds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.beds__card { display: flex; flex-direction: column; gap: 0.9rem; }
.beds__card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
.beds__card p { color: var(--ink-muted); }

/* ======================================================== GALERIE ======= */

.gal__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.chip {
  font-family: var(--data);
  font-size: var(--fs-data);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.6rem 1rem;
  background: transparent;
  color: var(--on-dark-muted);
  border: 1px solid rgba(237, 230, 213, 0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease);
}
.chip:hover { color: var(--daisy); border-color: rgba(237, 230, 213, 0.5); }
.chip[aria-pressed="true"] {
  background: var(--folk-yellow);
  border-color: var(--folk-yellow);
  color: var(--timber-deep);
}
.chip b { font-weight: 400; opacity: 0.6; margin-left: 0.35rem; }

.gal__grid {
  columns: 4;
  column-gap: 0.85rem;
}
@media (max-width: 70rem) { .gal__grid { columns: 3; } }
@media (max-width: 46rem) { .gal__grid { columns: 2; } }
@media (max-width: 26rem) { .gal__grid { columns: 1; } }

.shot {
  margin: 0 0 0.85rem;
  break-inside: avoid;
  position: relative;
}
.shot[hidden] { display: none; }

.shot__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg, #2a2118);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  line-height: 0;
}
.shot__btn img {
  width: 100%;
  height: auto;
  transition: transform 0.55s var(--ease), opacity 0.4s var(--ease);
}
.shot__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 17, 11, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.shot__btn:hover img { transform: scale(1.035); }
.shot__btn:hover::after { opacity: 1; }

.shot__cap {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.7rem;
  z-index: 2;
  color: var(--daisy);
  font-family: var(--data);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}
.shot__btn:hover + .shot__cap,
.shot__btn:focus-visible + .shot__cap { opacity: 1; transform: none; }

.gal__empty {
  color: var(--on-dark-muted);
  padding: 2rem 0;
}

/* --------------------------------------------------------- lightbox ----- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 90;
  border: 0;
  padding: 0;
  margin: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  background: rgba(14, 10, 6, 0.96);
  color: var(--on-dark);
}
.lb::backdrop { background: rgba(14, 10, 6, 0.9); }
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; }

.lb__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem clamp(0.75rem, 3vw, 1.75rem);
}
.lb__count { color: var(--on-dark-faint); margin-right: auto; }

.lb__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding-inline: clamp(0.5rem, 6vw, 4.5rem);
  min-height: 0;
  overflow: hidden;
}
/* <picture> nu are înălțime proprie, așa că `max-height: 100%` de pe imagine
   nu s-ar putea raporta la nimic. `display: contents` face ca imaginea să fie
   direct copilul grilei. */
.lb__stage picture { display: contents; }
/* Imaginea ocupă toată suprafața disponibilă, iar `contain` o încadrează —
   mai robust decât `max-height: 100%`, care depinde de blocul conținător. */
.lb__stage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: var(--radius);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.lb__stage img.is-ready { opacity: 1; transform: none; }

.lb__foot {
  padding: 0.9rem clamp(0.75rem, 3vw, 1.75rem) 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}
.lb__cap { color: var(--on-dark-muted); max-width: 60ch; }
.lb__hint { color: var(--on-dark-faint); }

.iconbtn {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  background: rgba(237, 230, 213, 0.08);
  color: var(--on-dark);
  border: 1px solid rgba(237, 230, 213, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
}
.iconbtn:hover {
  background: var(--folk-yellow);
  border-color: var(--folk-yellow);
  color: var(--timber-deep);
}
.iconbtn svg { width: 1.1rem; height: 1.1rem; }

.lb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.lb__nav--prev { left: clamp(0.25rem, 1.5vw, 1rem); }
.lb__nav--next { right: clamp(0.25rem, 1.5vw, 1rem); }

/* =============================================== REZERVARE: dialog ====== */

.bk {
  border: 0;
  padding: 0;
  margin: auto;
  width: min(58rem, calc(100vw - 1.5rem));
  max-width: none;
  max-height: calc(100vh - 1.5rem);
  background: var(--pine);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 2rem 5rem rgba(12, 8, 4, 0.55);
  overflow: hidden;
}
.bk::backdrop { background: rgba(14, 10, 6, 0.72); backdrop-filter: blur(3px); }
.bk[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }

.bk__top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem clamp(1.1rem, 3vw, 1.9rem) 1.1rem;
  background: var(--timber-deep);
  color: var(--on-dark);
}
.bk__top h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin-bottom: 0.3rem;
}
.bk__top .tag { color: var(--on-dark-faint); }
.bk__close { margin-left: auto; flex: none; }

.bk__body {
  overflow-y: auto;
  padding: clamp(1.1rem, 3vw, 1.9rem);
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
@media (min-width: 52rem) {
  .bk__body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

/* ------------------------------------------------------- calendarul ---- */

.cal__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.cal__bar .tag { margin-right: auto; color: var(--ink-faint); }

.cal__step {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(42, 32, 24, 0.28);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.cal__step svg { width: 1rem; height: 1rem; }
.cal__step:hover:not(:disabled) {
  background: var(--trim-green);
  border-color: var(--trim-green);
  color: var(--pine);
}
.cal__step:disabled { opacity: 0.3; cursor: default; }

.cal__months { display: grid; gap: 1.5rem; }
@media (min-width: 32rem) { .cal__months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cal__caption {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 24;
  text-align: center;
  margin-bottom: 0.7rem;
  text-transform: capitalize;
}

.cal__dow,
.cal__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.cal__dow {
  margin-bottom: 4px;
  font-family: var(--data);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-align: center;
}

.cal__day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  font-family: var(--data);
  font-size: 0.78rem;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.cal__day:hover:not(:disabled) { background: rgba(46, 74, 51, 0.16); }
.cal__day:disabled {
  color: var(--ink-faint);
  opacity: 0.42;
  cursor: default;
  text-decoration: line-through;
}
.cal__day.is-today { box-shadow: inset 0 0 0 1px rgba(200, 52, 28, 0.55); }
.cal__day.is-between { background: rgba(46, 74, 51, 0.14); border-radius: 0; }
.cal__day.is-start,
.cal__day.is-end {
  background: var(--trim-green);
  color: var(--pine);
  font-weight: 700;
}
.cal__day.is-start { border-radius: 2px 0 0 2px; }
.cal__day.is-end { border-radius: 0 2px 2px 0; }
.cal__day.is-start.is-end { border-radius: 2px; }

/* --------------------------------------------------------- formularul -- */

.bk__side { display: grid; gap: 1.1rem; align-content: start; }

.bk__summary {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1.1rem;
  background: var(--pine-dim);
  border-left: 3px solid var(--tulip);
  border-radius: var(--radius);
  min-height: 4.4rem;
  align-content: center;
}
.bk__summary b {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 28;
}
.book__hint {
  font-family: var(--data);
  font-size: var(--fs-data);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.bk__max { text-transform: none; letter-spacing: 0.02em; opacity: 0.75; }

.bk__field { display: grid; gap: 0.4rem; }
.bk__field > .tag { color: var(--ink-faint); }
.bk__field input,
.bk__field textarea {
  font-family: var(--body);
  font-size: 0.97rem;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  background: #F6F1E3;
  border: 1px solid rgba(42, 32, 24, 0.22);
  border-radius: var(--radius);
  width: 100%;
}
.bk__field textarea { resize: vertical; min-height: 4.5rem; }
.bk__field input:focus,
.bk__field textarea:focus { border-color: var(--trim-green); }

.bk__guests {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bk__guests output {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  min-width: 1.6rem;
  text-align: center;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 36;
}
.bk__guests .tag { color: var(--ink-faint); }

.bk__preview {
  font-family: var(--data);
  font-size: 0.72rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--ink-muted);
  padding: 0.85rem 1rem;
  background: rgba(42, 32, 24, 0.06);
  border-radius: var(--radius);
  max-height: 11rem;
  overflow-y: auto;
}

.bk__send {
  width: 100%;
  justify-content: center;
  background: #1D864D;
  color: #fff;
}
.bk__send:hover:not(:disabled) { background: #23994F; }
.bk__send:disabled {
  background: rgba(42, 32, 24, 0.14);
  color: var(--ink-faint);
  cursor: default;
  transform: none;
}
.bk__send svg { width: 1.15rem; height: 1.15rem; }

.bk__clear {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--data);
  font-size: var(--fs-data);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  justify-self: start;
}
.bk__clear:hover { color: var(--tulip); }

.bk__alt {
  color: var(--ink-faint);
  padding-top: 0.9rem;
  border-top: 1px solid rgba(42, 32, 24, 0.16);
}
.bk__alt a { color: var(--trim-green); }

/* ==================================================== ÎMPREJURIMI ======= */

.near {
  display: grid;
  gap: clamp(2.25rem, 4vw, 3.25rem) clamp(1.75rem, 3vw, 2.75rem);
  /* 13.5rem lasă cele patru grupuri să stea pe un singur rând pe desktop */
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
}
.near__group h3 {
  font-size: 1.05rem;
  font-family: var(--data);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: var(--fs-data);
  color: var(--ink-faint);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(42, 32, 24, 0.2);
  font-variation-settings: normal;
}
.near__list { margin: 0.3rem 0 0; padding: 0; }
.near__row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px dotted rgba(42, 32, 24, 0.22);
}
.near__row dt { flex: 1 1 auto; min-width: 0; }
.near__row dd {
  margin: 0;
  flex: none;
  font-family: var(--data);
  font-size: 0.82rem;
  color: var(--trim-green);
  font-variant-numeric: tabular-nums;
}
.near__kind {
  display: block;
  font-family: var(--data);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.near__foot {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.near__src { color: var(--ink-faint); max-width: 52ch; }

/* ======================================================== OASPEȚI ======= */

.guests { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
@media (min-width: 58rem) {
  .guests { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr); }
}

.score__big {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.score__big b {
  font-family: var(--display);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 600;
  line-height: 0.85;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 100;
  color: var(--daisy);
}
.score__of { color: var(--daisy); opacity: 0.5; font-family: var(--data); }
.score__word {
  margin-top: 0.9rem;
  color: var(--daisy);
  font-family: var(--display);
  font-size: 1.2rem;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 40;
}
.score__sub { margin-top: 0.2rem; color: rgba(244, 241, 230, 0.62); }

.score__list { margin: 2rem 0 0; padding: 0; display: grid; gap: 0.95rem; }
.score__row { display: grid; gap: 0.3rem 0.75rem; grid-template-columns: 1fr auto; align-items: center; }
.score__row dt { color: rgba(244, 241, 230, 0.85); }
.score__row dd {
  margin: 0;
  font-family: var(--data);
  font-size: 0.82rem;
  color: var(--daisy);
  font-variant-numeric: tabular-nums;
}
.score__bar {
  grid-column: 1 / -1;
  height: 3px;
  background: rgba(244, 241, 230, 0.2);
  border-radius: 999px;
  overflow: hidden;
}
.score__bar i {
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  background: var(--folk-yellow);
  border-radius: 999px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease);
}
.is-in .score__bar i { transform: scaleX(1); }

.quotes { display: grid; gap: 1rem; }
@media (min-width: 34rem) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.quote {
  margin: 0;
  padding: 1.4rem 1.5rem;
  background: rgba(244, 241, 230, 0.08);
  border: 1px solid rgba(244, 241, 230, 0.16);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.quote blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: 1.08rem;
  line-height: 1.45;
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 30;
  color: var(--daisy);
}
.quote figcaption { margin-top: auto; color: rgba(244, 241, 230, 0.66); }
.quote figcaption b { color: var(--daisy); font-weight: 700; font-family: var(--body); }
.quote__trans { display: block; margin-top: 0.2rem; opacity: 0.75; }

/* ==================================================== BUN DE ȘTIUT ====== */

.know { display: grid; gap: clamp(2rem, 4vw, 3rem) clamp(1.75rem, 3.5vw, 3.5rem); }
@media (min-width: 50rem) { .know { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .know { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.know__card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.9rem;
}
.know__time {
  font-family: var(--data);
  font-size: 1.35rem;
  color: var(--trim-green);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.know__card ul { margin: 0.6rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.know__card li { color: var(--ink-muted); display: flex; gap: 0.6rem; }
.know__card li svg { width: 1rem; height: 1rem; flex: none; margin-top: 0.35rem; }
.know__card p { color: var(--ink-muted); }

.know__legal {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(42, 32, 24, 0.18);
  color: var(--ink-faint);
  max-width: 70ch;
}

/* ====================================================== REZERVARE ====== */

.book { position: relative; text-align: center; }
.book__garland {
  display: block;
  width: min(100%, 30rem);
  height: auto;
  margin: 0 auto clamp(1.75rem, 3vw, 2.5rem);
}
.book__title { font-size: var(--fs-h2); }
.book__lead {
  margin: 1.2rem auto 0;
  color: rgba(244, 241, 230, 0.88);
  max-width: 46ch;
  font-size: var(--fs-lead);
}
.book__actions {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.book .btn--solid { background: var(--timber-deep); color: var(--daisy); }
.book .btn--solid:hover { background: #0d0906; }
.book .btn--ghost { color: var(--daisy); border-color: rgba(244, 241, 230, 0.55); }
.book .btn--ghost:hover { border-color: var(--daisy); color: var(--daisy); }
.book__note { margin-top: 1.5rem; color: rgba(244, 241, 230, 0.88); }

/* ========================================================= FOOTER ====== */

.foot { background: var(--timber-deep); color: var(--on-dark-faint); }
.foot__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gut) 2.5rem;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 50rem) {
  .foot__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--on-dark);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 40;
}
.foot__brand svg { width: 1.9rem; height: 1.9rem; }
.foot__addr { margin-top: 1rem; font-style: normal; line-height: 1.7; }
.foot__addr a { color: var(--on-dark-muted); }
.foot__cols { display: grid; gap: 1.75rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.foot__cols h4 { font-family: var(--data); font-size: var(--fs-data); text-transform: uppercase; letter-spacing: 0.14em; font-weight: 400; color: var(--on-dark-muted); font-variation-settings: normal; }
.foot__cols ul { margin: 0.85rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.foot__cols a { text-decoration: none; transition: color 0.2s var(--ease); }
.foot__cols a:hover { color: var(--folk-yellow); }
.foot__fine {
  border-top: 1px solid rgba(237, 230, 213, 0.1);
  padding: 1.5rem var(--gut) 2.5rem;
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  gap: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ================================================== flori pictate ====== */

.mark--tulip { color: var(--tulip); }
.mark--yellow { color: var(--folk-yellow); }
.mark--daisy { color: var(--daisy); }
.mark--leaf { color: var(--leaf); }

/* Floarea din capul secțiunii înflorește când secțiunea intră în cadru.
   Animăm elementul <svg> însuși: regulile din document nu pot ajunge la
   formele din interiorul unui <use>. */
.js .head__mark {
  opacity: 0;
  transform: scale(0.62) rotate(-14deg);
  transform-origin: 50% 50%;
  transition: opacity 0.55s var(--ease), transform 0.75s var(--ease);
}
.js .head.is-in .head__mark { opacity: 1; transform: none; }

/* Ghirlanda de la rezervare se pictează: acolo conturul și florile sunt
   copii direcți ai documentului, deci CSS-ul le ajunge. */
.mark--draw .mark__stroke {
  stroke-dasharray: var(--len, 120);
  stroke-dashoffset: var(--len, 120);
  transition: stroke-dashoffset 1.1s var(--ease);
}
.is-in .mark--draw .mark__stroke { stroke-dashoffset: 0; }

.mark--draw .mark__fill {
  opacity: 0;
  transform: scale(0.6);
  transform-origin: center;
  transition: opacity 0.6s var(--ease) 0.35s, transform 0.6s var(--ease) 0.35s;
}
.is-in .mark--draw .mark__fill { opacity: 1; transform: none; }

/* ==================================================== apariții ========= */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 0.09s; }
.reveal--d2 { transition-delay: 0.18s; }
.reveal--d3 { transition-delay: 0.27s; }

/* Secvența de deschidere a hero-ului */
.hero__panel > * {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.95s var(--ease) forwards;
}
.hero__panel > *:nth-child(1) { animation-delay: 0.15s; }
.hero__panel > *:nth-child(2) { animation-delay: 0.28s; }
.hero__panel > *:nth-child(3) { animation-delay: 0.44s; }
.hero__panel > *:nth-child(4) { animation-delay: 0.56s; }
.hero__panel > *:nth-child(5) { animation-delay: 0.66s; }
.hero__panel > *:nth-child(6) { animation-delay: 0.76s; }
.hero__panel > *:nth-child(7) { animation-delay: 0.86s; }

.hero__figure img {
  animation: settle 1.6s var(--ease) forwards;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}
@keyframes settle {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal,
  .js .head__mark,
  .hero__panel > * { opacity: 1; transform: none; }
  .mark--draw .mark__stroke { stroke-dashoffset: 0; }
  .mark--draw .mark__fill { opacity: 1; transform: none; }
  .score__bar i { transform: scaleX(1); }
  .btn:hover { transform: none; }
}

@media print {
  .nav, .filmstrip, .lb, .gal__bar { display: none; }
  body { background: #fff; color: #000; }
  .band { padding-block: 1.5rem; }
}
