/* style.css — stil PARTAJAT pentru paginile de detaliu Häfele (catalog/hafele-detalii/).
   Scris de mână (nu e generat). Derivat din chrome-ul OTTO (catalog/hafele.html). */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --orange: #FF8800; --orange-deep: #E67500; --orange-light: #FFA033;
  --cream-1: #F5E6BC; --cream-2: #FFF8E1;
  --dark: #1A1A1A; --text: #1A1A1A; --text-soft: #4A4540; --text-mute: #8A8175;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2,.85,.3,1);
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: #FFFFFF; color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.has-topbar { padding-top: 38px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* Topbar */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 99; background: var(--dark); color: rgba(255,255,255,0.85); height: 38px; padding: 0 clamp(1rem, 4vw, 4rem); display: flex; align-items: center; justify-content: center; gap: 1.5rem; font-size: 13px; letter-spacing: 0.05em; border-bottom: 1px solid rgba(230,215,184,0.25); white-space: nowrap; }
.topbar-phone { color: rgba(255,255,255,0.85); text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem; transition: color 0.25s; }
.topbar-phone:hover { color: var(--orange-light); }
.topbar-phone-label { color: var(--orange); font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; }
@media (max-width: 760px) {
  .topbar { gap: 0.8rem; font-size: 11px; padding: 0 0.8rem; }
  .topbar-phone-label { font-size: 10px; letter-spacing: 0.08em; }
}

/* Nav */
nav.site-nav { position: fixed; top: 38px; left: 0; right: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; padding: 1.1rem clamp(1rem, 4vw, 4rem); background: #FFFFFF; border-bottom: 1px solid rgba(0,0,0,0.06); transition: padding 0.35s, background 0.4s var(--ease), box-shadow 0.35s; }
nav.site-nav.scrolled { padding: 0.7rem clamp(1rem, 4vw, 4rem); box-shadow: 0 4px 30px rgba(0,0,0,0.08); }
.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo-img { height: 65px; width: auto; transition: height 0.35s; }
nav.site-nav.scrolled .nav-logo-img { height: 52px; }
.nav-links { display: flex; list-style: none; gap: 1.7rem; align-items: center; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--text); text-decoration: none; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--orange); transition: width 0.4s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { font-size: 0.86rem; font-weight: 600; color: #fff; background: var(--orange); padding: 0.72rem 1.5rem; text-decoration: none; transition: background 0.3s, transform 0.2s, box-shadow 0.3s; border-radius: var(--radius-sm, 6px); box-shadow: 0 8px 20px -8px rgba(230,117,0,.7); }
.nav-cta:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(230,117,0,.8); }
.menu-toggle { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--orange); transition: transform 0.35s, opacity 0.25s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); z-index: 100; padding: 6rem 2rem 2rem; display: none; flex-direction: column; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.mobile-menu.active { opacity: 1; pointer-events: auto; }
.mobile-menu a { display: block; padding: 1.2rem 0; border-bottom: 1px solid rgba(255,136,0,0.15); font-size: 1.4rem; font-family: var(--serif); color: var(--text); text-decoration: none; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--orange); padding-left: 0.5rem; }
.mobile-menu-cta { margin-top: 2rem; text-align: center; padding: 1rem 2rem !important; background: var(--orange); color: #fff !important; border-bottom: none !important; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.85rem !important; font-family: var(--sans) !important; border-radius: var(--radius-sm, 6px); }
.mobile-menu-close { position: absolute; top: 1.2rem; right: 1.2rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--dark); transition: color 0.25s; }
.mobile-menu-close:hover { color: var(--orange); }
.mobile-menu-close svg { width: 24px; height: 24px; }
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: flex; }
  nav.site-nav { padding: 0.7rem 1.2rem; }
  .nav-logo-img { height: 48px; }
}

/* Breadcrumb + back link */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 9.5rem clamp(1.2rem, 5vw, 4rem) 0.4rem; font-size: 13px; color: var(--text-mute); }
.breadcrumb a { color: var(--text-mute); text-decoration: none; transition: color 0.25s; }
.breadcrumb a:hover { color: var(--orange); }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0.8rem clamp(1.2rem, 5vw, 4rem) 0; font-size: 0.85rem; color: var(--orange-deep); text-decoration: none; transition: color 0.25s, transform 0.25s; }
.back-link:hover { color: var(--orange); transform: translateX(-2px); }
.back-wrap { max-width: 1200px; margin: 0 auto; }

