/* ==========================================================================
   Roua • Bistrița
   Pagina e o zi: de la ceața de la 06:00 până la 24:00.
   --bg, --ink și --accent sunt actualizate din main.js în funcție de „ora” scroll-ului.
   ========================================================================== */

:root {
  /* paleta luată din logo */
  --cream: #f5e8df;     /* fundalul logo-ului */
  --cream-soft: #faf3ee;
  --cream-deep: #efdfd3;
  --sky: #93b0bc;       /* albastrul logo-ului */
  --sky-deep: #4d6c7b;  /* același albastru, închis pentru text (4,7:1 pe crem) */
  --ink-day: #263943;   /* cerneala: albastrul logo-ului, aproape negru */
  --night: #18252d;     /* noaptea pe deal */

  /* dinamice (vezi main.js) */
  --bg: var(--cream);
  --ink: var(--ink-day);
  --accent: var(--sky-deep);
  --logo: var(--sky);

  --ink-2: color-mix(in srgb, var(--ink) 70%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 16%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 34%, transparent);

  --f-display: "Libre Caslon Display", "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --f-serif: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --f-text: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4.2vw, 64px);
  --gap: clamp(14px, 2vw, 32px);
  --section: clamp(96px, 15vh, 200px);
  --nav-h: 72px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-water: cubic-bezier(.34, 1.4, .64, 1);

  color-scheme: light;
}

:root { --danger: #a23c2f; }
:root[data-night] { color-scheme: dark; --danger: #f2a08f; }

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
/* <picture> doar alege formatul (WebP sau JPG); în pagină contează imaginea din el */
picture { display: contents; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
figure { margin: 0; }
dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--bg); }

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed;
  left: var(--gutter); top: 12px;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip:focus-visible { transform: none; }

.only-coarse { display: none; }
@media (pointer: coarse) {
  .only-fine { display: none; }
  .only-coarse { display: inline; }
}

/* --------------------------------------------------------------------------
   Tipografie
   -------------------------------------------------------------------------- */

.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.4vw, 5.6rem);
  line-height: 1;
  letter-spacing: -.012em;
  text-wrap: balance;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding-bottom: .15em;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
}
.link:hover { background-size: 0% 1px; background-position: right bottom; }

.frame { overflow: hidden; border-radius: 2px; }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Navigație + ceasul zilei
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--gutter);
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
.nav::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  opacity: 0;
  transition: opacity .5s;
}
.nav { transition: color .4s ease, border-color .4s; }
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav.is-scrolled::before { opacity: 1; }
.nav.is-on-hero {
  --ink: var(--cream);
  --line: rgba(245, 232, 223, .2);
  --line-strong: rgba(245, 232, 223, .5);
  --accent: var(--cream);
  color: var(--cream);
  border-bottom-color: transparent;
}
.nav.is-on-hero::before { opacity: 0; }
.nav.is-on-hero .nav__brand { opacity: 0; pointer-events: none; }
.nav.is-on-hero .nav__call:hover { background: var(--cream); color: var(--ink-day); border-color: var(--cream); }
.nav.is-hidden { transform: translateY(-100%); }

.nav__brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  color: var(--logo);
  transition: color .4s, opacity .45s;
}
.nav__brand:hover { opacity: .75; }
/* logo-ul oficial, vectorizat: se colorează din CSS */
.logo { display: block; height: 46px; width: auto; overflow: visible; }

.dayclock {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.dayclock__sky { width: 46px; height: 25px; overflow: visible; }
.dayclock__arc { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 1.5 3; }
.dayclock__horizon { stroke: var(--line-strong); stroke-width: 1; }
.dayclock__sun { fill: var(--accent); }
.dayclock__moon { fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: 0; }
.dayclock__time {
  font-family: var(--f-serif);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: .01em;
  min-width: 3.1em;
}

.nav__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.4rem);
}
.nav__links { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav__links a {
  position: relative;
  font-size: .95rem;
  padding: .3rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 50%; bottom: -2px;
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%) scale(0);
  transition: transform .4s var(--ease-water);
}
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after { transform: translateX(-50%) scale(1); }

.nav__call {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem .55rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s;
}
.nav__call svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.nav__call:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.nav__toggle {
  display: none;
  padding: .55rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  font-size: .95rem;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2.5rem;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) max(2.5rem, env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--ink);
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 13vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.menu__call {
  align-self: flex-start;
  padding: .9rem 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}

