﻿/* SALUX - shared design tokens (LIGHT theme, keeping the brand palette) */
:root {
  /* Brand palette - kept from existing template */
  --primary: #7DC8A0;          /* soft green - accent of growth/cleanliness */
  --primary-600: #5BB286;
  --primary-700: #3F9A6C;
  --primary-50:  #EAF6F0;
  --accent: #3B72C4;            /* trustworthy blue - institutional */
  --accent-600: #2A5BA7;
  --accent-50:  #ECF2FB;

  /* Light surface system, warm-neutral - friendly for public sector */
  --bg: #F7F8FA;
  --bg-alt: #EEF1F5;
  --surface: #FFFFFF;
  --ink: #0B1829;               /* deep navy, from template family */
  --ink-2: #1E3A5F;
  --muted: #5A6B82;
  --muted-2: #8A98AE;
  --line: #E3E8EF;
  --line-strong: #CFD7E3;

  /* Type */
  --font-sans: "Inter Tight", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: "Inter Tight", "Geist", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11,24,41,.04), 0 1px 1px rgba(11,24,41,.04);
  --shadow-md: 0 4px 12px rgba(11,24,41,.06), 0 2px 4px rgba(11,24,41,.04);
  --shadow-lg: 0 20px 40px -12px rgba(11,24,41,.12), 0 8px 16px rgba(11,24,41,.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { padding: 0; margin: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 28px; }

/* ====== NAV ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.55);
  backdrop-filter: saturate(200%) blur(28px);
  -webkit-backdrop-filter: saturate(200%) blur(28px);
  border-bottom: none;
}
.nav::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, var(--primary-700) 0%, rgba(59,114,196,.25) 35%, rgba(59,114,196,.05) 65%, transparent 100%);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; font-size: 19px; color: var(--ink); }
.nav-logo .mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: grid; place-items: center; color: white; font-weight: 800; font-size: 14px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.08);
}
.nav-logo .brand-logo { height: 30px; width: auto; display: block; }
.nav-logo span { display: none; }
.footer-brand .brand-logo { height: 26px; width: auto; display: block; filter: brightness(0) invert(1) opacity(.95); }
.footer-brand span { display: none; }
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a { padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--primary-700); background: transparent; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ── Nav dropdown ── */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop > a { padding: 9px 14px; border-radius: 999px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .15s; display: flex; align-items: center; gap: 4px; }
.nav-drop > a::after { content: "▾"; font-size: 9px; opacity: .7; }
.nav-drop > a:hover { color: var(--primary-700); background: transparent; }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 0;
  padding-top: 8px; z-index: 200;
  flex-direction: column; gap: 1px;
}
.nav-drop-menu-inner {
  background: white; border: 1px solid var(--line); border-radius: 14px;
  padding: 6px; min-width: 170px;
  box-shadow: 0 8px 24px rgba(11,24,41,.10), 0 2px 4px rgba(11,24,41,.04);
  display: flex; flex-direction: column; gap: 1px;
}
.nav-drop:hover .nav-drop-menu { display: flex; }
.nav-drop-menu a { padding: 9px 14px; border-radius: 9px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.nav-drop-menu a:hover { background: var(--bg); color: var(--ink); }

/* ── Hamburger ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer;
  padding: 9px; border-radius: 10px; transition: background .15s; flex-shrink: 0;
}
.nav-hamburger:hover { background: var(--bg-alt); }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; position: absolute; top: 72px; left: 0; right: 0;
  background: rgba(255,255,255,.97); backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line); flex-direction: column;
  padding: 12px 20px 20px; gap: 2px; z-index: 49;
  box-shadow: 0 12px 32px rgba(11,24,41,.09);
}
.nav.nav-open .nav-mobile { display: flex; }
.nav-mobile a { padding: 12px 14px; border-radius: 12px; color: var(--ink); font-size: 15px; font-weight: 500; transition: background .15s; }
.nav-mobile a:hover { background: var(--bg-alt); }
.nav-mobile hr { border: none; border-top: 1px solid var(--line); margin: 8px 0; }
.nav-mobile .nav-mobile-cta { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.nav-mobile .nav-mobile-cta .btn { width: 100%; justify-content: center; padding: 13px 20px; }
.nav-mobile .nav-mobile-cta .btn-nav { color: white; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; line-height: 1;
  border: 1px solid transparent;
  transition: all .15s ease; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-600); transform: translateY(-1px); }
.btn-green  { background: var(--primary-700); color: white; }
.btn-green:hover { background: var(--primary-700); filter: brightness(1.06); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--bg-alt); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-lg { padding: 14px 24px; font-size: 15.5px; }
.btn-nav {
  background: linear-gradient(120deg, var(--primary-700) 0%, var(--accent) 100%);
  color: white; border: none;
  box-shadow: 0 2px 8px rgba(59,114,196,.25);
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.btn-nav:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(59,114,196,.35);
}

/* ====== TYPE ====== */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
p  { margin: 0; color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--primary-50); color: var(--primary-700);
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
}
.eyebrow.accent { background: var(--accent-50); color: var(--accent-600); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ====== FOOTER ====== */
.footer {
  background: var(--ink); color: rgba(255,255,255,.7);
  padding: 70px 0 28px;
}
.footer h4 { color: white; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; font-weight: 600; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer a:hover { color: white; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: white; font-weight: 700; font-size: 19px; }
.footer-brand .mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%); display: grid; place-items: center; color: white; font-weight: 800; font-size: 14px; }
.footer p.lede { color: rgba(255,255,255,.55); font-size: 14px; max-width: 280px; line-height: 1.6; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* ====== CTA DEMO CARD (standard, identic pe toate paginile) ====== */
.cta-demo-wrap { background: white; }
.cta-card {
  max-width: 900px; margin: 0 auto;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  border-radius: 28px; padding: 70px; text-align: center; color: white;
  position: relative; overflow: hidden;
}
.cta-card::before { content: ""; position: absolute; top: -120px; right: -120px; width: 360px; height: 360px; background: radial-gradient(circle, var(--primary), transparent 70%); opacity: .25; }
.cta-card::after  { content: ""; position: absolute; bottom: -120px; left: -120px; width: 320px; height: 320px; background: radial-gradient(circle, var(--accent), transparent 70%); opacity: .2; }
.cta-card h2 { color: white; font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; position: relative; }
.cta-card p  { color: rgba(255,255,255,.7); font-size: 17px; max-width: 520px; margin: 0 auto 28px; position: relative; line-height: 1.65; }
.cta-card .cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; }
@media (max-width: 900px) { .cta-card { padding: 40px 24px; } }
@media (max-width: 600px) { .cta-card { padding: 32px 20px; } .cta-card h2 { font-size: clamp(24px, 6vw, 34px); } }

