/* ==========================================================================
   Site public – culorile vin din variabilele CSS generate în theme_css.php
   ========================================================================== */
body.front { font-family: var(--font-main); background: var(--c-body-bg); color: #1d2733; }
a { color: var(--c-primary); }
.btn-primary { --bs-btn-bg: var(--c-primary); --bs-btn-border-color: var(--c-primary); --bs-btn-hover-bg: color-mix(in srgb, var(--c-primary) 85%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--c-primary) 85%, #000); --bs-btn-active-bg: color-mix(in srgb, var(--c-primary) 75%, #000); }
.btn-outline-primary { --bs-btn-color: var(--c-primary); --bs-btn-border-color: var(--c-primary); --bs-btn-hover-bg: var(--c-primary); --bs-btn-hover-border-color: var(--c-primary); }
.btn-accent { background: var(--c-accent); color: #fff; border: 0; }
.btn-accent:hover { background: color-mix(in srgb, var(--c-accent) 85%, #000); color: #fff; }
.text-primary { color: var(--c-primary) !important; }
.card, .btn, .form-control, .form-select, .alert, .dropdown-menu { border-radius: var(--radius); }

/* ---------- Top header dinamic (20% din înălțimea ferestrei) ---------- */
.site-top { position: sticky; top: 0; z-index: 1030; }
.top-header {
  height: var(--header-h); min-height: 110px; color: var(--c-header-text);
  background: linear-gradient(rgba(0,0,0,var(--header-overlay)), rgba(0,0,0,var(--header-overlay))), var(--header-img), var(--c-header-bg);
  background-size: cover; background-position: center;
  transition: height .25s ease, min-height .25s ease;
}
.top-header a { color: var(--c-header-text); }
.brand-logo { max-height: calc(var(--header-h) * .55); max-width: 240px; transition: max-height .25s ease; }
.brand-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--c-accent); color: #fff; font-size: 1.6rem; transition: all .25s ease; }
.brand-name { display: block; font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.7rem); letter-spacing: -.01em; line-height: 1.15; }
.brand-tagline { font-size: .9rem; opacity: .8; }
.header-contact a { opacity: .85; text-decoration: none; }
.header-contact a:hover { opacity: 1; }
.social-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.12); text-decoration: none; transition: transform .15s ease, background .15s ease; }
.social-btn:hover { transform: translateY(-2px); }
.social-btn.wa:hover { background: #25d366; } .social-btn.fb:hover { background: #1877f2; }
.social-btn.tt:hover { background: #000; } .social-btn.ig:hover { background: #d62976; }
.header-sep { width: 1px; height: 26px; background: rgba(255,255,255,.3); }
.btn-header { background: rgba(255,255,255,.14); color: var(--c-header-text) !important; border: 1px solid rgba(255,255,255,.25); }
.btn-header:hover { background: rgba(255,255,255,.25); }

/* starea compactă la derulare */
body.js-shrink .site-top.is-compact .top-header { height: 64px; min-height: 64px; }
body.js-shrink .site-top.is-compact .brand-tagline,
body.js-shrink .site-top.is-compact .header-contact { display: none !important; }
body.js-shrink .site-top.is-compact .brand-mark { width: 40px; height: 40px; font-size: 1.15rem; }
body.js-shrink .site-top.is-compact .brand-logo { max-height: 44px; }

/* ---------- Meniu principal ---------- */
.main-nav { background: var(--c-menu-bg); box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 0; }
.main-nav .nav-link { color: var(--c-menu-text); font-weight: 600; padding: .9rem 1.1rem !important; position: relative; }
.main-nav .nav-link::after { content: ""; position: absolute; left: 1.1rem; right: 1.1rem; bottom: .45rem; height: 2px; background: var(--c-primary); transform: scaleX(0); transition: transform .2s ease; }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { transform: scaleX(1); }
.main-nav .nav-link.active { color: var(--c-primary); }
.main-nav .navbar-toggler { color: var(--c-menu-text); border: 0; padding: .7rem 0; }

/* ---------- Secțiuni ---------- */
.hero { background: linear-gradient(135deg, var(--c-secondary), color-mix(in srgb, var(--c-secondary) 70%, var(--c-primary))); color: #fff; padding: 5rem 0 4.5rem; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px; }
.hero > .container { position: relative; }
.hero h1 { font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.9rem, 4vw, 3.1rem); }
.hero .lead { opacity: .9; max-width: 640px; }
.hero-stat { border-left: 3px solid var(--c-accent); padding-left: .9rem; }
.section { padding: 4.5rem 0; }
.section-title { font-weight: 800; letter-spacing: -.02em; }
.section-kicker { color: var(--c-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.page-head { background: var(--c-secondary); color: #fff; padding: 2.6rem 0; }
.page-head .breadcrumb a { color: rgba(255,255,255,.8); }
.page-head .breadcrumb-item.active, .page-head .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.6); }

.feature-card { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: var(--radius); padding: 1.6rem; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15,30,60,.09); }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--c-primary) 12%, #fff); color: var(--c-primary); font-size: 1.5rem; margin-bottom: 1rem; }

.plan-card { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: var(--radius); padding: 1.8rem; height: 100%; display: flex; flex-direction: column; }
.plan-card.featured { border: 2px solid var(--c-primary); box-shadow: 0 16px 36px rgba(15,30,60,.12); position: relative; }
.plan-card.featured::before { content: "Recomandat"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--c-primary); color: #fff; font-size: .75rem; font-weight: 700; padding: .2rem .8rem; border-radius: 99px; }
.plan-price { font-size: 2rem; font-weight: 800; color: var(--c-secondary); }
.plan-price small { font-size: .9rem; font-weight: 500; color: #6c757d; }
.plan-features li { padding: .35rem 0; border-bottom: 1px dashed rgba(0,0,0,.08); }
.plan-features li::before { content: "\F26E"; font-family: bootstrap-icons; color: var(--c-accent); margin-right: .5rem; }

.client-logo { background: #fff; border-radius: var(--radius); padding: 1.2rem; height: 110px; display: grid; place-items: center; border: 1px solid rgba(0,0,0,.06); }
.client-logo img { max-height: 70px; max-width: 100%; filter: grayscale(1); opacity: .8; transition: all .2s; }
.client-logo:hover img { filter: none; opacity: 1; }
.testimonial { background: #fff; border-radius: var(--radius); padding: 1.5rem; border-left: 4px solid var(--c-accent); }

.cta-band { background: linear-gradient(120deg, var(--c-primary), var(--c-accent)); color: #fff; border-radius: calc(var(--radius) * 1.5); padding: 2.6rem; }
.content-body img { max-width: 100%; height: auto; }
.content-body h2 { font-size: 1.4rem; margin-top: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-footer-bg); color: var(--c-footer-text); }
.site-footer a { color: var(--c-footer-text); text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .45rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; z-index: 1050; border-top: 1px solid rgba(0,0,0,.1); }

/* ---------- WhatsApp widget ---------- */
.wa-widget { position: fixed; right: 20px; bottom: 20px; z-index: 1060; }
.wa-fab { width: 60px; height: 60px; border-radius: 50%; border: 0; background: #25d366; color: #fff; font-size: 1.9rem; display: grid; place-items: center; animation: wa-pulse 2.4s infinite; }
.wa-fab:hover { background: #1ebe5a; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.wa-panel { position: absolute; right: 0; bottom: 74px; width: min(340px, calc(100vw - 40px)); background: #fff; border-radius: 16px; overflow: hidden; }
.wa-panel-head { background: #075e54; color: #fff; padding: .9rem 1rem; display: flex; align-items: center; gap: .75rem; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-size: 1.3rem; }
.wa-panel-body { padding: 1rem; background: #ece5dd; }
.wa-bubble { background: #fff; padding: .75rem .9rem; border-radius: 0 12px 12px 12px; font-size: .92rem; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.btn-wa-topic { background: #fff; border: 1px solid #d0d7de; }
.btn-wa-topic:hover { border-color: #25d366; color: #075e54; }
body:has(.cookie-banner:not([hidden])) .wa-widget { bottom: 96px; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 60vh; display: grid; place-items: center; padding: 3rem 0; }
.auth-card { width: 100%; max-width: 470px; background: #fff; border-radius: calc(var(--radius) * 1.3); box-shadow: 0 18px 50px rgba(15,30,60,.12); padding: 2.2rem; }
.otp-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-family: ui-monospace, monospace; }
.qr-box { background: #fff; padding: 12px; border: 1px solid #dee2e6; border-radius: 12px; display: inline-block; }
.qr-box img, .qr-box svg { display: block; width: 200px; height: 200px; }
.backup-codes { font-family: ui-monospace, monospace; font-size: 1.05rem; columns: 2; }

@media (max-width: 575.98px) {
  .top-header { min-height: 96px; }
  .brand-mark { width: 44px; height: 44px; font-size: 1.2rem; }
  .social-btn { width: 32px; height: 32px; }
  .hero { padding: 3rem 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