@media (max-width: 960px) {
  .nav__links, .nav__call { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (max-width: 420px) {
  .logo { height: 40px; }
}

/* --------------------------------------------------------------------------
   06:00 — Hero: răsăritul peste Sigmir
   Fotografia, logo-ul și o singură mișcare la intrare. În rest, hero-ul
   răspunde doar la mouse (o adâncime discretă) și la derulare.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  background: var(--night);
  color: var(--cream);
}

.hero__media {
  position: absolute;
  inset: -3%;               /* rezervă pentru deplasarea la mouse */
  will-change: transform;
}
.hero__media picture,
.hero__img { display: block; width: 100%; height: 100%; }
.hero__img {
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 2.6s var(--ease-out);
}
.hero.is-in .hero__img { opacity: 1; transform: none; }

.hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 54% at 50% 46%, rgba(24, 37, 45, .42) 0%, rgba(24, 37, 45, 0) 74%),
    linear-gradient(180deg, rgba(24, 37, 45, .44) 0%, rgba(24, 37, 45, .1) 30%, rgba(24, 37, 45, .16) 64%, rgba(24, 37, 45, .6) 100%);
}

.hero__center {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(16px, 2.6vh, 26px);
  padding: var(--nav-h) var(--gutter) 0;
  text-align: center;
  will-change: transform;
}
.hero__title { line-height: 0; }
.hero__logo {
  width: clamp(230px, 33vw, 500px);
  height: auto;
  overflow: visible;
  fill: var(--cream);
  filter: drop-shadow(0 2px 22px rgba(16, 26, 32, .3));
}
.hero__lede {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.3;
  color: var(--cream);
  text-shadow: 0 1px 16px rgba(16, 26, 32, .4);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: .3rem;
}
/* două clase: regula de bază .btn vine mai jos în fișier */
.btn.btn--cream { background: var(--cream); color: var(--ink-day); }
.btn.btn--cream:hover { background: #fffaf6; }
.btn.btn--clear {
  border-color: rgba(245, 232, 223, .6);
  color: var(--cream);
  background: rgba(245, 232, 223, .08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn.btn--clear:hover { background: rgba(245, 232, 223, .18); border-color: var(--cream); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  color: var(--cream);
  opacity: .75;
  transition: opacity .3s;
}
.hero__scroll:hover { opacity: 1; }
.hero__scroll svg {
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  animation: ebb 3.4s ease-in-out infinite;
}
@keyframes ebb { 50% { transform: translateY(4px); } }

/* răsăritul, o singură dată: valurile, soarele care urcă, razele, apoi cuvântul */
.hero__logo path { transform-box: view-box; }
.hl-ray {
  transform-origin: var(--sx) var(--sy);
  transition: transform .9s var(--ease-water);
}
.js .hero:not(.is-in) :is(.hl-ray, .hl-sun, .hl-waves, .hl-word, .hero__lede, .hero__ctas) { opacity: 0; }
.hero.is-in .hl-waves { animation: hl-fade 1s var(--ease-out) .1s backwards; }
.hero.is-in .hl-sun { animation: hl-rise 1.4s var(--ease-out) .25s backwards; }
.hero.is-in .hl-ray { animation: hl-ray .9s var(--ease-water) calc(.7s + var(--i) * .07s) backwards; }
.hero.is-in .hl-word { animation: hl-fade 1.1s var(--ease-out) 1.05s backwards; }
.hero.is-in .hero__lede { animation: hl-up 1s var(--ease-out) 1.4s backwards; }
.hero.is-in .hero__ctas { animation: hl-up 1s var(--ease-out) 1.55s backwards; }

@keyframes hl-fade { from { opacity: 0; transform: translateY(8px); } }
@keyframes hl-rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes hl-ray { from { opacity: 0; transform: scale(.5); } }
@keyframes hl-up { from { opacity: 0; transform: translateY(12px); } }

/* sub cursor, soarele strălucește puțin mai tare */
@media (hover: hover) {
  .hero__title:hover .hl-ray { transform: scale(1.08); }
}

@media (max-width: 560px) {
  .hero__lede { max-width: 19ch; text-wrap: balance; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__ctas { width: min(100%, 320px); }
}

/* --------------------------------------------------------------------------
   Motive comune, luate din logo: nota orei, valurile, arcada soarelui
   -------------------------------------------------------------------------- */

/* nota de pe margine: ora și poziția soarelui (sau a lunii) pe un arc mic */
.hour {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-serif);
  font-size: .98rem;
  line-height: 1.2;
  color: var(--accent);
  white-space: nowrap;
}
.hour__sky { width: 28px; height: 16px; flex: none; overflow: visible; }
.hour__arc { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 1.4 2.6; opacity: .6; }
.hour__line { fill: none; stroke: currentColor; stroke-width: 1; opacity: .6; }
.hour__sun { fill: currentColor; }
.hour__moon { fill: none; stroke: currentColor; stroke-width: 1.2; }
.hour__t { font-variant-numeric: lining-nums tabular-nums; letter-spacing: .02em; }
.hour__w { font-style: italic; color: var(--ink-2); }

/* capul secțiunilor: ora pe margine, titlul, apoi textul alături */
.sh {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 1.2rem;
  align-items: end;
  margin-bottom: clamp(44px, 8vh, 96px);
}
.sh .hour { grid-column: 1 / span 2; align-self: start; padding-top: .6rem; }
.sh__title { grid-column: 3 / span 6; }
.sh__aside {
  grid-column: 9 / span 4;
  display: grid;
  gap: 1.1rem;
  justify-items: start;
  max-width: 40ch;
  color: var(--ink-2);
}
@media (max-width: 960px) {
  .sh .hour, .sh__title, .sh__aside { grid-column: 1 / -1; }
  .sh .hour { padding-top: 0; }
}

/* valurile din logo, ca despărțitor între momentele zilei */
.waves { display: grid; place-items: center; padding: clamp(8px, 3vh, 32px) 0; color: var(--sky); }
.waves svg {
  width: 92px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.js .waves path { stroke-dasharray: 150; stroke-dashoffset: 150; transition: stroke-dashoffset 1.8s var(--ease-out); }
.js .waves path:nth-child(2) { transition-delay: .18s; }
.js .waves path:nth-child(3) { transition-delay: .36s; }
.js .waves.is-seen path { stroke-dashoffset: 0; }

/* arcada: semicercul soarelui din logo, ca ramă pentru fotografii */
.arch {
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px 2px 2px;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Safari taie corect colțurile */
}
.arch img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* fotografiile răsar o singură dată, de jos în sus, ca soarele */
.js .rise { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-out); }
.js .rise.is-seen { clip-path: inset(0 0 0 0); }
.js .arch.rise img { transform: scale(1.08); transition: transform 2.2s var(--ease-out); }
.js .arch.rise.is-seen img { transform: none; }

figcaption {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: .95rem;
  line-height: 1.35;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   08:00 — Intro: programul zilei
   -------------------------------------------------------------------------- */

.intro { padding: var(--section) var(--gutter) calc(var(--section) * .45); }

.intro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: center;
}
.intro__aside { grid-column: 1 / span 5; display: grid; gap: 1.6rem; justify-items: start; }
.intro__arch { width: min(100%, 430px); aspect-ratio: 3 / 4.15; }
.intro__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .9s ease, transform 1.6s var(--ease-out);
}
.js .arch.rise .intro__img { transform: scale(1.04); }
.intro__img.is-active,
.js .arch.rise.is-seen .intro__img.is-active { opacity: 1; transform: none; }
.intro__img[data-preview-img="acasa"] { object-position: 50% 58%; }
.intro__img[data-preview-img="piscina"] { object-position: 50% 70%; }

.intro__main { grid-column: 7 / span 6; display: grid; gap: clamp(20px, 3vh, 30px); }
.intro__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 3.7vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.intro__text { color: var(--ink-2); font-size: clamp(1.05rem, 1.1vw, 1.18rem); max-width: 46ch; }

.day { list-style: none; margin: clamp(10px, 2.5vh, 24px) 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.day li { border-bottom: 1px solid var(--line); }
.day__row {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: .25rem;
  align-items: baseline;
  padding: 1.15rem 0;
  transition: padding .6s var(--ease-out);
}
.day__hour {
  grid-row: 1 / span 2;
  font-family: var(--f-serif);
  color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
}
.day__name {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  line-height: 1.05;
  transition: color .35s;
}
.day__note { color: var(--ink-2); font-size: .98rem; }
.day__row:hover, .day__row:focus-visible { padding-left: .7rem; }
.day__row:hover .day__name, .day__row:focus-visible .day__name { color: var(--accent); }

@media (max-width: 860px) {
  .intro__aside, .intro__main { grid-column: 1 / -1; }
  .intro__main { margin-top: 2.6rem; }
  .intro__arch { width: min(80%, 340px); }
}

/* --------------------------------------------------------------------------
   13:00 — Piscina
   -------------------------------------------------------------------------- */

.pool { padding: calc(var(--section) * .4) var(--gutter) calc(var(--section) * .2); }

/* filmul de vară stă într-o ramă, aproape de mărimea lui reală, ca să rămână clar */
.pool__layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 3rem;
  align-items: end;
}
.pool__film { grid-column: 3 / span 8; aspect-ratio: 16 / 9; background: var(--night); }
.pool__film video { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .pool__film { grid-column: 1 / -1; }
}}


/* --------------------------------------------------------------------------
   17:00 — Terasa
   -------------------------------------------------------------------------- */

.terrace { padding: var(--section) var(--gutter) calc(var(--section) * .55); }

.terrace__layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 3rem;
  align-items: start;
}
.terrace__main {
  grid-column: 1 / span 7;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
}
.terrace__main img {
  position: absolute;
  left: 0; top: -6%;
  width: 100%; height: 112%;
  object-fit: cover;
  object-position: 50% 42%;
}
.terrace__main::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(16, 26, 32, .5));
  pointer-events: none;
}
.terrace__main figcaption {
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 1;
  color: var(--cream);
}

