/* ============================================================
   components.css — reusable chrome: header, hero, footer,
   floating buttons, lightbox, cookie banner, legal pages
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 18px 0;
  /* semi-transparent base for legibility over the hero even at scroll 0 */
  background: linear-gradient(180deg, rgba(27, 26, 24, 0.42) 0%, rgba(27, 26, 24, 0.12) 70%, transparent 100%);
  backdrop-filter: blur(2px);
}
.site-header.scrolled {
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: #fff; transition: color .4s; }
.scrolled .brand { color: var(--charcoal); }
.brand-mark { font-size: 1.3rem; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-tm { font-size: .55em; font-family: var(--sans); vertical-align: super; opacity: .8; }

.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  color: rgba(255,255,255,0.92); font-size: 0.95rem; position: relative; padding: 4px 0;
  transition: color .3s;
}
.scrolled .main-nav a { color: var(--charcoal); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: currentColor; transition: width .3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Language switch + flags */
.lang-switch { position: relative; }
.lang-current { display: flex; align-items: center; gap: .25rem; color: rgba(255,255,255,0.92); font-size: .9rem; font-weight: 500; }
.scrolled .lang-current { color: var(--charcoal); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); list-style: none; padding: 6px;
  background: #fff; border-radius: 12px; box-shadow: var(--shadow); min-width: 150px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .25s var(--ease);
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button { width: 100%; text-align: left; padding: .55rem .8rem; border-radius: 8px; color: var(--charcoal); font-size: .9rem; display: flex; align-items: center; gap: .55rem; }
.lang-menu button:hover { background: var(--cream-2); }
.lang-current .flag { box-shadow: 0 0 0 1px rgba(255,255,255,0.3); }
.flag { width: 20px; height: 14px; border-radius: 2px; flex-shrink: 0; display: inline-block; vertical-align: middle; object-fit: cover; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: .3s var(--ease); border-radius: 2px; }
.scrolled .nav-toggle span { background: var(--charcoal); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0;
  background: url("../../imagini/502582241_1240226391443577_6209774998361751363_n.jpg") center/cover no-repeat;
  transform: scale(1.08); animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
/* Two-layer scrim for strong text legibility: vertical darkening + left-anchored gradient */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(20,18,16,0.78) 0%, rgba(20,18,16,0.45) 45%, rgba(20,18,16,0.15) 75%, transparent 100%),
    linear-gradient(180deg, rgba(20,18,16,0.40) 0%, rgba(20,18,16,0.20) 35%, rgba(20,18,16,0.75) 100%);
}
.hero-content { position: relative; max-width: 760px; padding-block: 120px; }
.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5rem); white-space: pre-line; margin-bottom: 1.4rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.5);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 540px; color: rgba(255,255,255,0.95);
  margin-bottom: 2.4rem; text-shadow: 0 1px 12px rgba(0,0,0,0.6);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.hero-title.fade-out, .hero-subtitle.fade-out { opacity: 0; transform: translateY(-8px); }
.hero .eyebrow.light { text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,0.8);
}
.hero-scroll-line { width: 1px; height: 46px; background: linear-gradient(rgba(255,255,255,0.8), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(245,241,234,0.78); padding: clamp(54px, 7vw, 84px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer .brand-name { color: var(--cream); display: block; margin-bottom: .8rem; }
.footer-brand p { font-size: .95rem; max-width: 32ch; }
.footer-made { margin-top: 1rem !important; color: var(--pine-light) !important; font-size: .85rem !important; }
.site-footer h4 { color: var(--cream); font-size: 1.1rem; margin-bottom: .9rem; font-family: var(--sans); font-weight: 600; letter-spacing: .02em; }
.site-footer h4.mt { margin-top: 1.6rem; }
.site-footer p { margin-bottom: .4rem; font-size: .94rem; }
.site-footer a:hover { color: var(--cream); }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: .85rem; color: rgba(245,241,234,0.55); }
.footer-policies { list-style: none; padding: 0; }
.footer-policies li { margin-bottom: .4rem; }
.anpc-logos { display: flex; flex-direction: column; gap: .6rem; }
.anpc-logos img { width: 200px; max-width: 100%; height: auto; border-radius: 6px; }
.footer-credit a { color: var(--pine-light); font-weight: 600; }
.footer-credit a:hover { color: var(--cream); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; justify-content: space-between; align-items: center; }

/* ---------- Floating buttons ---------- */
.fab {
  position: fixed; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), opacity .3s;
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab-whatsapp { right: 24px; bottom: 24px; background: #25D366; color: #fff; }
.fab-top { right: 24px; bottom: 92px; background: var(--charcoal); color: var(--cream); font-size: 1.3rem; opacity: 0; pointer-events: none; }
.fab-top.show { opacity: 1; pointer-events: auto; }
/* "Sună acum" — hidden by default, shown only during business hours via .show */
.fab-call { right: 24px; bottom: 160px; background: var(--wood); color: var(--cream); opacity: 0; pointer-events: none; }
.fab-call.show { opacity: 1; pointer-events: auto; }
@media (max-width: 720px) {
  .fab-whatsapp { right: 16px; bottom: 16px; }
  .fab-top { right: 16px; bottom: 84px; }
  .fab-call { right: 16px; bottom: 152px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(15,14,13,0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close, .lb-prev, .lb-next { position: absolute; color: #fff; font-size: 2rem; width: 54px; height: 54px; border-radius: 50%; transition: background .25s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.15); }
.lb-close { top: 22px; right: 26px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 95; max-width: 420px;
  background: var(--charcoal); color: var(--cream); padding: 1.3rem 1.5rem;
  border-radius: var(--r); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1rem;
  animation: slideUp .5s var(--ease);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-banner[hidden] { display: none !important; } /* override .cookie-banner display:flex */
.cookie-banner p { font-size: .88rem; color: rgba(245,241,234,0.85); }
.cookie-actions { display: flex; gap: .6rem; justify-content: flex-end; }

/* ---------- Map facade ---------- */
.map-frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/7; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-facade {
  width: 100%; height: 100%; display: flex; flex-direction: column; gap: .6rem;
  align-items: center; justify-content: center; color: var(--cream);
  background: linear-gradient(135deg, var(--pine), var(--charcoal));
  font-family: var(--sans); font-size: .98rem; transition: filter .3s var(--ease);
}
.map-facade:hover { filter: brightness(1.08); }
.map-facade .map-pin { font-size: 2.4rem; }

/* ---------- Legal pages ---------- */
.legal-page { padding-top: 120px; }
.legal { max-width: 820px; margin: 0 auto; padding: 2rem 0 4rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .4rem; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 2.4rem; }
.legal h2 { font-size: 1.5rem; margin: 2.2rem 0 .7rem; }
.legal h3 { font-size: 1.2rem; margin: 1.4rem 0 .5rem; }
.legal p, .legal li { color: #423d35; font-size: 1.02rem; margin-bottom: .8rem; }
.legal ul, .legal ol { padding-left: 1.4rem; }
.legal a { color: var(--wood); text-decoration: underline; }
.legal .back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.5rem; color: var(--wood); font-weight: 500; }
.legal-toc { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.5rem; margin-bottom: 2rem; }
.legal-toc ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.legal-toc a { text-decoration: none; }
