:root {
  --bg: #11100e;
  --bg-2: #191714;
  --line: #2c2924;
  --text: #ece6dc;
  --muted: #a69e91;
  --accent: #c9a46a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html:has(body.noscroll), body.noscroll { overflow: hidden; }
[hidden] { display: none !important; }
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); text-align: center; margin-bottom: 1.5rem; }
a { color: inherit; }

/* ---------- HERO + SLIDESHOW ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #2a251e 0%, var(--bg) 70%);
}
.slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.slide.on { opacity: 1; }
.slide-bg {
  position: absolute; inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(30px) brightness(.45) saturate(.8);
}
.slide-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transform: scale(1);
}
.slide.on .slide-img { animation: kenburns var(--dur, 8s) ease-out forwards; }
@keyframes kenburns { to { transform: scale(1.05); } }

.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10,9,8,.92) 0%, rgba(10,9,8,.55) 28%, rgba(10,9,8,0) 55%),
    linear-gradient(to bottom, rgba(10,9,8,.35), rgba(10,9,8,0) 20%);
}
.hero-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 24px clamp(64px, 12vh, 120px);
  text-align: center;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.eyebrow {
  margin: 0 0 .4rem;
  font-size: .78rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
}
h1 { font-size: clamp(2.8rem, 9vw, 5.5rem); line-height: 1.05; }
.ani { margin: .5rem 0 0; font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.5rem); color: var(--muted); letter-spacing: .08em; }
.motto { margin: 1rem auto 0; max-width: 34rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.8vw, 1.4rem); color: #d8d0c3; }
.ani:empty, .motto:empty { display: none; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 18px;
  transform: translateX(-50%);
  color: var(--muted);
  opacity: .8;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- DESPRE + LUMÂNARE ---------- */
main > section { padding: clamp(64px, 10vw, 110px) 20px; }
.despre { max-width: 680px; margin: 0 auto; text-align: center; }
.despre-text p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.6vw, 1.4rem);
  line-height: 1.7;
  margin: 0 0 1.2em;
  color: #ddd5c8;
}

.lumanare { position: relative; width: 26px; height: 92px; margin: 0 auto 2.5rem; }
.ceara {
  position: absolute; bottom: 0; left: 0;
  width: 26px; height: 56px;
  border-radius: 4px 4px 3px 3px;
  background: linear-gradient(90deg, #d9cdb6, #f3ead9 45%, #c8baa0);
}
.fitil { position: absolute; bottom: 56px; left: 12px; width: 2px; height: 8px; background: #3a3128; border-radius: 1px; }
.flacara {
  position: absolute; bottom: 61px; left: 6px;
  width: 14px; height: 28px;
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  background: radial-gradient(ellipse at 50% 80%, #fff8e1 0%, #ffd27a 35%, #ff9a3c 70%, rgba(255,120,40,0) 100%);
  box-shadow: 0 0 30px 10px rgba(255,170,70,.25), 0 0 80px 30px rgba(255,150,60,.08);
  transform-origin: 50% 90%;
  animation: palpaie 3s ease-in-out infinite;
}
@keyframes palpaie {
  0%, 100% { transform: scale(1) rotate(-1deg); opacity: 1; }
  25% { transform: scale(.96, 1.04) rotate(1.5deg); }
  50% { transform: scale(1.03, .97) rotate(-.5deg); opacity: .92; }
  75% { transform: scale(.98, 1.02) rotate(1deg); }
}

/* ---------- GALERIE ---------- */
.galerie { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 0 auto 2rem; max-width: 900px;
}
.tabs button {
  font: 500 .85rem var(--sans);
  letter-spacing: .04em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5em 1.1em;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.tabs button:hover { color: var(--text); border-color: #4a443b; }
.tabs button[aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.grid {
  max-width: 1200px; margin: 0 auto;
  columns: 3 280px;
  column-gap: 14px;
}
.tile {
  display: block; width: 100%;
  margin: 0 0 14px;
  padding: 0; border: 0;
  background: #22201c;
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  break-inside: avoid;
}
.tile img {
  display: block; width: 100%; height: auto;
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
}
.tile img.loaded { opacity: 1; }
@media (hover: hover) { .tile:hover img { transform: scale(1.025); } }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2em .9em .7em;
  font-family: var(--serif); font-size: 1.05rem; text-align: left;
  color: #f2ece2;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0));
}
.gol { text-align: center; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.25rem; }

/* ---------- FORMULAR ---------- */
.ganduri { max-width: 600px; margin: 0 auto; }
.ganduri .intro { text-align: center; color: var(--muted); margin: -0.5rem 0 2rem; }
form { display: grid; gap: 1.1rem; }
form label { display: grid; gap: .4rem; font-size: .85rem; color: var(--muted); letter-spacing: .02em; }
input[type="text"], textarea {
  font: 1rem var(--sans);
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .75em .9em;
  width: 100%;
}
textarea { resize: vertical; min-height: 120px; }
input[type="file"] { font-size: .9rem; color: var(--muted); }
input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
form button {
  justify-self: center;
  margin-top: .5rem;
  font: 500 .95rem var(--sans);
  letter-spacing: .05em;
  color: var(--bg);
  background: var(--accent);
  border: 0; border-radius: 999px;
  padding: .8em 2.2em;
  cursor: pointer;
}
form button:hover { filter: brightness(1.08); }
.ascuns { position: absolute; left: -9999px; }

/* ---------- FOOTER ---------- */
footer { text-align: center; padding: 48px 20px 56px; border-top: 1px solid var(--line); color: var(--muted); }
footer p { margin: 0; }
#footer-nume { font-family: var(--serif); font-size: 1.4rem; color: var(--text); }
.mic { font-size: .85rem; margin-top: .3rem !important; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(8,7,6,.985);
  display: flex; align-items: center; justify-content: center;
  animation: fadein .25s ease;
}
@keyframes fadein { from { opacity: 0; } }
.lightbox figure { margin: 0; max-width: 92vw; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lightbox figcaption {
  margin-top: .9rem; display: flex; gap: 1.2rem; align-items: baseline;
  color: var(--muted); font-size: .85rem;
}
#lb-cap { font-family: var(--serif); font-size: 1.15rem; color: var(--text); }
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 0; border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 2rem; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255,255,255,.14); }
.lb-close { top: 16px; right: 16px; font-size: 1.8rem; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .slide-img { object-position: center 30%; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lightbox img { max-height: 72vh; }
}

/* ---------- TELEFON ---------- */
@media (max-width: 600px) {
  .grid { columns: 2; column-gap: 8px; padding: 0 2px; }
  .tile { margin-bottom: 8px; border-radius: 4px; }
  .tile span { font-size: .9rem; padding: 1.8em .6em .5em; }
  main > section { padding-left: 12px; padding-right: 12px; }
  .tabs button { padding: .7em 1.2em; font-size: .9rem; }
  input[type="text"], textarea { font-size: 16px; } /* fără zoom automat pe iPhone */
}
/* telefon ținut pe orizontală */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero-content { padding-bottom: 28px; }
  h1 { font-size: 2.4rem; }
  .eyebrow { font-size: .65rem; margin-bottom: .2rem; }
  .ani { font-size: 1rem; margin-top: .2rem; }
  .motto { font-size: 1rem; margin-top: .4rem; }
  .scroll-hint { display: none; }
  .lightbox img { max-height: 80vh; }
  .lightbox figcaption { margin-top: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .slide.on .slide-img, .flacara, .scroll-hint { animation: none; }
  html { scroll-behavior: auto; }
}
