:root {
  --bg: #fdfbf8;
  --ink: #1e1e1e;
  --burgundy: #6a1b2b;
  --gold: #c6a664;
  --grey: #807b74;
  --soft: #f4f0ec;
  --shadow: 0 6px 24px rgba(0,0,0,0.06);
}

/* ===== RESET & BASE ===== */
body {
  margin: 0;
  font-family: 'Lora', serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
}

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  position: sticky;
  top: 0;
  z-index: 50;
}
.logo img {
  height: 48px;              /* înălțimea ideală pentru un logo în header */
  width: auto;               /* menține proporțiile originale */
  display: block;
}

nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s ease;
}
nav a:hover {
  color: var(--gold);
}
nav a.active {
  color: var(--gold);
}
.language {
  font-weight: 600;
  font-size: 13px;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(rgba(106,27,43,0.65), rgba(106,27,43,0.65)),
              url('../img/hero-probox.webp') center/cover no-repeat;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero h1 {
  color: #fff;
  font-size: 48px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ===== CONTENT SECTIONS ===== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}
.card {
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 40px;
  margin-bottom: 40px;
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
}
h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  color: var(--burgundy);
  margin-top: 0;
}
ul {
  margin-top: 10px;
  padding-left: 20px;
}
.cta-link {
  color: var(--burgundy);
  font-weight: 600;
  text-decoration: none;
}
.cta-link:hover {
  color: var(--gold);
}

/* ===== FOOTER ===== */
footer {
  background: var(--burgundy);
  color: #f9f9f9;
  text-align: center;
  padding: 25px 0;
  font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; padding: 0 20px; }
  .card { padding: 25px; }
  nav a { margin: 0 6px; font-size: 13px; }
}
/* Forțează dimensiunea logo-ului în orice pagină */
.site-header img { 
  max-height: 56px; 
  width: auto; 
  display: block; 
}

/* opțional: mai mic pe mobil */
@media (max-width: 768px){
  .site-header img { max-height: 44px; }
}
/* ===== Nav dropdown ===== */
nav .dropdown { position: relative; display: inline-block; vertical-align: middle; }
nav .dropdown > a.has-caret::after {
  content: "▾"; margin-left: 6px; font-size: .85em; opacity: .8;
}

nav .dropdown .menu {
  position: absolute; top: 100%; left: 0;
  display: none;
  min-width: 260px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  padding: 8px;
  z-index: 1000;
}

