/* Meniu-Digital.ro — pagină meniu client + flipbook */

/* ---------- Antet client ---------- */
.client-head { padding: 1.5rem 0 1.25rem; }
.client-head .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.client-head h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); }
.client-head h1 img { max-height: 120px; width: auto; max-width: min(460px, 80vw); }
.client-sub { margin: .3rem 0 0; color: var(--muted); }
.client-links { display: flex; flex-wrap: wrap; gap: clamp(.8rem, 3vw, 2.2rem); list-style: none; margin: 0; padding: 0; }
.client-links a { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--navy); color: var(--navy); display: grid; place-items: center; transition: background .15s, color .15s, transform .15s; }
.client-links a:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
@media (max-width: 640px) {
  .client-head .container { justify-content: center; text-align: center; }
  .client-links a { width: 50px; height: 50px; }
}

/* ---------- Viewer ---------- */
.fb { position: relative; background: #3F4247; color: #fff; user-select: none; -webkit-user-select: none; }
.fb:fullscreen { display: flex; flex-direction: column; }
.fb-stage { position: relative; height: min(calc(100vh - 140px), 1100px); min-height: 420px; display: grid; place-items: center; overflow: hidden; touch-action: pan-y pinch-zoom; perspective: 2600px; }
.fb:fullscreen .fb-stage { flex: 1; height: auto; }
.fb-holder { position: relative; transition: transform .6s ease; }
.fb-pg { background: #fff; overflow: hidden; }
.fb-pg img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; user-select: none; }
.fb-holder .stf__parent { margin: 0 auto; }
.fb-pg { box-shadow: 0 6px 22px rgba(0,0,0,.3); }

/* Săgeți laterale */
.fb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 56px; height: 72px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.fb-nav:hover { background: rgba(255,255,255,.08); }
.fb-nav[disabled] { opacity: .25; cursor: default; }
.fb-prev { left: .5rem; }
.fb-next { right: .5rem; }
@media (max-width: 640px) {
  .fb-stage { height: min(calc(100svh - 120px), 760px); min-height: 380px; padding-top: 30px; }
  .fb-nav { width: 40px; height: 56px; background: rgba(20,22,25,.55); }
  .fb-nav[disabled] { opacity: 0; pointer-events: none; }
  .fb-prev { left: 4px; } .fb-next { right: 4px; }
}

/* Contor + bara de unelte */
.fb-counter { position: absolute; top: 1rem; left: 1rem; z-index: 10; background: rgba(30,32,36,.85); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: .45rem 1rem; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .fb-counter { top: .5rem; left: 50%; transform: translateX(-50%); font-size: .95rem; padding: .3rem .8rem; } }
.fb-toolbar { display: flex; justify-content: center; align-items: center; gap: .25rem; padding: .5rem; background: #2E3034; flex-wrap: wrap; }
.fb-toolbar button, .fb-toolbar a { width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.fb-toolbar button:hover, .fb-toolbar a:hover { background: rgba(255,255,255,.12); color: #fff; }
.fb-toolbar button[disabled] { opacity: .3; cursor: default; }
.fb-toolbar input[type=range] { width: min(320px, 40vw); accent-color: var(--orange); margin: 0 .5rem; }
.fb :focus-visible { outline: 3px solid #FFB8A6; outline-offset: 2px; }

/* Zoom */
.fb-zoom { position: fixed; inset: 0; z-index: 200; background: rgba(20,22,25,.97); overflow: auto; -webkit-overflow-scrolling: touch; }
.fb-zoom[hidden] { display: none; }
.fb-zoom__inner { display: flex; justify-content: center; gap: 0; padding: 4.5rem 1rem 2rem; min-width: min-content; }
.fb-zoom__inner img { width: min(1600px, 96vw); height: auto; background: #fff; }
.fb-zoom.two .fb-zoom__inner img { width: min(1100px, 48vw); }
@media (max-width: 900px) { .fb-zoom.two .fb-zoom__inner { flex-direction: column; align-items: center; gap: 1rem; } .fb-zoom.two .fb-zoom__inner img { width: 96vw; } }
.fb-zoom__close { position: fixed; top: 1rem; right: 1rem; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 1.6rem; cursor: pointer; }

/* Versiune text (accesibilitate + SEO) */
.fb-text { margin: 2rem auto; max-width: 900px; padding: 0 1.25rem; }
.fb-text details { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; }
.fb-text summary { cursor: pointer; padding: 1rem 1.3rem; font-weight: 700; color: var(--navy); }
.fb-text section { padding: 0 1.3rem 1rem; }
.fb-text h2 { font-size: 1.05rem; margin: 1rem 0 .4rem; }
.fb-text p { white-space: pre-line; color: var(--ink); font-size: .95rem; margin: 0; }

.client-foot { text-align: center; padding: 1.5rem 1rem 2.5rem; color: var(--muted); font-size: .92rem; }
.client-foot img { width: 170px; margin: .5rem auto 0; }

/* buton sunet */
[data-fb="sound"] .snd-off { display: none; }
[data-fb="sound"].is-off .snd-on { display: none; }
[data-fb="sound"].is-off .snd-off { display: inline; }
