/* ============================================================
   AGENTX — DESIGN SYSTEM
   Heading: Space Grotesk · Body: Inter
   Un singur accent pe tot site-ul: cyan/sky. Fara portocaliu,
   rosu, auriu sau violet — doar o familie de culoare.
   Fisier partajat de toate paginile.
   ============================================================ */

:root {
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Suprafete inchise */
  --bg: #070c15;
  --bg-2: #0b1120;
  --card: #0d1424;
  --line: rgba(148, 180, 220, 0.13);
  --line-strong: rgba(148, 180, 220, 0.25);

  /* Text */
  --text: #eef3f9;
  --text-2: #9fb0c3;
  --text-3: #64748b;

  /* Accent — o singura familie, mai multe trepte de luminozitate.
     --accent          pe fundal inchis
     --accent-deep     pe fundal deschis (contrast suficient)     */
  --accent: #38bdf8;
  --accent-soft: #7dd3fc;
  --accent-strong: #0ea5e9;
  --accent-deep: #0284c7;
  --accent-dark: #0369a1;
  --accent-dim: rgba(56, 189, 248, 0.12);
  --accent-border: rgba(56, 189, 248, 0.3);
  --accent-glow: rgba(56, 189, 248, 0.35);

  /* Verde doar pentru WhatsApp (culoare de brand, nu accent) */
  --green: #25d366;
  --green-ink: #06240f;

  --r: 18px;
  --maxw: 1140px;

  /* Token-uri proprii navbar-ului. Sunt separate intentionat de --accent/--bg:
     paginile isi redefinesc paleta (clinici e pe fundal deschis, de exemplu),
     iar navbar-ul trebuie sa arate identic peste tot. */
  --nav-h: 78px;
  --nav-bg: rgba(7, 12, 21, 0.95);
  --nav-bg-solid: rgba(7, 12, 21, 0.98);
  --nav-line: rgba(148, 180, 220, 0.13);
  --nav-text: #eef3f9;
  --nav-text-2: #9fb0c3;
  --nav-accent: #38bdf8;
  --nav-accent-hover: #7dd3fc;
  --nav-ink: #070c15;
}

/* ================= NAVBAR — identic pe toate paginile ================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nav-line);
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo img {
  height: 112px;
  width: auto;
  display: block;
  margin: 0 0 0 -12px;
  -webkit-user-drag: none;
  user-select: none;
}

/* Pe desktop wrapperul dispare din layout (linkurile si CTA-ul raman
   flex items directe in bara); pe mobil devine panoul derulant. */
.nav__menu { display: contents; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav__link {
  color: var(--nav-text-2);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav__link:hover,
.nav__link[aria-current='page'] {
  color: var(--nav-text);
}

.nav__cta {
  flex-shrink: 0;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nav-ink);
  background: var(--nav-accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 12px;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav__cta:hover {
  transform: translateY(-1px);
  background: var(--nav-accent-hover);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav__links { gap: 20px; }
  .nav__link { font-size: 14px; }
}

@media (max-width: 820px) {
  .nav__menu { display: none; }
  .nav__burger { display: flex; }

  /* Panoul contine si linkurile si CTA-ul, deci nu depinde de cate
     linkuri sunt in meniu. */
  .nav--open .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--nav-bg-solid);
    border-bottom: 1px solid var(--nav-line);
    padding: 16px 28px 22px;
  }

  .nav--open .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-left: 0;
    width: 100%;
  }

  .nav--open .nav__link {
    padding: 11px 0;
    font-size: 16px;
  }

  .nav--open .nav__cta { margin-left: 0; }

  .nav__logo img { height: 92px; }
}

/* ================= BUTOANE ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 15px 28px;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--solid { background: var(--accent); color: var(--bg); }
.btn--solid:hover { transform: translateY(-2px); background: var(--accent-soft); }

.btn--line {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--line:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

.btn--wa { background: var(--green); color: var(--green-ink); }
.btn--wa:hover { transform: translateY(-2px); background: #3be27b; }

/* ================= REVEAL LA SCROLL ================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