nav .dropdown .menu a {
  display: block;
  padding: 10px 12px;
  margin: 2px 0;
  text-transform: none;
  letter-spacing: 0;           /* sublink-urile nu mai sunt uppercase */
  font-family: 'Lora', serif;  /* mai elegant pt. subitems */
  color: var(--ink);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
nav .dropdown .menu a:hover {
  background: var(--soft);
  color: var(--burgundy);
}

/* Afișare pe hover și la focus (pt. tastatură / touch) */
nav .dropdown:hover .menu,
nav .dropdown:focus-within .menu { display: block; }

/* pe mobil, păstrăm usability */
@media (max-width: 768px){
  nav .dropdown .menu { min-width: 200px; }
}
/* ===== Dropdown nav fix ===== */
.site-header nav{display:flex;gap:16px;align-items:center;flex-wrap:nowrap}
nav .dropdown{position:relative;display:inline-block}
nav .dropdown > a.has-caret::after{content:"▾";margin-left:6px;font-size:.85em;opacity:.8}

/* Submenu ascuns implicit */
nav .dropdown .menu{
  position:absolute; top:100%; left:0;
  display:none; min-width:260px;
  background:#fff; border:1px solid #eee; border-radius:10px;
  box-shadow:0 10px 28px rgba(0,0,0,.08); padding:8px; z-index:9999;
}

/* Linkurile din submenu – stil separat față de cele din nav */
nav .dropdown .menu a{
  display:block; padding:10px 12px; margin:2px 0;
  text-transform:none; letter-spacing:0;
  font-family:'Lora',serif; color:var(--ink);
  border-radius:8px; text-decoration:none; white-space:nowrap;
}
nav .dropdown .menu a:hover{background:var(--soft);color:var(--burgundy)}

/* Afișare pe hover/focus (și pentru tastatură) */
nav .dropdown:hover .menu,
nav .dropdown:focus-within .menu{display:block}

/* Mobil – meniu mai îngust */
@media (max-width:768px){ nav .dropdown .menu{min-width:200px} }
/* Bază */
.site-header{background:#fff;padding:14px 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee;position:sticky;top:0;z-index:1000}
.logo img{max-height:56px;width:auto;display:block}
.site-header nav{display:flex;gap:16px;align-items:center}
.site-header nav a{font-family:'Montserrat',sans-serif;text-transform:uppercase;letter-spacing:.08em;font-size:14px;text-decoration:none;color:var(--ink)}
.site-header nav a:hover{color:var(--gold)}
/* Hamburger */
.navchk{display:none}
.menu-btn{display:none;width:34px;height:28px;position:relative;cursor:pointer}
.menu-btn span{position:absolute;left:0;right:0;height:3px;background:var(--ink);border-radius:2px;transition:.25s}
.menu-btn span:nth-child(1){top:3px}.menu-btn span:nth-child(2){top:12px}.menu-btn span:nth-child(3){top:21px}

/* ===== Mobil ===== */
@media (max-width: 992px){
  html,body{overflow-x:hidden}
  .menu-btn{display:block}
  /* ascunde complet meniul închis */
  .site-header nav{
    position:fixed;top:0;right:0;height:100vh;width:80%;max-width:360px;
    background:#fff;box-shadow:-16px 0 32px rgba(0,0,0,.12);
    transform:translateX(100%);transition:transform .28s ease;
    padding:90px 24px 24px;flex-direction:column;align-items:flex-start;gap:14px;
    overflow-y:auto;display:flex;
  }
  /* overlay */
  .nav-overlay{position:fixed;inset:0;background:rgba(0,0,0,.35);opacity:0;pointer-events:none;transition:.2s}
  /* deschis */
  .navchk:checked ~ .menu-btn span:nth-child(1){transform:translateY(9px) rotate(45deg)}
  .navchk:checked ~ .menu-btn span:nth-child(2){opacity:0}
  .navchk:checked ~ .menu-btn span:nth-child(3){transform:translateY(-9px) rotate(-45deg)}
  .navchk:checked ~ .nav-overlay{opacity:1;pointer-events:auto}
  .navchk:checked ~ nav{transform:translateX(0)}
  .logo img{max-height:44px}
}
/* listă secundară pentru Produse */
.sub-links{margin:6px 0 0 12px;display:flex;flex-direction:column;gap:8px}
.sub-links a{text-transform:none;letter-spacing:0;font-family:'Lora',serif}
/* Vizibilitate adaptivă */
.desktop-only{display:flex;}
.mobile-only{display:none;}
@media (max-width:992px){
  .desktop-only{display:none;}
  .mobile-only{display:block;}
}

/* Dropdown desktop */
nav .dropdown{position:relative; display:inline-block;}
nav .dropdown > a.has-caret::after{content:"▾"; margin-left:6px; font-size:.85em; opacity:.8;}
nav .dropdown .menu{
  position:absolute; top:100%; left:0; display:none;
  min-width:260px; background:#fff; border:1px solid #eee;
  border-radius:10px; box-shadow:0 10px 28px rgba(0,0,0,.08);
  padding:8px; z-index:9999;
}
nav .dropdown .menu a{
  display:block; padding:10px 12px; margin:2px 0; text-transform:none; letter-spacing:0;
  font-family:'Lora',serif; color:var(--ink); border-radius:8px; white-space:nowrap; text-decoration:none;
}
nav .dropdown .menu a:hover{background:var(--soft); color:var(--burgundy);}
nav .dropdown:hover .menu,
nav .dropdown:focus-within .menu{display:block;}
/* ===== Section hero subtile ===== */
.subhero {
  background: linear-gradient(180deg, rgba(106,27,43,.08), rgba(106,27,43,0));
  padding: 28px 5%;
  border-bottom: 1px solid #eee;
}
.subhero h1 { margin: 0; font-family: 'Montserrat', sans-serif; color: var(--burgundy); }
.subhero p { margin: 6px 0 0; color: var(--grey); }

/* ===== Product grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card--product {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}
.card--product:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(0,0,0,.09);
}

/* thumbnail top */
.prod-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: #f7f3ee url("../img/bib/bib-generic.webp") center/cover no-repeat;
  margin-bottom: 14px;
}

/* title + chips */
.prod-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 8px;
}
.chips { display:flex; gap:6px; flex-wrap:wrap; margin-bottom: 10px; }
.chip {
  font-size: 12px; padding: 6px 10px; border-radius: 999px;
  background: var(--soft); color: var(--ink); border: 1px solid var(--border);
}
.chip--gold { background: #fff8ea; border-color: #f0e2c5; }

/* feature bullets (micro-beneficii) */
.micro { margin: 10px 0 14px; color: var(--grey); font-size: 14px; }
.micro li { margin: 4px 0; }

/* PDF buttons */
.btn-row { display:flex; gap:8px; flex-wrap:wrap; }
.btn {
  display:inline-flex; align-items:center; gap:8px;
  font-size:14px; font-weight:600; text-decoration:none;
  border:1px solid var(--border); padding:10px 12px; border-radius:10px;
  background:#fff; color: var(--burgundy);
}
.btn:hover { background: var(--soft); }
.btn svg { width:18px; height:18px; }

/* subtle ribbon */
.ribbon {
  position:absolute; top:10px; right:-40px; rotate: 35deg;
  background: linear-gradient(90deg, #c6a664, #e6d19a);
  color:#633; font-weight:700; font-size:12px; padding:6px 50px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

/* divider */
.divider { height:1px; background: #eee; margin: 24px 0; }

/* responsive spacing */
@media (max-width: 768px){
  .subhero { padding: 22px 5%; }
}
/* ===== Header: logo fix (dacă nu-l ai deja) ===== */
.site-header img{max-height:56px;width:auto;display:block}
@media (max-width:768px){.site-header img{max-height:44px}}

/* ===== Sub-hero pentru pagina de produse ===== */
.subhero{
  background:linear-gradient(180deg,rgba(106,27,43,.08),rgba(106,27,43,0));
  padding:28px 5%;
  border-bottom:1px solid #eee;
}
.subhero h1{margin:0;color:var(--burgundy);font-family:'Montserrat',sans-serif}
.subhero p{margin:6px 0 0;color:var(--grey)}

/* ===== Grid de produse (carduri) ===== */
.product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.card--product{
  padding:20px;border-radius:16px;background:#fff;
  box-shadow:0 12px 36px rgba(0,0,0,.06);
  transition:transform .18s ease, box-shadow .18s ease;
  position:relative;overflow:hidden
}
.card--product:hover{transform:translateY(-4px);box-shadow:0 16px 44px rgba(0,0,0,.09)}

/* Thumbnail sus (imagine produs) */
.prod-thumb{
  width:100%;aspect-ratio:4/3;border-radius:12px;
  background:#f7f3ee url("/assets/img/bib/bib-generic.webp") center/cover no-repeat;
  margin-bottom:14px
}

/* Titlu + chip-uri */
.prod-title{font-family:'Montserrat',sans-serif;font-size:18px;color:var(--ink);margin:0 0 8px}
.chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.chip{font-size:12px;padding:6px 10px;border-radius:999px;background:var(--soft);color:var(--ink);border:1px solid var(--border)}
.chip--gold{background:#fff8ea;border-color:#f0e2c5}

/* Micro-beneficii */
.micro{margin:10px 0 14px;color:var(--grey);font-size:14px}
.micro li{margin:4px 0}

/* Butoane PDF / Detalii */
.btn-row{display:flex;gap:8px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;
  text-decoration:none;border:1px solid var(--border);padding:10px 12px;border-radius:10px;
  background:#fff;color:var(--burgundy)
}
.btn:hover{background:var(--soft)}
.btn svg{width:18px;height:18px}

/* Ribbon opțional pe card */
.ribbon{
  position:absolute;top:10px;right:-40px;rotate:35deg;
  background:linear-gradient(90deg,#c6a664,#e6d19a);
  color:#633;font-weight:700;font-size:12px;padding:6px 50px;
  box-shadow:0 6px 16px rgba(0,0,0,.12)
}

/* Divider util la nevoie */
.divider{height:1px;background:#eee;margin:24px 0}
/* Buton paralelogram */
.btn-para{
  --skew: -12deg;
  display:inline-block;
  position:relative;
  padding:12px 18px;
  background:var(--burgundy);
  color:#fff!important;
  text-decoration:none;
  font-weight:700;
  border-radius:10px;
  transform:skewX(var(--skew));
  box-shadow:0 8px 20px rgba(106,27,43,.18);
}
.btn-para span{ display:inline-block; transform:skewX(calc(-1 * var(--skew))); }
.btn-para:hover{ background:var(--burgundy-900); }

/* Linie de butoane sub carduri */
.btn-row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
/* ===== Modern product grid ===== */
.products-wrap{padding:32px 5%}
.grid-modern{
  display:grid; gap:22px;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}
.card-modern{
  background:#fff;border:1px solid #eee;border-radius:18px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
  overflow:hidden; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-modern:hover{transform:translateY(-4px); box-shadow:0 14px 36px rgba(0,0,0,.08); border-color:#e8e2d8}

/* media (top) */
.card-media{position:relative; aspect-ratio:4/3; overflow:hidden; background:#f8f6f3}
.card-media img{width:100%; height:100%; object-fit:cover; transform:scale(1.02); transition:transform .35s ease}
.card-modern:hover .card-media img{transform:scale(1.06)}
.badge-volume{
  position:absolute; top:12px; left:12px;
  background:var(--burgundy); color:#fff; font-weight:700; font-size:13px;
  padding:6px 10px; border-radius:10px;
}

/* content */
.card-body{padding:18px}
.card-title{
  font-family:'Montserrat',sans-serif; font-size:18px; color:var(--ink);
  display:flex; align-items:center; justify-content:space-between; margin:0 0 10px;
}
.pills{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px}
.pill{font-size:12px; padding:6px 10px; border-radius:999px; border:1px solid var(--border); background:#fff}
.pill--gold{background:#fff8ea;border-color:#ecd9ae}

/* features as clean list */
.features{margin:8px 0 16px; color:#6b6662; font-size:14px}
.features li{margin:6px 0; display:flex; gap:8px}
.features li::before{content:"•"; color:var(--burgundy);}

/* actions */
.actions{display:flex; gap:10px; flex-wrap:wrap}
.btn-primary{
  appearance:none; border:0; cursor:pointer;
  background:var(--burgundy); color:#fff; font-weight:700;
  padding:12px 16px; border-radius:12px; text-decoration:none; display:inline-block;
  transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow:0 8px 18px rgba(106,27,43,.18);
}
.btn-primary:hover{background:var(--burgundy-900); transform:translateY(-1px)}
.btn-ghost{
  border:1px solid var(--border); background:#fff; color:var(--ink);
  padding:12px 14px; border-radius:12px; text-decoration:none; font-weight:600;
}
.btn-ghost:hover{background:var(--soft)}
/* ==== Modern product cards – clean 2025 ==== */
.section--products{padding:28px 5%}
.grid-pro{
  display:grid; gap:28px;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
}

.card-pro{
  background:#fff; border:1px solid #eee; border-radius:16px;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-pro:hover{transform:translateY(-3px); box-shadow:0 10px 28px rgba(0,0,0,.06); border-color:#e7e0d8;}

.card-pro .media{
  position:relative; aspect-ratio:4/3; overflow:hidden; border-radius:14px;
  margin:10px; background:#f6f3ef;
}
.card-pro .media img{width:100%;height:100%;object-fit:cover;transform:scale(1.02);transition:transform .35s ease}
.card-pro:hover .media img{transform:scale(1.06)}
.badge{
  position:absolute; left:12px; bottom:12px;
  background:var(--burgundy); color:#fff; font-weight:700; font-size:12px;
  padding:6px 10px; border-radius:10px;
}

.card-pro .body{padding:12px 14px 16px 14px}
.card-pro h3{margin:0 0 8px; font-family:'Montserrat',sans-serif; font-size:18px; color:var(--ink)}
.meta{display:flex; gap:8px; flex-wrap:wrap; margin:0 0 10px}
.meta .tag{font-size:12px; padding:5px 9px; border-radius:999px; border:1px solid var(--border); background:#fff}
.meta .tag--gold{background:#fff8ea; border-color:#ecd9ae}

.feats{margin:8px 0 14px; color:#6b6662; font-size:14px}
.feats li{margin:6px 0}

.actions{display:flex; gap:10px; flex-wrap:wrap}
.btn-primary{
  background:var(--burgundy); color:#fff; text-decoration:none; font-weight:700;
  padding:12px 16px; border-radius:12px; display:inline-block;
  transition:background .2s ease, transform .2s ease; box-shadow:0 8px 18px rgba(106,27,43,.16);
}
.btn-primary:hover{background:var(--burgundy-900); transform:translateY(-1px)}
.btn-link{
  text-decoration:none; padding:12px 0; font-weight:600; color:var(--ink);
}
.btn-link:hover{color:var(--burgundy)}
/* container fix ca să nu curgă full-width */
.section--products .container{max-width:1240px;margin:0 auto}

/* imaginile din card să nu depășească */
.card-pro .media img{width:100%;height:100%;object-fit:cover;display:block}

/* fallback: orice img să nu iasă din container */
img{max-width:100%;height:auto}
/* Datasheets: centered, clean links */
.datasheets{margin-top:10px; text-align:center}
.datasheets .ds-title{
  font-weight:700; letter-spacing:.02em; color:var(--ink);
  margin:8px 0 10px; display:block;
}
.ds-links{display:flex; justify-content:center; gap:10px; flex-wrap:wrap}
.ds-links a{
  display:inline-block; padding:10px 12px; border:1px solid var(--border);
  border-radius:10px; text-decoration:none; font-weight:600; color:var(--ink);
  transition:background .2s ease, border-color .2s ease, color .2s ease;
}
.ds-links a:hover{background:var(--soft); border-color:#e0d7c8; color:var(--burgundy)}
/* View details – compact & centered */
.btn-primary{
  background:var(--burgundy);
  color:#fff; text-decoration:none; font-weight:700;
  padding:10px 14px;           /* mai mic */
  border-radius:10px;
  display:inline-block;
  transition:background .2s ease, transform .2s ease;
  box-shadow:0 6px 14px rgba(106,27,43,.16);
}
.btn-primary:hover{ background:var(--burgundy-900); transform:translateY(-1px) }
.btn-center{ display:block; width:max-content; margin:6px auto 12px; }  /* center */

/* Panel pentru datasheets */
.ds-panel{
  background:rgba(122,19,33,.06);   /* burgundy foarte deschis */
  border:1px solid #e6dcd4;         /* chenar fin */
  border-radius:12px;
  padding:12px;
  text-align:center;
}
.ds-panel .ds-title{
  font-weight:700; color:var(--ink);
  margin:0 0 8px;
}

/* Butoane din panel */
.ds-actions{ display:flex; justify-content:center; gap:10px; flex-wrap:wrap }
.ds-btn{
  display:inline-block; padding:9px 12px;
  border:1px solid var(--border);
  border-radius:10px; text-decoration:none;
  font-weight:600; color:var(--ink); background:#fff;
  transition:background .2s ease, border-color .2s ease, color .2s ease;
}
.ds-btn:hover{ background:#fffdfb; border-color:#d9cfc5; color:var(--burgundy) }
