/* overflow-x doar pe body: pe html rupe position:sticky al navbarului */
html { max-width: 100%; }
body { overflow-x: hidden !important; max-width: 100%; }

.navlink{ text-decoration:none; color:#222; font-weight:500; }
.navlink:hover{ text-decoration:underline; }

/* Cookie banner */
.cookie-banner{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.cookie-banner__inner{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  flex-wrap: wrap;
}

.cookie-banner__text{
  min-width: 0;
  flex: 1;
}

.cookie-banner__title{
  font-weight: 700;
  margin-bottom: 4px;
}

.cookie-banner__desc{
  font-size: 14px;
  color: #555;
  line-height: 1.35;
}

.cookie-banner__actions{
  display: flex;
  gap: 8px;
  align-items: center;
}

.cookie-btn{
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
}

.cookie-btn--primary{
  background: #0d6efd; /* bootstrap primary */
  border-color: #0d6efd;
  color: #fff;
}

.cookie-btn--secondary{
  background: #f8f9fa;
}

.cookie-banner__link{
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}

.cookie-banner__link:hover{
  text-decoration: underline;
}

.cookie-banner__sep{
  margin: 0 6px;
  color: #999;
}

@media (max-width: 576px){
  .cookie-banner__actions{ width: 100%; }
  .cookie-btn{ flex: 1; }
}

/* =========================
   Backdrop gradient (GARANTAT vizibil)
   ========================= */

/* Strat de fundal fix, sub tot conținutul */
body{
  position: relative;
  background: transparent !important;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1; /* sub tot */
  background: linear-gradient(
    180deg,
    rgba(13,110,253,.18) 0px,
    rgba(13,110,253,.08) 180px,
    rgba(255,255,255,1) 520px
  );
  /* Fix Pixel/Android viewport bug */
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

/* ca să nu intre titlurile sub navbar la scroll/ancore */
html{
  scroll-padding-top: 170px;
}

/* =========================
   Header polish (premium)
   ========================= */

/* Sticky handled by Bootstrap .sticky-top */
/* Sticky explicit (nu doar via Bootstrap .sticky-top) */
.site-header{
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1030 !important;

  /* transparență 75% (glass) */
  background: rgba(255,255,255,.75) !important;

  /* blur glass */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);

  /* separator vizibil */
  border-bottom: 1px solid rgba(0,0,0,.18) !important;

  /* umbră vizibilă */
  box-shadow: 0 14px 32px rgba(0,0,0,.28) !important;
}

/* împiedică navbarul să picteze alb peste transparență */
.site-header .navbar{
  background: transparent !important;
}

/* Navbar spacing & look */
.site-header .navbar{
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-header .navbar-brand{
  padding: 0;
}

/* Nav links – mai aerisit */
.site-header .navbar-nav .nav-link{
  padding-left: 14px;
  padding-right: 14px;
  font-weight: 500;
  border-radius: 10px;
  transition: background-color .18s ease, color .18s ease;
}

/* Hover auriu – același ton ca butonul de cont (es-acct-btn) */
.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link:focus-visible{
  background: #fdf8ea;
  color: #6f5608;
}

/* CTA button – mai “soft & premium” */
.site-header .btn-primary{
  border-radius: 14px;
  padding: 8px 16px;
  font-weight: 600;
}

/* Mobile fine tuning */
@media (max-width: 991.98px){
  html{
    scroll-padding-top: 130px;
  }

  .site-header .navbar{
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-header .navbar-nav .nav-link{
    padding: 10px 0;
  }
}


/* --- Cookie banner (discret) --- */
.es-cookie-banner{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
}
.es-cookie-banner__inner{
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.es-cookie-banner__title{
  font-weight: 600;
  margin-bottom: 2px;
}
.es-cookie-banner__desc{
  font-size: 14px;
  color: rgba(0,0,0,.65);
}
.es-cookie-banner__link{
  text-decoration: none;
}
.es-cookie-banner__sep{
  margin: 0 8px;
  opacity: .6;
}
.es-cookie-banner__actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.es-cookie-btn{
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid rgba(0,0,0,.15);
  background: white;
  font-size: 13px;
  cursor: pointer;
}
.es-cookie-btn--primary{
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}
.es-cookie-btn--secondary{
  background: #fff;
}

/* --- Cookie modal --- */
.es-cookie-modal{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
}
.es-cookie-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}
.es-cookie-modal__panel{
  position: relative;
  width: min(720px, calc(100vw - 24px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
}
.es-cookie-modal__head{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.es-cookie-modal__title{
  font-weight: 600;
}
.es-cookie-x{
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.es-cookie-modal__body{
  padding: 12px 16px 6px;
}
.es-cookie-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.es-cookie-row__label{
  font-weight: 600;
  font-size: 14px;
}
.es-cookie-row__help{
  color: rgba(0,0,0,.6);
  font-size: 13px;
}
.es-cookie-modal__links{
  margin-top: 10px;
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(0,0,0,.6);
}
.es-cookie-modal__foot{
  padding: 12px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
/* =========================
   Tipografie premium (adaugat 2026-06-10)
   - Inter pentru corp text, Cormorant Garamond pentru titluri mari
   - Doar fata publica (adminul nu incarca acest fisier)
   ========================= */
body{
  font-family:'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
h1, h2{
  font-family:'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  letter-spacing:.005em;
}
.hp-hero h1 span{ font-style:italic; }
.hp-hero-badge{ text-transform:uppercase; letter-spacing:.07em; font-size:11px; }

/* =========================
   Aparitie lina la scroll (adaugat 2026-06-10)
   - Starea ascunsa e aplicata DOAR de JS (clasa .es-reveal);
     fara JavaScript totul ramane vizibil normal.
   ========================= */
.es-reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .55s ease, transform .55s ease;
  will-change:opacity, transform;
}
.es-reveal.es-in{
  opacity:1;
  transform:none;
}
@media (prefers-reduced-motion: reduce){
  .es-reveal{ opacity:1; transform:none; transition:none; }
}


/* ================================================================
   HOVER UNITAR - butoanele principale (definit o singura data aici)
   Selector a.<clasa>/button.<clasa> = specificitate mai mare decat
   regulile inline din fiecare pagina, deci le bate fara !important.
   ================================================================ */
a.hp-btn-primary, a.ee-btn-primary, a.sv-btn-primary, a.cm-btn-primary,
a.wc-btn-primary, a.sz-btn-primary, a.pr-hero-cta, button.sp-btn-add {
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s ease, filter .18s ease, opacity .18s ease;
}
a.hp-btn-primary:hover, a.ee-btn-primary:hover, a.sv-btn-primary:hover, a.cm-btn-primary:hover,
a.wc-btn-primary:hover, a.sz-btn-primary:hover, a.pr-hero-cta:hover, button.sp-btn-add:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
  filter: brightness(1.04);
}
a.hp-btn-primary:active, a.ee-btn-primary:active, a.sv-btn-primary:active, a.cm-btn-primary:active,
a.wc-btn-primary:active, a.sz-btn-primary:active, a.pr-hero-cta:active, button.sp-btn-add:active {
  transform: translateY(0);
  box-shadow: none;
  transition-duration: .06s;
}
a.hp-btn-primary:focus-visible, a.ee-btn-primary:focus-visible, a.sv-btn-primary:focus-visible, a.cm-btn-primary:focus-visible,
a.wc-btn-primary:focus-visible, a.sz-btn-primary:focus-visible, a.pr-hero-cta:focus-visible, button.sp-btn-add:focus-visible {
  outline: 3px solid rgba(0,0,0,.45);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  a.hp-btn-primary, a.ee-btn-primary, a.sv-btn-primary, a.cm-btn-primary,
a.wc-btn-primary, a.sz-btn-primary, a.pr-hero-cta, button.sp-btn-add { transition: none; }
  a.hp-btn-primary:hover, a.ee-btn-primary:hover, a.sv-btn-primary:hover, a.cm-btn-primary:hover,
a.wc-btn-primary:hover, a.sz-btn-primary:hover, a.pr-hero-cta:hover, button.sp-btn-add:hover { transform: none; }
}
