/* ===== Acasă la Brâncuși — custom styles ===== */

:root { color-scheme: light; }

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

/* Eyebrow label (Jost, uppercase, letterspaced) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 500;
  color: #A07636;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: #A07636;
}
.eyebrow.justify-center { justify-content: center; }

/* ===== Navbar states ===== */
#nav { color: #F7F2E9; }                 /* default: over hero (light text) */
#nav.scrolled {
  background: rgba(247, 242, 233, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 1px 0 rgba(227, 217, 198, 0.9), 0 8px 30px -18px rgba(34, 28, 20, 0.5);
  color: #221C14;                        /* dark text once scrolled */
}
#nav .nav-mark, #nav .nav-word { color: inherit; }
/* language toggle adapts to nav color */
#nav .nav-lang { border-color: currentColor; opacity: 0.9; }
.lang-btn.active { background: #A07636; color: #F7F2E9; }
#nav:not(.scrolled) .lang-btn:not(.active) { color: #F7F2E9; }

/* Logo: alb peste hero (transparent), negru cand bara devine crem */
.nav-logo { filter: invert(1) brightness(1.9); }
#nav.scrolled .nav-logo { filter: none; }
/* Logo footer: mereu alb pe fundal inchis */
.footer-logo { filter: invert(1) brightness(1.9); }

/* Mobile menu open state for hamburger */
#menuBtn[aria-expanded="true"] { color: #221C14; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Focus states (accessibility) ===== */
a:focus-visible,
button:focus-visible,
iframe:focus-visible {
  outline: 2px solid #A07636;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Parallax ===== */
.parallax-wrap { position: relative; overflow: hidden; }
.parallax-bg {
  position: absolute;
  left: 0;
  top: -16%;
  width: 100%;
  height: 132%;
  object-fit: cover;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* ===== Galerie circulară 3D ===== */
.cgallery-stage {
  position: relative;
  width: 100%;
  height: 460px;
  perspective: 1500px;
  cursor: grab;
  touch-action: pan-y;
}
.cgallery-stage.dragging { cursor: grabbing; }
.cgallery-rotator {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.cg-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240px;
  height: 330px;
  margin-left: -120px;
  margin-top: -165px;
  border-radius: 16px;
  overflow: hidden;
  background: #2B241C;
  border: 1px solid rgba(247, 242, 233, 0.12);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.75);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.cg-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cg-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
  color: #F7F2E9;
}
/* Mobil: carusel orizontal simplu cu glisare (fără 3D, fără suprapuneri) */
.cgallery-stage.is-flat { height: auto; perspective: none; cursor: auto; }
.cgallery-stage.is-flat .cgallery-rotator {
  position: static;
  inset: auto;
  transform: none !important;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cgallery-stage.is-flat .cgallery-rotator::-webkit-scrollbar { display: none; }
.cgallery-stage.is-flat .cg-card {
  position: relative;
  left: auto; top: auto;
  margin: 0;
  flex: 0 0 82%;
  height: 340px;
  transform: none !important;
  opacity: 1 !important;
  scroll-snap-align: center;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

/* ===== Widget Hoteliera ===== */
.hoteliera-frame { height: 640px; display: block; }
@media (max-width: 640px) { .hoteliera-frame { height: 560px; } }

/* ===== Lightbox ===== */
#lightbox.open { display: flex; }
#lightbox { touch-action: none; }
body.no-scroll { overflow: hidden; }

/* Font-weight helpers used inline (Tailwind font-### maps) */
.font-300 { font-weight: 300; }
.font-400 { font-weight: 400; }
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .animate-bounce { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}