.terrace__side { grid-column: 9 / span 4; display: grid; gap: clamp(40px, 7vh, 72px); }
.facts { display: grid; border-top: 1px solid var(--line-strong); }
.facts > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--ink-2); }
.facts dd { font-family: var(--f-serif); font-size: 1.08rem; }

.terrace__arch { display: grid; gap: .9rem; justify-items: start; }
.terrace__arch .arch { width: min(100%, 300px); aspect-ratio: 3 / 4; }

@media (max-width: 860px) {
  .terrace__main, .terrace__side { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   18:30 — Locul, în imagini: o fâșie de fotografii, trasă de vizitator
   -------------------------------------------------------------------------- */

.gallery { padding: calc(var(--section) * .55) 0 calc(var(--section) * .35); }
.gallery .sh { padding-inline: var(--gutter); }
.gallery__help { font-size: .95rem; }
.gallery__nav { display: flex; gap: .6rem; }

.round {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease-water), opacity .3s;
}
.round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.round:active { transform: scale(.94); }
.round[disabled] { opacity: .3; pointer-events: none; }

.gallery__track {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter);
  scrollbar-width: none;
  cursor: grab;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline-offset: -4px; }
.gallery__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.gallery__list {
  display: flex;
  gap: clamp(14px, 1.8vw, 28px);
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shot { flex: none; scroll-snap-align: start; }
.shot figure { display: grid; gap: .8rem; }
.shot img {
  display: block;
  height: clamp(320px, 58vh, 600px);
  width: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  pointer-events: none;
  -webkit-user-drag: none;
}
.shot--tall img { aspect-ratio: 9 / 14; }
.shot--wide img { aspect-ratio: 5 / 4; }

.gallery__progress {
  position: relative;
  height: 1px;
  margin: clamp(26px, 4vh, 42px) var(--gutter) 0;
  background: var(--line);
  overflow: hidden;
}
.gallery__progress span {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(var(--p, .15));
  transition: transform .25s linear;
}

@media (max-width: 860px) {
  .shot img { height: clamp(280px, 96vw, 440px); }
}

/* --------------------------------------------------------------------------
   19:30 — Același loc, după apus: vizitatorul alege, iar noaptea coboară
   peste fotografia de zi, de la cer spre iarbă, ca o cortină moale.
   -------------------------------------------------------------------------- */

.dusk { padding: calc(var(--section) * .45) 0 calc(var(--section) * .5); }
.dusk .sh { padding-inline: var(--gutter); }

.dusk__frame {
  position: relative;
  width: min(100% - 2 * var(--gutter), 86svh * 16 / 9);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  background: var(--night);
}
.dusk__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
/* luminile stinse: aceeași fotografie, întunecată și fără culoare */
.dusk__img--off { filter: brightness(.4) saturate(.25) contrast(1.05); }
/* luminile aprinse: fotografia întreagă se dezvăluie dinspre terasă, în cerc */
@property --lit { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.dusk__img--on {
  --lit: 0%;
  -webkit-mask-image: radial-gradient(circle at 56% 62%, #000 var(--lit), transparent calc(var(--lit) * 1.3));
  mask-image: radial-gradient(circle at 56% 62%, #000 var(--lit), transparent calc(var(--lit) * 1.3));
  transition: --lit 2.6s cubic-bezier(.45, 0, .2, 1);
}
.dusk__frame.is-lit .dusk__img--on { --lit: 110%; }

.dusk__switch {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 4vh, 32px);
  transform: translateX(-50%);
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--night) 42%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(245, 232, 223, .22);
}
.dusk__switch button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1.15rem 0 .95rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font: 500 .95rem/1 var(--f-text);
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .5s var(--ease-out), color .5s var(--ease-out);
}
.dusk__switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* stinse: butonul crem invită la apăsare; aprinse: devine discret */
.dusk__switch .dusk__lights { background: var(--cream); color: var(--ink-day); }
.dusk__switch .dusk__lights[aria-pressed="true"] { background: transparent; color: var(--cream); }
.dusk__switch .dusk__lights[aria-pressed="true"] svg { fill: rgba(255, 214, 140, .9); stroke: rgba(255, 214, 140, .9); }
.dusk__switch button:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
@media (hover: hover) {
  .dusk__switch .dusk__lights[aria-pressed="true"]:hover { background: rgba(245, 232, 223, .16); }
}

@media (max-width: 860px) {
  .dusk__frame { width: min(100%, 86svh * 4 / 5); aspect-ratio: 4 / 5; border-radius: 0; }
  .dusk__img { object-position: 40% 72%; }
}

/* --------------------------------------------------------------------------
   20:00 — Petreceri + planificator
   -------------------------------------------------------------------------- */

.party { padding: var(--section) var(--gutter) calc(var(--section) * .7); }
.party__lede {
  font-family: var(--f-serif);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 28ch;
}

.party__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 3.5rem;
  align-items: center;
}
.party__arch { grid-column: 1 / span 5; }
.party__arch .arch { aspect-ratio: 3 / 4; }
.party__arch img { object-position: 50% 52%; }