/* Layout detaliu */
main { max-width: 1200px; margin: 0 auto; padding: 1.2rem clamp(1.2rem, 5vw, 4rem) 4rem; }
.detail-wrap { display: grid; grid-template-columns: minmax(280px, 480px) 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: 1rem; }
.gallery-main { aspect-ratio: 1; background: #fff; border: 1px solid rgba(0,0,0,0.07); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; position: sticky; top: 150px; }
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 1.6rem; }
.info { min-width: 0; }  /* permite tabelului lat de variante să scroll-eze intern, nu să lățească pagina (mobil) */
.info-supplier { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 0.5rem; }
.info h1 { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 400; line-height: 1.15; margin-bottom: 0.7rem; }
.info-code { font-size: 0.92rem; color: var(--text-mute); margin-bottom: 0.9rem; }
.info-code strong { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.sistat-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem; background: #fff4e6; border: 1px solid #f3c98b; border-left: 4px solid var(--orange); color: #6b4a18; font-size: 0.86rem; line-height: 1.5; padding: 0.7rem 0.9rem; border-radius: 8px; margin-bottom: 1.2rem; }
.sistat-note[data-full] { background: #f3f3f3; border-color: #c9c9c9; border-left-color: #8a8a8a; color: #444; }
.sistat-note .sistat-repl { color: var(--orange-deep); font-weight: 600; white-space: nowrap; }
.vsistat { display: inline-block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; color: #fff; background: #8a8a8a; padding: 0.05rem 0.4rem; border-radius: 999px; margin-left: 0.4rem; vertical-align: middle; }
.vrepl { font-size: 0.78rem; color: var(--orange-deep); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
a.vrepl { text-decoration: none; cursor: pointer; }
a.vrepl:hover, a.vrepl:focus-visible { text-decoration: underline; }
.cta-repl { box-shadow: 0 10px 24px -10px rgba(230,117,0,.85); }
.cta-muted { background: #8a8a8a; box-shadow: none; }
.cta-muted:hover { background: #777; transform: none; }
.variants-table tr.sistat-row td { color: var(--text-mute); }
.badges { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.badge { font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 50px; font-weight: 500; }
.badge-dark { background: var(--dark); color: #fff; }
.badge-outline { border: 1px solid rgba(0,0,0,0.15); color: var(--text-soft); background: #fff; }
.cta-btn { display: inline-block; background: var(--orange); color: #fff; padding: 0.85rem 2rem; border-radius: 50px; text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: background 0.3s, transform 0.2s, box-shadow 0.3s; box-shadow: 0 10px 24px -10px rgba(230,117,0,.75); margin-bottom: 1.6rem; }
.cta-btn:hover { background: var(--orange-deep); transform: translateY(-2px); }

/* Secțiuni + tabele */
.section { margin-top: 1.6rem; }
.section h2 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin-bottom: 0.7rem; padding-bottom: 0.45rem; border-bottom: 2px solid var(--cream-1); }
/* Specificații — grilă pe 2 coloane, mai aerisită decât tabelul cu chenare */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); column-gap: 1.8rem; }
.spec-item { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.spec-item dt { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-mute); }
.spec-item dd { font-size: 0.92rem; color: var(--text); }

.variants-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.variants-table th, .variants-table td { text-align: left; padding: 0.5rem 0.65rem; border-bottom: 1px solid rgba(0,0,0,0.06); white-space: nowrap; }
.variants-table thead th { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); font-weight: 500; border-bottom: 2px solid var(--cream-1); }
.variants-table td:first-child { font-variant-numeric: tabular-nums; font-weight: 500; }
.variants-table tr.main-row td { background: var(--cream-2); }
.variants-wrap { overflow-x: auto; }

/* Variante — plafonate cu „Vezi toate" (progressive enhancement: fără JS = tabel complet) */
.variants-block { position: relative; }
.variants-block[data-collapsed="true"] .variants-wrap { max-height: 360px; overflow-y: hidden; }
.variants-fade { display: flex; justify-content: center; padding-top: 0.9rem; }
.variants-block[data-collapsed="true"] .variants-fade { margin-top: -64px; padding-top: 64px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 62%); position: relative; z-index: 2; }
.variants-toggle { font-size: 0.8rem; letter-spacing: 0.03em; color: var(--orange-deep); border: 1px solid rgba(255,136,0,0.45); border-radius: 50px; padding: 0.5rem 1.4rem; background: #fff; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.variants-toggle:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.note { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(0,0,0,0.08); font-size: 0.85rem; color: var(--text-mute); line-height: 1.55; }
.note a { color: var(--orange-deep); }

@media (max-width: 800px) {
  .detail-wrap { grid-template-columns: 1fr; }
  .gallery-main { position: relative; top: 0; max-width: 420px; }
  .breadcrumb { padding-top: 8rem; }
}

/* Footer */
footer.site-footer { background: var(--dark); color: rgba(255,255,255,0.85); padding: 4rem clamp(1.5rem, 6vw, 6rem) 2rem; }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 60px; width: auto; margin-bottom: 1.2rem; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.6; max-width: 320px; }
.footer-col h4 { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; color: #fff; margin-bottom: 1.2rem; }
.footer-col a { display: block; font-size: 0.88rem; color: rgba(255,255,255,0.7); text-decoration: none; margin-bottom: 0.7rem; transition: color 0.3s, padding-left 0.3s; }
.footer-col a:hover { color: var(--orange); padding-left: 6px; }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; color: rgba(255,255,255,0.5); font-size: 0.78rem; }
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.3s; }
.footer-legal a:hover { color: var(--orange); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* Cookie consent */
#otto-consent { position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999; background: #1A1A1A; color: #fff; padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; font-size: 14px; box-shadow: 0 -4px 24px rgba(0,0,0,0.35); transform: translateY(100%); transition: transform 0.4s cubic-bezier(.16,1,.3,1); }
#otto-consent.vis { transform: translateY(0); }
#otto-consent p { margin: 0; color: #bbb; line-height: 1.5; flex: 1; }
#otto-consent a { color: #FF8800; text-decoration: underline; }
#otto-cb { display: flex; gap: .75rem; flex-shrink: 0; }
#otto-ca { background: #FF8800; color: #fff; padding: .6rem 1.5rem; border-radius: var(--radius-sm, 6px); font-size: 13px; font-weight: 600; transition: background .2s; }
#otto-ca:hover { background: #E67500; }
#otto-cr { background: transparent; color: #bbb; border: 1px solid #444; padding: .6rem 1.5rem; border-radius: var(--radius-sm, 6px); font-size: 13px; transition: border-color .2s, color .2s; }
#otto-cr:hover { border-color: #999; color: #fff; }
@media (max-width: 600px) { #otto-consent { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; gap: 1rem; } #otto-cb { width: 100%; } #otto-ca, #otto-cr { flex: 1; text-align: center; } }
