/* ═══════════════════════════════════════════════════════════════════
   brand.css — SURSA UNICĂ DE ADEVĂR pentru marca ADecvat.
   Consumat identic de: site Astro, blog Node (blog.mjs), dashboard Python.
   NU duplica header/footer/wordmark în altă parte — editează DOAR aici.
   Santinela brand_guard verifică faptul că toate suprafețele folosesc asta.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --graphite: #141414;
  --graphite-2: #1d1d1f;
  --white: #ffffff;
  --amber: #f5b301;
  --amber-text: #875f00;
  --line: #e7e3da;
  --line-dark: #2c2c2e;
  --muted: #6c6a64;
  --muted-dark: #a7a39a;
  --font-serif: "Fraunces Variable", Fraunces, Georgia, "Times New Roman", serif;
  --font-sans: "Inter Variable", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ─── Wordmark (identic cu Wordmark.astro) ─────────────────────────── */
.wm {
  font-family: var(--font-serif);
  font-size: var(--wm-size, 1.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  display: inline-flex;
  position: relative;
  font-variation-settings: "opsz" 40;
}
.wm-ad { font-weight: 700; }
.wm-rest { font-weight: 480; }
.wm-light .wm-ad, .wm-light .wm-rest { color: var(--graphite); }
.wm-dark .wm-ad { color: var(--amber); }
.wm-dark .wm-rest { color: var(--white); }
.wm-rule {
  position: absolute; left: 0; bottom: -0.22em;
  height: 0.12em; width: 1.55ch; background: var(--amber); border-radius: 2px;
}

/* ─── Header public (identic cu Header.astro .site-header) ──────────── */
.adx-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.adx-header .adx-row {
  max-width: 1140px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 68px;
}
.adx-header .adx-brand { display: inline-flex; align-items: center; text-decoration: none; }
.adx-nav { display: none; gap: 1.9rem; margin-inline: auto; }
.adx-nav a { font-size: 0.95rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.15s ease; }
.adx-nav a:hover { color: var(--graphite); }
.adx-cta {
  display: inline-flex; align-items: center; padding: 0.65rem 1.2rem; font-size: 0.9rem;
  font-weight: 600; border-radius: 999px; background: var(--amber); color: var(--graphite);
  text-decoration: none; white-space: nowrap;
}
/* ─── Meniu mobil (hamburger) — o singură definiție, pe .adx-header ─── */
.adx-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
}
.adx-burger span {
  display: block; width: 22px; height: 2px; margin: 0 auto; border-radius: 2px;
  background: var(--graphite); transition: transform 0.22s ease, opacity 0.22s ease;
}
.adx-header.is-open .adx-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.adx-header.is-open .adx-burger span:nth-child(2) { opacity: 0; }
.adx-header.is-open .adx-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.adx-cta--inmenu { display: none; }

/* ─── Dropdown „Servicii" (desktop: hover/focus; mobil: acordeon) ───── */
.adx-dd-row { display: inline-flex; align-items: center; gap: 0.15rem; }
.adx-dd-toggle {
  border: 0; background: none; cursor: pointer; padding: 0.2rem 0.3rem;
  font-size: 0.68rem; color: var(--muted); line-height: 1;
  transition: transform 0.18s ease, color 0.15s ease;
}
.adx-dd-toggle:hover { color: var(--graphite); }
.adx-dd.is-dd-open .adx-dd-toggle { transform: rotate(180deg); }
.adx-dd-sep { border: 0; border-top: 1px solid var(--line); margin: 0.35rem 0.3rem; }
.adx-adonis { white-space: nowrap; }