/* condițiile, ca o invitație tipărită lăsată pe masă */
.invite {
  grid-column: 7 / span 6;
  justify-self: center;
  position: relative;
  width: min(100%, 520px);
  display: grid;
  justify-items: center;
  gap: 1.15rem;
  padding: clamp(40px, 5vw, 64px) clamp(26px, 4vw, 56px);
  text-align: center;
  background: var(--cream);
  color: var(--ink-day);
  border-radius: 2px;
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .7);
  rotate: -1.2deg;
  transition: rotate .9s var(--ease-water), translate .9s var(--ease-water), box-shadow .9s;
}
.invite::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid color-mix(in srgb, var(--sky) 75%, transparent);
  pointer-events: none;
}
.invite:hover { rotate: 0deg; translate: 0 -4px; box-shadow: 0 44px 80px -36px rgba(0, 0, 0, .75); }
.invite__sun { width: 76px; height: auto; color: var(--sky); }
.invite__title {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  line-height: 1.05;
}
.invite__terms { display: grid; gap: 1rem; margin: .3rem 0; }
.invite__terms > div { display: grid; gap: .15rem; justify-items: center; }
.invite__terms > div + div::before {
  content: "";
  width: 28px; height: 1px;
  margin-bottom: 1rem;
  background: var(--sky);
}
.invite__terms dt { font-family: var(--f-serif); font-size: 1.15rem; }
.invite__terms dd { color: #5a6b73; font-size: .95rem; max-width: 30ch; text-wrap: balance; }
.invite__foot { font-family: var(--f-serif); font-style: italic; font-size: .95rem; color: #5a6b73; max-width: 36ch; }
.btn.btn--ink { background: var(--ink-day); color: var(--cream); margin-top: .4rem; }
.btn.btn--ink:hover { background: var(--sky-deep); }
.invite :focus-visible { outline-color: var(--sky-deep); }

@media (max-width: 960px) {
  .party__arch, .invite { grid-column: 1 / -1; }
  .party__arch .arch { width: min(80%, 380px); margin: 0 auto; }
  .invite { rotate: 0deg; }
  .faq__item::details-content { transition: none; }
}
@media (max-width: 560px) {
  .invite { padding: 48px 34px 44px; }
  .invite::before { inset: 10px; }
}

/* planificatorul */
.planner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2.5rem;
  margin-top: clamp(96px, 16vh, 180px);
  padding-top: clamp(32px, 5vh, 56px);
  border-top: 1px solid var(--line-strong);
}
.planner__intro { grid-column: 1 / span 5; grid-row: 1; display: grid; gap: 1rem; align-content: start; }
.planner__title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.01em;
}
.planner__intro p { color: var(--ink-2); max-width: 34ch; }

