
:root {
  --gold: #e8c547;
  --ink: #30323d;
  --slate: #4d5061;
  --blue: #5c80bc;
  --mist: #cdd1c4;
  --bg: #f7f8f5;
  --white: #ffffff;
  --success: #177245;
  --danger: #b42318;
  --shadow: 0 20px 40px rgba(48,50,61,.12);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  line-height: 1.5;
  background:
    radial-gradient(circle at top right, rgba(92,128,188,.15), transparent 28%),
    radial-gradient(circle at top left, rgba(232,197,71,.14), transparent 24%),
    linear-gradient(180deg, #fbfbfa 0%, #f1f2ee 100%);
}
a, button, input, textarea, select { -webkit-tap-highlight-color: rgba(48,50,61,.08); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.svg-icon { width: 1.2em; height: 1.2em; display: block; }
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 120;
  padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff;
  box-shadow: var(--shadow); transition: top .2s ease;
}
.skip-link:focus-visible { top: 16px; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
#servicii, #comanda, #main-content { scroll-margin-top: 96px; }

.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(247,248,245,.88);
  border-bottom: 1px solid rgba(77,80,97,.10);
}
.nav {
  display:flex; align-items:center; justify-content:space-between; gap: 18px;
  min-height: 76px;
}
.brand {
  display:flex; align-items:center; gap:14px; font-weight:800; letter-spacing:.2px;
}
.brand-badge {
  width:44px; height:44px; border-radius:14px; display:grid; place-items:center;
  background: linear-gradient(135deg, var(--gold), #f7e496);
  color: var(--ink); font-weight:900; box-shadow: var(--shadow);
}
.nav-links { display:flex; gap:20px; align-items:center; flex-wrap:wrap; }
.nav-links a { color: var(--slate); font-weight:600; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff;
  box-shadow: var(--shadow); font-weight: 700;
}

.hero { padding: 64px 0 30px; }
.hero-grid {
  display:grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: stretch;
}
.hero-card, .panel {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(77,80,97,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card {
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content:"";
  position:absolute; inset:auto -80px -80px auto; width:240px; height:240px;
  background: radial-gradient(circle, rgba(232,197,71,.40), transparent 62%);
}
.kicker {
  display:inline-flex; padding:9px 14px; border-radius:999px;
  background: rgba(92,128,188,.10); color: var(--blue); font-weight:800; font-size: 13px;
  letter-spacing:.3px;
}
.meta-strip {
  margin: 0 0 14px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 600;
}
h1 {
  font-size: clamp(34px, 5vw, 58px); line-height: 1.02; margin: 16px 0 12px;
  text-wrap: balance;
}
.section h2, .footer-title { text-wrap: balance; }
.lead { font-size: 18px; line-height:1.65; color: var(--slate); max-width: 62ch; }
.panel p:not(.lead):not(.section-lead) { max-width: 74ch; }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top: 26px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap: 10px;
  padding: 15px 20px; border-radius: 16px; font-weight: 800;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color:#fff; }
.btn-secondary { background: var(--gold); color: var(--ink); }
.btn-ghost { background:#fff; color: var(--ink); border-color: rgba(77,80,97,.16); }
.btn:focus-visible,
.nav-cta:focus-visible,
.whatsapp-float:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(92,128,188,.45);
  outline-offset: 3px;
}

.stats {
  margin-top: 26px; display:grid; grid-template-columns: repeat(3,1fr); gap: 14px;
}
.stat {
  padding: 16px; border-radius: 18px; background: rgba(205,209,196,.25); border: 1px solid rgba(77,80,97,.10);
}
.stat strong { display:block; font-size: 22px; margin-bottom: 6px; }
.stat span { color: var(--slate); font-size: 14px; }

.form-card { padding: 26px; }
.form-title { margin: 0 0 6px; font-size: 24px; }
.form-subtitle { margin:0 0 18px; color: var(--slate); line-height:1.6; }
.panel-padded { padding: 28px; }
.page-title { font-size: 38px; }
.section-lead-spaced { margin-top: 22px; }
.btn-block { width: 100%; }
.cta-emphasis { font-size: 24px; }
.hero-actions-tight { margin-top: 0; }
.grid-2 { display:grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.field { margin-bottom: 14px; }
label { display:block; margin-bottom: 8px; font-weight: 700; color: var(--ink); }
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
input, textarea, select {
  width:100%; border:1px solid rgba(77,80,97,.16); border-radius:16px;
  padding: 14px 15px; font: inherit; background: #fff; color: var(--ink);
  outline:none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue); box-shadow: 0 0 0 4px rgba(92,128,188,.12);
}
textarea { min-height: 120px; resize: vertical; }

.notice {
  padding: 14px 16px; border-radius: 16px; margin-bottom: 18px; font-weight:700;
}
.notice.success { background: rgba(23,114,69,.10); color: var(--success); }
.notice.error { background: rgba(180,35,24,.10); color: var(--danger); }

.section { padding: 30px 0 18px; }
.section h2 { font-size: clamp(26px, 3.6vw, 38px); margin:0 0 10px; }
.section p.section-lead { color: var(--slate); max-width: 70ch; line-height:1.7; }

.cards {
  margin-top: 20px;
  display:grid; grid-template-columns: repeat(3,1fr); gap: 18px;
}
.card {
  padding: 22px; border-radius: 22px; background: rgba(255,255,255,.92);
  border: 1px solid rgba(77,80,97,.10); box-shadow: var(--shadow);
}
.icon {
  width:52px; height:52px; border-radius:16px; background: rgba(92,128,188,.12);
  display:grid; place-items:center; color: var(--blue); margin-bottom: 16px;
}
.card h3 { margin:0 0 10px; font-size: 20px; }
.card p { margin:0; color: var(--slate); line-height:1.7; }

.cta-band {
  margin: 38px 0 10px; padding: 26px; border-radius: 28px;
  background: linear-gradient(135deg, var(--ink), var(--slate));
  color: #fff; display:flex; align-items:center; justify-content:space-between; gap: 18px; flex-wrap:wrap;
}
.cta-band p { margin:6px 0 0; color: rgba(255,255,255,.84); }

.footer {
  margin-top: 34px; padding: 28px 0 44px; border-top: 1px solid rgba(77,80,97,.10);
}
.footer-grid {
  display:grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px;
}
.footer-title { margin:0 0 12px; font-size: 18px; }
.footer p, .footer li, .footer a { color: var(--slate); line-height: 1.75; }
.footer ul { margin:0; padding-left: 18px; }
.tiny { margin-top: 18px; font-size: 14px; color: var(--slate); }

.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, #29a96a, #1e7d4f);
  box-shadow: 0 18px 38px rgba(0,0,0,.22);
  display:grid; place-items:center; color:#fff; font-size: 28px;
  touch-action: manipulation;
}

.small-pill {
  display:inline-flex; gap:8px; align-items:center; padding:8px 12px; border-radius:999px;
  background: rgba(232,197,71,.18); color: var(--ink); font-weight: 700; margin-bottom: 12px;
}

.admin-shell {
  min-height:100vh;
  display:grid; grid-template-columns: 280px 1fr;
}
.sidebar {
  background: linear-gradient(180deg, var(--ink), #23262f);
  color:#fff; padding: 24px 18px; position: sticky; top:0; height:100vh;
}
.sidebar .brand-badge { box-shadow:none; }
.admin-brand-block { margin-bottom: 26px; }
.sidebar a,
.sidebar .sidebar-button {
  display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:14px;
  color: rgba(255,255,255,.88); margin-bottom:8px;
}
.sidebar .sidebar-button {
  width: 100%;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sidebar a.active, .sidebar a:hover,
.sidebar .sidebar-button:hover,
.sidebar .sidebar-button:focus-visible { background: rgba(255,255,255,.10); color:#fff; }
.admin-info-card {
  margin-top: 22px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.88);
}
.admin-info-card p {
  margin: 8px 0 0;
  line-height: 1.7;
  color: inherit;
}
.main {
  padding: 28px;
}
.topbar {
  display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom: 22px; flex-wrap:wrap;
}
.admin-heading { font-size: 42px; margin: 0; }
.admin-lead { font-size: 16px; }
.kpis { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; margin-bottom: 18px; }
.kpi {
  padding:20px; border-radius:22px; background:#fff; box-shadow: var(--shadow); border:1px solid rgba(77,80,97,.08);
}
.kpi strong { display:block; font-size: 28px; margin-top: 8px; }
.table-wrap {
  background:#fff; border-radius: 22px; padding: 18px; box-shadow: var(--shadow); border:1px solid rgba(77,80,97,.08);
  overflow:auto;
}
table { width:100%; border-collapse: collapse; min-width: 860px; }
th, td { text-align:left; padding: 14px 12px; border-bottom:1px solid rgba(77,80,97,.08); vertical-align: top; }
th { color: var(--slate); font-size:14px; }
.badge {
  display:inline-flex; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight:800;
}
.badge.new { background: rgba(92,128,188,.12); color: var(--blue); }
.badge.confirmed { background: rgba(23,114,69,.12); color: var(--success); }
.badge.archived { background: rgba(77,80,97,.12); color: var(--slate); }
.filterbar {
  display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin: 0 0 16px;
}
.inline-form { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.inline-form button, .inline-form a {
  padding: 10px 12px; border-radius: 12px; border:none; cursor:pointer; font-weight:700;
}
.btn-mini-primary { background: var(--ink); color:#fff; }
.btn-mini-secondary { background: var(--gold); color: var(--ink); }
.btn-mini-ghost { background: #eff1f4; color: var(--ink); }

.login-wrap {
  min-height: 100vh; display:grid; place-items:center; padding: 24px;
}
.login-card {
  width:min(480px, 100%); padding: 28px; border-radius: 28px; background:#fff;
  box-shadow: var(--shadow); border: 1px solid rgba(77,80,97,.10);
}
.login-title { font-size: 40px; margin: 0 0 10px; }
.login-lead { font-size: 16px; }
.login-links {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 980px) {
  .hero-grid, .cards, .footer-grid, .kpis, .admin-shell { grid-template-columns: 1fr; }
  .stats, .grid-2 { grid-template-columns: 1fr; }
  .sidebar { position:relative; height:auto; }
}