@media (min-width: 860px) {
  .adx-nav { display: flex; align-items: center; }
  .adx-burger { display: none; }
  /* zonă de hover extinsă ca meniul să nu se închidă în golul dintre link și panou */
  .adx-dd { position: relative; padding-block: 0.6rem; margin-block: -0.6rem; }
  .adx-dd-menu {
    display: none; position: absolute; top: 100%; left: -0.9rem; z-index: 60;
    min-width: 16rem; padding: 0.55rem;
    background: var(--white); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 16px 34px rgba(20, 20, 20, 0.1);
  }
  .adx-dd:hover .adx-dd-menu,
  .adx-dd:focus-within .adx-dd-menu,
  .adx-dd.is-dd-open .adx-dd-menu { display: grid; }
  .adx-dd-menu a { padding: 0.5rem 0.7rem; border-radius: 8px; font-size: 0.92rem; }
  .adx-dd-menu a:hover { background: #faf8f4; color: var(--graphite); }
  .adx-dd-all { font-weight: 600; color: var(--graphite); }
}
@media (max-width: 859px) {
  .adx-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin-inline: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 26px rgba(20, 20, 20, 0.07);
    padding: 0.3rem clamp(1.25rem, 4vw, 2.5rem) 1.1rem;
  }
  .adx-header.is-open .adx-nav { display: flex; }
  .adx-nav a { padding: 0.9rem 0; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .adx-nav a:last-of-type { border-bottom: 0; }
  .adx-cta--bar { display: none; }
  .adx-cta--inmenu { display: inline-flex; justify-content: center; margin-top: 0.85rem; }
  /* acordeonul „Servicii" pe mobil */
  .adx-dd { width: 100%; }
  .adx-dd-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .adx-dd-row a { border-bottom: 0; flex: 1; }
  .adx-dd-toggle { font-size: 0.85rem; padding: 0.9rem 0.6rem; }
  .adx-dd-menu { display: none; padding-left: 0.85rem; }
  .adx-dd.is-dd-open .adx-dd-menu { display: flex; flex-direction: column; }
  .adx-dd-menu a { font-size: 0.98rem; padding: 0.7rem 0; color: var(--muted); }
  .adx-dd-sep { display: none; }
  .adx-adonis { color: var(--amber-text); }
}

/* ─── Footer public (identic cu Footer.astro) ──────────────────────── */
.adx-footer {
  background: var(--graphite); color: var(--white);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  font-family: var(--font-sans);
}
.adx-footer .adx-fwrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.adx-footer .adx-ftop {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-dark);
}
.adx-footer .adx-tag { margin-top: 1.1rem; color: var(--muted-dark); font-size: 1.05rem; line-height: 1.5; max-width: 22rem; }
.adx-footer .adx-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.adx-footer .adx-cols div { display: flex; flex-direction: column; gap: 0.7rem; }
.adx-footer .adx-colh { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-dark); margin-bottom: 0.3rem; }
.adx-footer .adx-cols a { color: #e9e6df; font-size: 0.95rem; text-decoration: none; transition: color 0.15s ease; }
.adx-footer .adx-cols a:hover { color: var(--amber); }
.adx-footer .adx-company {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.8rem 1.5rem; margin-top: 1.6rem; font-size: 0.8rem; line-height: 1.5; color: var(--muted-dark);
}
.adx-footer .adx-company strong { color: #e9e6df; font-weight: 600; }
.adx-footer .adx-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.6rem 1.5rem; margin-top: 1.4rem; font-size: 0.8rem; color: var(--muted-dark);
}
.adx-footer .adx-netopia { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--muted-dark); font-size: 0.78rem; white-space: nowrap; }
.adx-footer .adx-npbadge { display: inline-block; width: 150px; height: 34px; }
.adx-footer .adx-npbadge img, .adx-footer .adx-npbadge a { display: block; }
@media (min-width: 720px) {
  .adx-footer .adx-ftop { grid-template-columns: 1.2fr 2fr; }
  .adx-footer .adx-cols { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Bară dashboard (lumea internă admin — aceeași pe TOATE paginile) ─ */
.adx-dashbar {
  background: var(--graphite); color: var(--white);
  padding: 0 clamp(1rem, 4vw, 1.5rem); min-height: 56px;
  display: flex; align-items: center; gap: 1.4rem;
  position: sticky; top: 0; z-index: 50;
  font-family: var(--font-sans);
}
.adx-dashbar .adx-brand { display: inline-flex; align-items: center; text-decoration: none; }
.adx-dashbar nav { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-left: 0.4rem; overflow-x: auto; }
.adx-dashbar nav a {
  color: #cfcbc2; font-size: 0.86rem; font-weight: 500; text-decoration: none;
  padding: 0.4rem 0.7rem; border-radius: 8px; white-space: nowrap; transition: background 0.12s, color 0.12s;
}
.adx-dashbar nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.adx-dashbar nav a.active { background: var(--amber); color: var(--graphite); font-weight: 600; }
.adx-dashbar .adx-spacer { margin-left: auto; }
.adx-dashbar .adx-out { color: var(--muted-dark); font-size: 0.8rem; text-decoration: none; }
.adx-dashbar .adx-out:hover { color: #fff; }