.planner__form { grid-column: 7 / span 6; grid-row: 1 / span 2; display: grid; gap: 3rem; }

.occasions { border: 0; margin: 0; padding: 0; min-width: 0; }
.occasions[hidden] { display: none; }
.kids__note { margin-top: .9rem; font-size: .9rem; color: var(--ink-2); }
.occasions legend, .field__label {
  display: block;
  padding: 0;
  margin-bottom: .9rem;
  font-size: .95rem;
  color: var(--ink-2);
}
.occasion {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--f-serif);
  font-size: clamp(1.6rem, 2.7vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink-2);
  transition: color .35s;
}
.occasion:first-of-type { border-top: 1px solid var(--line); }
.occasion input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px; height: 18px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .3s;
}
.occasion input::before {
  /* o picătură care se formează */
  content: "";
  width: 10px; height: 12px;
  margin-top: -2px;
  border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%;
  background: var(--accent);
  transform: scale(0) translateY(-6px);
  transition: transform .5s var(--ease-water);
}
.occasion input:checked { border-color: var(--accent); }
.occasion input:checked::before { transform: scale(1) translateY(0); }
.occasion span { transition: transform .5s var(--ease-out); }
.occasion:hover span { transform: translateX(8px); }
.occasion:has(input:checked) { color: var(--ink); }
.occasion:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.occasion input:focus-visible { outline: none; }

