/* ===================== BASE / BACKGROUND ===================== */
html, body { height: 100%; }
body.site-bg{
  font-family: "Playfair Display", serif;
  margin: 0;
  background:
    radial-gradient(rgba(255,255,255,.55) 1px, transparent 1px) 0 0/6px 6px,
    linear-gradient(#bfbfbf, #bfbfbf);
}
/* “foaia” din centru */
.sheet{
  max-width: 1040px;
  margin: 0 auto;
  background: #d7d7d7;
  border-radius: 12px;
  overflow: hidden;               /* taie colțurile pentru nav/footer */
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
/* ===================== TOP NAV ===================== */
.topnav{
  background: linear-gradient(#0f0f0f, #252525);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topnav__menu{
  display: flex;
  gap: 0;
}
.topnav__link{
  display: inline-block;
  padding: 18px 34px;
  color: #f2f2f2;
  text-decoration: none;
  border-right: 1px solid rgba(255,255,255,.08);
}
.topnav__link:hover{ background: rgba(255,255,255,.05); }
.topnav__link.is-active{
  background: #f28c00;
  color: #fff;
}
.nav-toggle, .nav-toggle-label { display:none; }
@media (max-width: 991px){
  .nav-toggle-label { display:block; }
}
/* ===================== HERO ===================== */
.hero-section{
  background: #7d7f6f;           /* olive */
  padding: 26px 0;
}
.hero-wrap{ min-height: 360px; }
.hero-left{
  padding: 20px 10px;
  color: #fff;
}
.hero-name{
  font-size: 52px;
  line-height: 0.95;
  margin: 0;
}
.hero-role{
  font-size: 20px;
  opacity: .95;
}
.hero-mid{
  padding: 26px 18px;
  color: #111;
}
.hero-title{
  font-size: 52px;
  line-height: 0.95;
  margin: 0 0 12px 0;
  color: #111;
}
.hero-text{
  font-size: 14px;
  line-height: 1.45;
  max-width: 270px;
  margin-bottom: 14px;
}
.hero-right{
  padding: 0 18px 0 0;
}
.hero-photo{
  max-height: 480px;
  width: auto;
  background: #7d7f6f;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}
/* logo stânga (medalion) */
.hero-left img{
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.25));
}
/* ===================== BUTTONS ===================== */
.btn-orange{
  background: #f28c00;
  border: 0;
  color: #fff;
  border-radius: 12px;
  padding: 10px 18px;
  box-shadow: 0 8px 16px rgba(0,0,0,.25);
}
.btn-orange:hover{
  background: #ff9a1a;
  color: #fff;
}
.btn-orange.btn-sm{ padding: 9px 16px; }
/* ===================== WELCOME BAR ===================== */
.welcome-bar{
  background: radial-gradient(circle at 30% 30%, #3c3c3c, #1a1a1a);
  color: #fff;
  padding: 28px 0;
}
.welcome-title{
  font-size: 54px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.welcome-text{
  font-size: 14px;
  line-height: 1.45;
}
.welcome-link{
  color: #ffffff;
  text-decoration: none;
}
.welcome-link:hover{ text-decoration: underline; }
/* ===================== LAW SECTION ===================== */
.law-section{
  background: #d7d7d7;
  padding: 26px 0 34px;
}
.law-title{
  font-size: 40px;
  margin: 0 0 10px;
}
.law-strong, .law-text{
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 12px;
}
.law-img{
  max-height: 280px;
  width: auto;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.25));
}
/* ===================== FOOTER ===================== */
.footer{
  background: linear-gradient(#0f0f0f, #2a2a2a);
  color: #fff;
  padding: 18px 22px;
}
.footer__inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer a{
  color: #fff;
  text-decoration: none;
  opacity: .95;
}
.footer a:hover{ text-decoration: underline; }
/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px){
  .sheet{ border-radius: 0; }
  .hero-title, .welcome-title{ font-size: 38px; }
  .hero-name{ font-size: 40px; }
  .hero-text{ max-width: 100%; }
  .footer__inner{ flex-direction: column; text-align: center; }
}
@media (max-width: 575.98px){
  .topnav__menu{ flex-wrap: wrap; }
  .topnav__link{ padding: 12px 16px; }
}
.book-card { border: 0; border-radius: 16px; overflow: hidden; }
.book-cover { height: 100%; object-fit: cover; min-height: 140px; }
@media (min-width: 768px) { .book-cover { min-height: 170px; } }

/* ===== BOOK GRID: 4/linie, compact ===== */
.book-card{
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

.book-card .card-body{
  padding: 14px;         /* mai mic decât 1.6rem */
}

.book-card .badge{
  border-radius: 10px;
  font-size: 11px;
  padding: 4px 8px;
}

.book-card .card-title{
  font-size: 16px;
  line-height: 1.15;
  margin: 8px 0 6px;
}

.book-card .small{
  font-size: 12px;
  line-height: 1.35;
}

.book-thumb{
  width: 100%;
  height: 170px;         /* cheie pentru uniformitate */
  object-fit: cover;     /* umple frumos */
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
.book-card .btn{
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 12px;
}

/* ===== Premium Book Modal ===== */
.book-modal__content{
  border: 0;
  border-radius: 18px;
  overflow: hidden;
}

.book-modal__header{
  background: linear-gradient(#111, #2a2a2a);
  color: #fff;
  border: 0;
}

.book-modal__header .btn-close{
  filter: invert(1);
  opacity: .9;
}

.book-badge-soft{
  color: #111;
  border: 1px solid rgba(0,0,0,.08);
}

.book-modal__body{
  background: #f6f6f6;
}

.book-modal__coverWrap{
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}

.book-modal__cover{
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
}

.book-modal__lead{
  font-size: 14px;
  margin-bottom: 12px;
}

.book-modal__text{
  font-size: 14px;
  line-height: 1.6;
  color: #111;
}

.book-meta__item{
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.06);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.book-meta__item span{
  color: #666;
  font-size: 12px;
}

.book-meta__item strong{
  color: #111;
  font-size: 13px;
  font-weight: 700;
}

.book-modal__footer{
  background: #f6f6f6;
  border: 0;
}

@media (max-width: 991px){
  .book-thumb{ height: 190px; } /* pe tabletă puțin mai mare */
}

/* ===== BOOKS LIST: fix coperti prea mari ===== */
.book-cover-wrap{
  width: 100%;
  aspect-ratio: 2 / 3;     /* aspect de coperta */
  max-height: 280px;       /* limita practica (optional, dar util) */
  overflow: hidden;
  background: #f3f3f3;
  border-radius: 10px;
}

.book-cover{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;       /* umple frumos */
}

/* optional: pe ecrane mai mici poti ajusta */
@media (max-width: 575.98px){
  .book-cover-wrap{ max-height: 240px; }
}