/* ====== INFO BAND (card legal/informativ) ====== */
.info-band {
  display: flex; align-items: flex-start; gap: 22px;
  font-size: 15.5px; line-height: 1.7; color: var(--ink-2);
  background: linear-gradient(135deg, #EBF2FD 0%, #D8E8F9 100%);
  padding: 32px 36px; border-radius: var(--radius-xl);
  text-align: left; max-width: 960px; margin: 0 auto;
  border: 1px solid rgba(59,114,196,.22);
  box-shadow: 0 4px 20px rgba(59,114,196,.09);
}
.info-band .ib-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: white; color: var(--accent);
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(59,114,196,.14);
  margin-top: 2px;
}
.info-band .ib-icon { overflow: hidden; min-width: 48px; }
.info-band .ib-icon svg { width: 24px; height: 24px; stroke-width: 1.7; display: block; flex-shrink: 0; }
.info-band .ib-body .ib-label {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px; display: block;
}
.info-band .ib-body p { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; margin: 0; }
@media (max-width: 900px) {
  .info-band { flex-direction: column; gap: 14px; padding: 24px 20px; }
  .info-band .ib-body p { font-size: 14px; }
}

/* ====== UTILS ====== */
.section { padding: 96px 0; }
.section-tight { padding: 60px 0; }

@media (max-width: 600px) {
  .container, .container-narrow { padding: 0 16px; }
  .section { padding: 52px 0; }
  .section-tight { padding: 36px 0; }
}
.grid { display: grid; gap: 20px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: var(--bg-alt); color: var(--ink-2);
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--line);
}

/* Variation switcher banner */
.var-switcher {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: white; border-radius: 999px;
  padding: 5px; display: flex; gap: 2px; z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  font-size: 13px;
}
.var-switcher a { padding: 8px 14px; border-radius: 999px; color: rgba(255,255,255,.65); font-weight: 500; transition: all .15s; }
.var-switcher a:hover { color: white; }
.var-switcher a.active { background: white; color: var(--ink); font-weight: 600; }