.planner__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem var(--gap);
}
.field--wide { grid-column: 1 / -1; }

.stepper {
  display: inline-grid;
  grid-template-columns: 48px minmax(3.2ch, auto) 48px;
  align-items: center;
  gap: .5rem;
}
.stepper__btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  transition: background-color .3s, color .3s, transform .4s var(--ease-water);
}
.stepper__btn:hover { background: var(--ink); color: var(--bg); }
.stepper__btn:active { transform: scale(.9); }
.stepper__input {
  width: 3.4ch;
  border: 0;
  background: none;
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.field__date {
  width: 100%;
  max-width: 18rem;
  min-height: 52px;
  padding: .6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  font-size: 1.05rem;
}

.until { display: grid; gap: .8rem; }
.until__value {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 3.4vw, 3.2rem);
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.until__range {
  --p: 66.66%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.until__range::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--ink) var(--p), var(--line-strong) var(--p));
}
.until__range::-moz-range-track { height: 2px; background: var(--line-strong); }
.until__range::-moz-range-progress { height: 2px; background: var(--ink); }
.until__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 11px var(--accent);
  transition: transform .4s var(--ease-water);
}
.until__range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--ink);
  box-shadow: inset 0 0 0 5px var(--bg), inset 0 0 0 11px var(--accent);
}
.until__range:active::-webkit-slider-thumb { transform: scale(1.25); }
.until__scale {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.until__scale span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.until__scale span:first-child { justify-content: flex-start; }
.until__scale span:last-child { justify-content: flex-end; }
.until__scale .is-mark { color: var(--ink); }
.until__note { font-size: .95rem; color: var(--ink-2); min-height: 1.6em; }
.until__note.is-extra { color: var(--accent); }

.note {
  grid-column: 1 / span 5;
  grid-row: 2;
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: grid;
  gap: 1.4rem;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border: 1px solid var(--line);
}
.note__title { font-size: .95rem; color: var(--ink-2); }
.note__text {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.75vw, 1.7rem);
  line-height: 1.32;
  letter-spacing: -.01em;
  max-width: 40ch;
  text-wrap: pretty;
}
.note__text .chg { transition: color .6s; }
.note__text .chg.is-new { color: var(--accent); }
.note__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: none;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  transition: background-color .3s, color .3s, border-color .3s, transform .5s var(--ease-water);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: var(--ink); color: var(--bg); }
.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--text { padding-inline: .6rem; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ce rezervi: două opțiuni, ca un comutator */
.kind { border: 0; margin: 0; padding: 0; min-width: 0; }
.kind legend { padding: 0; margin-bottom: .9rem; font-size: .95rem; color: var(--ink-2); }
.kind__options {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.kind__opt { position: relative; cursor: pointer; }
.kind__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.kind__opt span {
  display: block;
  padding: .75rem 1.3rem;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
  transition: background-color .35s, color .35s;
}
.kind__opt input:checked + span { background: var(--ink); color: var(--bg); }
.kind__opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.kind__opt:hover input:not(:checked) + span { background: color-mix(in srgb, var(--ink) 8%, transparent); }

.pool-note { color: var(--ink-2); max-width: 52ch; }

/* datele de contact: câmpuri subliniate, ca pe o scrisoare */
.whom { border: 0; margin: 0; padding: 0; min-width: 0; }
.whom legend { padding: 0; margin-bottom: 1.4rem; font-size: .95rem; color: var(--ink-2); }
.whom__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem var(--gap);
}
.field__opt { color: color-mix(in srgb, var(--ink-2) 80%, transparent); }
.input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: .55rem 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: none;
  font-size: 1.15rem;
  transition: border-color .3s, box-shadow .3s;
}
.input::placeholder { color: color-mix(in srgb, var(--ink) 38%, transparent); }
.input:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.input[aria-invalid="true"] { border-bottom-color: var(--danger); box-shadow: 0 1px 0 0 var(--danger); }
.input--area { min-height: 104px; resize: vertical; line-height: 1.5; }
.input:-webkit-autofill,
.input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--bg) inset;
  caret-color: var(--ink);
}
.field__date[aria-invalid="true"] { border-color: var(--danger); }
.field__error {
  color: var(--danger);
  font-size: .9rem;
  line-height: 1.4;
  margin-top: .45rem;
}
.field__error:empty { display: none; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  max-width: 56ch;
  font-size: .98rem;
  color: var(--ink-2);
  cursor: pointer;
}
.consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 22px; height: 22px;
  margin: .1rem 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.consent input::before {
  content: "";
  width: 10px; height: 6px;
  border-left: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform .35s var(--ease-water);
}
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.consent input[aria-invalid="true"] { border-color: var(--danger); }

/* capcana pentru roboți */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.note__error { color: var(--danger); font-size: .95rem; }
.note__error:empty { display: none; }

/* butonul de trimitere stă la finalul formularului, unde vizitatorul termină de completat */
.note { scroll-margin-top: calc(var(--nav-h) + 16px); }
.planner__send { display: grid; gap: .9rem; justify-items: start; }
.planner__send[hidden], .note__actions [hidden] { display: none; }
.planner__send .btn { min-height: 56px; padding-inline: 1.7rem; }
.planner__buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.planner__hint { font-size: .9rem; color: var(--ink-2); max-width: 46ch; }
.planner__buttons [hidden], .planner__hint[hidden] { display: none; }

/* cererea în lucru și cererea trimisă */
.note__compose { display: grid; gap: 1.4rem; }
.note__compose[hidden] { display: none; }
.note__done { display: grid; gap: 1.1rem; justify-items: start; outline: none; }
.note__done[hidden] { display: none; }
.note__drop {
  width: 30px; height: 39px;
  fill: var(--accent);
  transform-origin: 50% 100%;
}
.note.is-done .note__drop { animation: drop-in 1.1s var(--ease-water) both; }
.note__title--done {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--ink);
}
.note__code { color: var(--ink-2); }
.note__code strong {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.note__demo {
  padding: .8rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  font-size: .92rem;
  color: var(--ink-2);
}
.note__demo a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.pool__links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }

@keyframes drop-in {
  0% { transform: translateY(-40px) scale(.6, .9); opacity: 0; }
  55% { transform: translateY(0) scale(1.15, .8); opacity: 1; }
  75% { transform: scale(.94, 1.06); }
  100% { transform: none; }
}

@media (max-width: 960px) {
  .planner__intro, .planner__form, .note { grid-column: 1 / -1; grid-row: auto; }
  .note { position: static; }
}
@media (max-width: 560px) {
  .planner__fields { grid-template-columns: 1fr; }
  .note__actions .btn { flex: 1 1 100%; }
  .planner__buttons { width: 100%; }
  .planner__send .btn { width: 100%; justify-content: center; }
  .whom__grid { grid-template-columns: 1fr; }
  .kind__options { display: grid; width: 100%; }
  .kind__opt span { padding-inline: .6rem; white-space: normal; }
}

/* --------------------------------------------------------------------------
   21:30 — Întrebări frecvente
   La deschidere, un soare mic răsare peste linia orizontului, ca în logo.
   -------------------------------------------------------------------------- */

.faq { padding: calc(var(--section) * .55) var(--gutter) calc(var(--section) * .2); }

.faq__list {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.faq__item {
  grid-column: 3 / span 8;
  border-top: 1px solid var(--line-strong);
}
.faq__item:last-child { border-bottom: 1px solid var(--line-strong); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--f-serif);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: color .3s, padding-left .5s var(--ease-out);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover, .faq__q:focus-visible { color: var(--accent); padding-left: .5rem; }
.faq__q:focus-visible { outline-offset: 4px; }

.faq__mark { width: 28px; height: 16px; flex: none; color: var(--accent); }
.faq__line { fill: none; stroke: currentColor; stroke-width: 1; }
.faq__sun { fill: currentColor; transition: transform .7s var(--ease-out); }
.faq__item[open] .faq__sun { transform: translateY(-11px); }

.faq__a { padding: 0 0 1.6rem; }
.faq__a p { max-width: 60ch; color: var(--ink-2); line-height: 1.65; }
.faq__a a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .3s;
}
.faq__a a:hover { color: var(--accent); }

/* unde browserul știe, răspunsul se deschide lin, nu dintr-odată */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq__item::details-content {
    height: 0;
    overflow: clip;
    transition: height .5s var(--ease-out), content-visibility .5s allow-discrete;
  }
  .faq__item[open]::details-content { height: auto; }
}

@media (max-width: 960px) {
  .faq__item { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   22:30 — Contact
   -------------------------------------------------------------------------- */

.contact { padding: var(--section) var(--gutter) calc(var(--section) * .35); }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2.6rem;
  align-items: start;
}
.contact__phone { grid-column: 1 / span 6; }
.contact__card {
  grid-column: span 3;
  display: grid;
  gap: .8rem;
  justify-items: start;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-strong);
  font-style: normal;
}
.contact__label { color: var(--ink-2); font-size: .92rem; margin-bottom: .2rem; }
.contact__value { font-family: var(--f-serif); font-size: 1.15rem; line-height: 1.45; }
.phone {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0 .28em;
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 6vw, 6.4rem);
  line-height: .95;
  letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
  transition: color .4s;
}
.phone span { display: inline-block; transition: transform .6s var(--ease-water); }
.phone:hover { color: var(--accent); }
.phone:hover span:nth-child(1) { transform: translateY(-.06em); }
.phone:hover span:nth-child(2) { transform: translateY(-.1em); transition-delay: .04s; }
.phone:hover span:nth-child(3) { transform: translateY(-.06em); transition-delay: .08s; }

.contact__night {
  margin-top: clamp(56px, 10vh, 112px);
  aspect-ratio: 21 / 8;
  overflow: hidden;
  border-radius: 2px;
}
.contact__night img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }

@media (max-width: 960px) {
  .contact__phone, .contact__card { grid-column: 1 / -1; }
  .contact__night { aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------------------
   24:00 — Footer
   -------------------------------------------------------------------------- */

.footer {
  padding: clamp(48px, 10vh, 120px) var(--gutter) calc(max(28px, env(safe-area-inset-bottom)) + 64px);
  overflow: hidden;
}
.footer__night {
  text-align: center;
  font-style: italic;
  font-family: var(--f-serif);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  letter-spacing: -.01em;
  color: var(--ink-2);
}
.footer__logo {
  width: clamp(220px, 44vw, 600px);
  aspect-ratio: 1068.5 / 693.9;
  margin: clamp(48px, 9vh, 96px) auto clamp(48px, 10vh, 112px);
  /* logo-ul oficial ca mască; cursorul îl luminează ca o lampă din spatele geamului */
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--cream) 0, color-mix(in srgb, var(--cream) 0%, transparent) 34%) no-repeat,
    color-mix(in srgb, var(--sky) 72%, transparent);
  -webkit-mask: url("../img/brand/roua-logo.svg") center / contain no-repeat;
  mask: url("../img/brand/roua-logo.svg") center / contain no-repeat;
}
.social {
  display: flex;
  justify-content: center;
  gap: .9rem;
  margin: calc(clamp(48px, 10vh, 112px) * -.45) 0 clamp(40px, 8vh, 80px);
  padding: 0;
  list-style: none;
}
.social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background .4s var(--ease-out), color .4s var(--ease-out), border-color .4s var(--ease-out);
}
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social a:hover,
.social a:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.social a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.footer__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--ink-2);
}
.footer__row a { color: var(--ink); }
.footer__row a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   WhatsApp
   -------------------------------------------------------------------------- */

.wa-icon { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }

/* butonul plutitor: discret, fără animații care să atragă singure atenția */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 56px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 14px 34px -14px rgba(16, 26, 32, .55);
  transition: gap .5s var(--ease-out), padding .5s var(--ease-out), background-color .4s, color .4s, opacity .6s, translate .6s var(--ease-out);
}
.wa-float .wa-icon { width: 24px; height: 24px; }
.wa-float__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: .95rem;
  transition: max-width .55s var(--ease-out);
}
@media (hover: hover) {
  .wa-float:hover { gap: .6rem; padding: 0 20px 0 16px; }
  .wa-float:hover .wa-float__label { max-width: 16rem; }
}
.wa-float:focus-visible { gap: .6rem; padding: 0 20px 0 16px; }
.wa-float:focus-visible .wa-float__label { max-width: 16rem; }
.js .wa-float { opacity: 0; translate: 0 12px; pointer-events: none; }
.js .wa-float.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }

/* în formular: trimite mesajul compus pe WhatsApp */
.btn > .wa-icon { margin-right: .5rem; }
.btn.btn--wa { border-color: var(--line-strong); }
.btn.btn--wa:hover { border-color: var(--ink); }

.menu__actions { display: grid; gap: .8rem; justify-items: start; }
.menu__wa {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.contact__wa { margin-top: 1.4rem; }

/* confirmarea că mesajul a fost copiat */
.site-toast {
  position: fixed;
  left: 50%;
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 72px);
  z-index: 60;
  width: max-content;
  max-width: min(92vw, 420px);
  padding: .85rem 1.15rem;
  border: 1px solid rgba(245, 232, 223, .14);
  border-radius: 14px;
  background: var(--ink-day);
  color: var(--cream);
  font-size: .95rem;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5);
  opacity: 0;
  translate: -50% 12px;
  pointer-events: none;
  transition: opacity .4s, translate .5s var(--ease-out);
}
.site-toast.is-on { opacity: 1; translate: -50% 0; }

/* --------------------------------------------------------------------------
   Mișcare redusă
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .rise { clip-path: none !important; }
  .dusk__img--on { transition: none; }
  .js .waves path { stroke-dashoffset: 0 !important; }
  .js .arch.rise img, .terrace__main img { transform: none !important; }
  .invite { rotate: 0deg; }
  .faq__item::details-content { transition: none; }
  .water__hint { display: none; }
}
