/* =====================================================================
   NovaWebDesign — site UI kit
   Load AFTER the page CSS (and after any inline <style>) on every page:
   <link rel="stylesheet" href="css/site-ui.css">
   Contents: 1. tokens  2. global finesse  3. footer  3b. glowing buttons + footer CTA
             4. mobile bottom bar  4b. menu (drawer)  5. toast  6. reduced motion
   ===================================================================== */

/* 1. TOKENS ---------------------------------------------------------- */
:root {
  --nova-ease: cubic-bezier(.16, 1, .3, 1);
  --nova-glow-violet: 0 0 0 1px rgba(var(--nv-acc-rgb), .35), 0 18px 50px -18px rgba(var(--nv-acc-rgb), .55);
  --nova-glow-cyan: 0 0 0 1px rgba(var(--nv-acc2-rgb), .35), 0 18px 50px -18px rgba(var(--nv-acc2-rgb), .55);
  --nova-bar-h: 64px;
  --nova-safe-b: env(safe-area-inset-bottom, 0px);
}

/* 2. GLOBAL FINESSE -------------------------------------------------- */
::selection {
  background: rgba(var(--nv-acc-rgb), .38);
  color: var(--nv-tx);
}

@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--nv-bg); }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(var(--nv-acc-rgb), .55), rgba(var(--nv-acc2-rgb), .45));
    border: 3px solid var(--nv-bg);
    border-radius: 10px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(var(--nv-acc-rgb), .85), rgba(var(--nv-acc2-rgb), .7));
  }
}
@supports (-moz-appearance: none) {
  html { scrollbar-color: rgba(var(--nv-acc-rgb), .55) var(--nv-bg); scrollbar-width: thin; }
}

/* 3. FOOTER ---------------------------------------------------------- */
.footer {
  position: relative;
  isolation: isolate;
  border-top: 0;
  padding: 88px 0 calc(32px + var(--nova-safe-b));
  background:
    radial-gradient(60% 140px at 50% 0, rgba(var(--nv-acc-rgb), .10), transparent 70%),
    radial-gradient(40% 120px at 78% 0, rgba(var(--nv-acc2-rgb), .06), transparent 70%),
    var(--bg-primary, var(--nv-bg));
}
/* luminous gradient hairline */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(var(--nv-acc-rgb), .85) 22%, rgba(var(--nv-acc2-rgb), .85) 78%, transparent);
  box-shadow: 0 0 12px rgba(var(--nv-acc-rgb), .45), 0 0 24px rgba(var(--nv-acc2-rgb), .18);
  pointer-events: none;
  z-index: 0;
}
/* soft bloom under the hairline */
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(720px, calc(100% - 32px));
  height: 56px;
  transform: translateX(-50%);
  background: radial-gradient(50% 100% at 50% 0, rgba(var(--nv-acc-rgb), .22), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr);
  gap: 40px;
  margin-bottom: 56px;
}

.footer .footer-brand {
  text-align: left;
  grid-column: auto;
}
.footer .footer-brand .nav-logo {
  display: inline-block;
  font-size: 1.5rem;
  line-height: 44px;
  min-height: 44px;
  white-space: nowrap;
}
/* brand mark (the site favicon) before the wordmark */
.footer .footer-brand .nav-logo::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 36px;
  height: 36px;
  margin: -4px 12px 0 0;
  border-radius: 10px;
  background: url('../favicon-nova.svg') center / contain no-repeat;
  box-shadow: 0 10px 30px -12px rgba(var(--nv-acc-rgb), .8);
}
.footer .footer-brand p {
  max-width: 36ch;
  margin: 16px 0 0;
  color: rgba(var(--nv-tx-rgb), .64);
  font-size: .9375rem;
  line-height: 1.7;
}

/* Premium share button — sits in .footer-brand under the description */
.footer-share {
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 20px 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(var(--nv-acc-rgb), .35);
  background: linear-gradient(135deg, rgba(var(--nv-acc-rgb), .12), rgba(var(--nv-acc2-rgb), .06));
  color: var(--text-primary, var(--nv-tx));
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 18px 50px -24px rgba(var(--nv-acc-rgb), .6);
  transition: transform 200ms var(--nova-ease), box-shadow 250ms var(--nova-ease), border-color 200ms ease, background-color 200ms ease;
}
.footer-share__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-gradient, linear-gradient(135deg, var(--nv-acc), var(--nv-acc2)));
  color: var(--nv-bg);
  box-shadow: 0 0 16px -2px rgba(var(--nv-acc2-rgb), .55);
  transition: transform 250ms var(--nova-ease);
}
.footer-share__icon svg { width: 16px; height: 16px; display: block; }
@media (hover: hover) and (pointer: fine) {
  .footer-share:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--nv-acc-rgb), .6);
    box-shadow: var(--nova-glow-violet);
  }
  .footer-share:hover .footer-share__icon { transform: rotate(-12deg) scale(1.06); }
}
.footer-share:active {
  transform: scale(.97);
  box-shadow: var(--nova-glow-cyan);
  transition-duration: 120ms;
}
.footer-share:focus-visible {
  outline: 2px solid var(--accent-secondary, var(--nv-acc2));
  outline-offset: 3px;
}

/* Column titles */
.footer .footer-links-group { text-align: left; }
.footer .footer-links-group h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(var(--nv-tx-rgb), .92);
}
.footer .footer-links-group h4::before {
  content: '';
  flex: none;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-gradient, linear-gradient(135deg, var(--nv-acc), var(--nv-acc2)));
  box-shadow: 0 0 8px rgba(var(--nv-acc-rgb), .6);
}

/* Links */
.footer .footer-links-group a {
  -webkit-tap-highlight-color: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  padding: 4px 0;
  color: rgba(var(--nv-tx-rgb), .62);
  font-size: .9375rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition: color 200ms ease, transform 250ms var(--nova-ease);
}
.footer .footer-links-group a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: var(--accent-gradient, linear-gradient(135deg, var(--nv-acc), var(--nv-acc2)));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 250ms var(--nova-ease);
  pointer-events: none;
}
.footer .footer-links-group a:hover,
.footer .footer-links-group a:focus-visible {
  color: var(--text-primary, var(--nv-tx));
  transform: translateX(3px);
}
.footer .footer-links-group a:hover::after,
.footer .footer-links-group a:focus-visible::after { transform: scaleX(1); }
.footer .footer-links-group a:active { color: var(--nv-tx); transform: translateX(3px) scale(.98); }
.footer .footer-links-group a:focus-visible,
.footer .footer-bottom a:focus-visible {
  outline: 2px solid var(--accent-secondary, var(--nv-acc2));
  outline-offset: 4px;
  border-radius: 6px;
}

/* Bottom row */
.footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, .08));
  color: rgba(var(--nv-tx-rgb), .5);
  font-size: .8125rem;
  text-align: left;
}
.footer .footer-bottom p { margin: 0; }
.footer .footer-bottom a {
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(var(--nv-tx-rgb), .62);
  transition: color 200ms ease;
}
.footer .footer-bottom a:hover { color: var(--text-primary, var(--nv-tx)); }

/* Tablet: brand on its own row, four link columns */
@media (max-width: 1024px) {
  .footer .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr);
    gap: 40px 28px;
  }
  .footer .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones */
@media (max-width: 768px) {
  .footer { padding: 64px 0 calc(24px + var(--nova-safe-b)); }
  .footer .footer-links-group a { min-height: 44px; padding: 0; }
  .footer .footer-links-group a::after { bottom: 10px; }
  .footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
@media (max-width: 599px) {
  .footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
    margin-bottom: 40px;
  }
  /* contact column (email is long) takes the full row */
  .footer .footer-links-group:last-child { grid-column: 1 / -1; }
  /* „Mentenanță web”: tot rândul, linkurile pe două coloane */
  .footer .footer-links-group--maint {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }
  .footer .footer-links-group--maint .footer-heading { grid-column: 1 / -1; }
  .footer .footer-links-group h4 { margin-bottom: 8px; }
}
@media (max-width: 359px) {
  .footer .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* 3b. GLOWING BUTTONS + FOOTER CALL TO ACTION -------------------------- */
/* „Cere ofertă” and „Mentenanță”: same size, same glow, the gradient mirrored so they read as a pair. */
.nw-glow-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 56px;
  padding: 0 28px;
  border-radius: var(--radius-md, 12px);   /* aceeași rază ca butoanele principale ale site-ului */
  border: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(135deg, var(--nv-acc), var(--nv-acc2));
  box-shadow: 0 0 0 1px rgba(var(--nv-acc-rgb), .32), 0 14px 36px -14px rgba(var(--nv-acc-rgb), .9), 0 0 26px -8px rgba(var(--nv-acc2-rgb), .6);
  color: var(--nv-on-acc);
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(var(--nv-bg-rgb), .3);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform 220ms var(--nova-ease), box-shadow 260ms var(--nova-ease);
}
.nw-glow-btn--maint { background: linear-gradient(135deg, var(--nv-acc2), var(--nv-acc)); }
.nw-glow-btn svg { flex: none; width: 18px; height: 18px; filter: drop-shadow(0 1px 1px rgba(var(--nv-bg-rgb), .3)); }
.nw-glow-btn:active { transform: scale(.97); transition-duration: 120ms; }
.nw-glow-btn:focus-visible { outline: 2px solid var(--nv-acc2); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .nw-glow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(var(--nv-acc-rgb), .45), 0 18px 44px -14px rgba(var(--nv-acc-rgb), 1), 0 0 34px -6px rgba(var(--nv-acc2-rgb), .75);
  }
}

.footer .footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  margin-bottom: 64px;
  padding: 32px 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .07);
  background:
    radial-gradient(80% 140% at 0 0, rgba(var(--nv-acc-rgb), .14), transparent 60%),
    radial-gradient(70% 140% at 100% 100%, rgba(var(--nv-acc2-rgb), .08), transparent 60%),
    rgba(255, 255, 255, .02);
}
.footer .footer-cta__copy { min-width: 0; }
.footer .footer-cta__title {
  margin: 0;
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--text-primary, var(--nv-tx));
  text-wrap: balance;
}
.footer .footer-cta__sub {
  margin: 8px 0 0;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(var(--nv-tx-rgb), .7);
}
.footer .footer-cta__btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  flex: none;
  width: min(460px, 100%);
}
@media (max-width: 960px) {
  .footer .footer-cta { flex-direction: column; align-items: stretch; padding: 28px; }
  .footer .footer-cta__btns { width: 100%; max-width: 520px; }
}
@media (max-width: 768px) {
  .footer .footer-cta { margin-bottom: 48px; padding: 24px 20px; border-radius: 20px; gap: 20px; }
  .footer .footer-cta__btns { gap: 12px; }
  .footer .footer-cta .nw-glow-btn { min-height: 52px; padding: 0 12px; gap: 8px; }
}
/* very narrow phones: one button under the other */
@media (max-width: 359px) {
  .footer .footer-cta__btns { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .nw-glow-btn { transition: none; }
  .nw-glow-btn:hover { transform: none; }
}

/* 4. MOBILE BOTTOM BAR ---------------------------------------------- */
/* Same structure on every page: logo „Nova” → two equal glowing buttons (the one of the current page
   marked) → account → menu. The pair is „Mentenanță” + „Cere ofertă” on every page (Showcase stays in
   the menu). Static glow (no animation: the bar is always on screen, so nothing here keeps the phone busy). */
@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    /* exactly --nova-bar-h tall (+ safe area) so body padding and the toast offset match it */
    box-sizing: border-box;
    height: calc(var(--nova-bar-h) + var(--nova-safe-b));
    min-height: 0;
    /* above the menu (z 10000) so the hamburger can always close it */
    z-index: 10001 !important;
    padding: 0 max(16px, env(safe-area-inset-right, 0px)) var(--nova-safe-b) max(16px, env(safe-area-inset-left, 0px)) !important;
    background: rgba(var(--nv-bg-rgb), .82) !important;
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border-top: 1px solid rgba(255, 255, 255, .06) !important;
    box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, .9);
  }
  /* luminous hairline on top of the bar */
  .mobile-bottom-bar::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--nv-acc-rgb), .55), rgba(var(--nv-acc2-rgb), .55), transparent);
    pointer-events: none;
  }
  .mobile-bottom-bar a,
  .mobile-bottom-bar button { -webkit-tap-highlight-color: transparent; }

  /* Logo: the brand mark (44px target); the word „Nova” joins it where there is room */
  .mobile-bottom-bar .bottom-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    margin-left: -4px;
    padding: 0 4px;
    border-radius: 12px;
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: -.01em;
    text-decoration: none;
    transition: transform 180ms var(--nova-ease), opacity 180ms ease;
  }
  .mobile-bottom-bar .bottom-brand::before {
    content: '';
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: url('../favicon-nova.svg') center / contain no-repeat;
    box-shadow: 0 6px 16px -6px rgba(var(--nv-acc-rgb), .9);
  }
  .mobile-bottom-bar .bottom-brand__t { display: none; }
  .mobile-bottom-bar .bottom-brand:active { transform: scale(.94); opacity: .85; }

  /* The two main buttons: equal width, same weight */
  .mobile-bottom-bar .bottom-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 380px;
    justify-self: center;
    min-width: 0;
  }
  .mobile-bottom-bar .bottom-glow {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 48px;
    padding: 4px 6px;
    border-radius: var(--radius-md, 12px);
    border: 1px solid rgba(255, 255, 255, .16);
    background: linear-gradient(135deg, var(--nv-acc), var(--nv-acc2));
    box-shadow: 0 0 0 1px rgba(var(--nv-acc-rgb), .3), 0 8px 22px -10px rgba(var(--nv-acc-rgb), .95), 0 0 16px -6px rgba(var(--nv-acc2-rgb), .65);
    color: var(--nv-on-acc);
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(var(--nv-bg-rgb), .35);
    white-space: nowrap;
    transition: transform 160ms var(--nova-ease);
  }
  /* al doilea buton: același gradient, oglindit („Mentenanță” pe showcase și pe „Cere ofertă”, „Showcase” în rest) */
  .mobile-bottom-bar .bottom-glow--maint,
  .mobile-bottom-bar .bottom-glow--alt { background: linear-gradient(135deg, var(--nv-acc2), var(--nv-acc)); }
  .mobile-bottom-bar .bottom-glow svg {
    flex: none;
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 1px rgba(var(--nv-bg-rgb), .3));
  }
  .mobile-bottom-bar .bottom-glow span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .mobile-bottom-bar .bottom-glow:active { transform: scale(.95); }
  /* current page: bright inner ring + a small light above the button */
  .mobile-bottom-bar .bottom-glow[aria-current] {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), 0 0 0 1px rgba(var(--nv-acc-rgb), .35), 0 8px 24px -8px rgba(var(--nv-acc-rgb), 1), 0 0 20px -4px rgba(var(--nv-acc2-rgb), .75);
  }
  .mobile-bottom-bar .bottom-glow[aria-current]::after {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    width: 16px;
    height: 3px;
    margin-left: -8px;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 0 8px rgba(var(--nv-acc2-rgb), .9), 0 0 2px #fff;
    pointer-events: none;
  }

  /* Account + menu */
  .mobile-bottom-bar .bottom-end { display: flex; align-items: center; gap: 2px; }

  /* Hamburger — three softly glowing cyan lines (static, no pulse) */
  .mobile-bottom-bar .bottom-hamburger {
    position: relative;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    margin-right: -8px;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    transition: transform 180ms var(--nova-ease);
  }
  .mobile-bottom-bar .bottom-hamburger::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--nv-acc2-rgb), .18), rgba(var(--nv-acc2-rgb), 0) 70%);
    opacity: 0;
    transform: scale(.6);
    transition: opacity 200ms ease, transform 250ms var(--nova-ease);
    pointer-events: none;
  }
  .mobile-bottom-bar .bottom-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--nv-acc2);
    box-shadow: 0 0 6px rgba(var(--nv-acc2-rgb), .75), 0 0 14px rgba(var(--nv-acc2-rgb), .35);
    transition: transform 280ms var(--nova-ease), opacity 200ms ease;
  }
  .mobile-bottom-bar .bottom-hamburger:active { transform: scale(.92); }
  .mobile-bottom-bar .bottom-hamburger:active::before { opacity: 1; transform: scale(1); }
  /* menu open (aria-expanded): the three lines become a glowing X */
  .mobile-bottom-bar .bottom-hamburger[aria-expanded="true"]::before { opacity: 1; transform: scale(1); }
  .mobile-bottom-bar .bottom-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-bottom-bar .bottom-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
  .mobile-bottom-bar .bottom-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mobile-bottom-bar a:focus-visible,
  .mobile-bottom-bar button:focus-visible {
    outline: 2px solid var(--nv-acc2);
    outline-offset: 3px;
  }

  /* Page padding so content never hides behind the bar */
  body.has-bottom-bar,
  body:has(> .mobile-bottom-bar) {
    padding-bottom: calc(var(--nova-bar-h) + var(--nova-safe-b)) !important;
  }
}
/* Narrow phones: slightly tighter edges (the four parts keep equal 8px gaps) */
@media (max-width: 374px) {
  .mobile-bottom-bar { padding-left: max(12px, env(safe-area-inset-left, 0px)) !important; padding-right: max(12px, env(safe-area-inset-right, 0px)) !important; }
  .mobile-bottom-bar .bottom-glow { padding: 4px; }
}
/* 320–359px (iPhone SE 1): smaller labels and 6px gaps so both words still fit whole */
@media (max-width: 359px) {
  .mobile-bottom-bar { gap: 6px; }
  .mobile-bottom-bar .bottom-duo { gap: 6px; }
  .mobile-bottom-bar .bottom-glow { padding: 4px 2px; font-size: .6875rem; letter-spacing: 0; }
}
/* Large phones in landscape / small tablets: icon beside the text, the word „Nova” next to the logo */
@media (min-width: 480px) and (max-width: 768px) {
  .mobile-bottom-bar .bottom-brand__t {
    display: inline;
    background: var(--accent-gradient, linear-gradient(135deg, var(--nv-acc), var(--nv-acc2)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .mobile-bottom-bar .bottom-duo { gap: 10px; }
  .mobile-bottom-bar .bottom-glow {
    flex-direction: row;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    font-size: .8125rem;
  }
  .mobile-bottom-bar .bottom-glow svg { width: 16px; height: 16px; }
  .mobile-bottom-bar .bottom-glow[aria-current]::after { top: -9px; }
}

/* 4a. Sub 768 px: margini egale la stânga și la dreapta (logo „N” și cele 3 linii la 14 px de margine, plus
   safe-area), spații egale de 10 px între toate elementele, butoanele strălucitoare puțin mai compacte (44 px),
   contul și cele 3 linii mai mici. Zonele de atingere rămân de 44 px (::after invizibil). Meniul nu se schimbă. */
@media (max-width: 767.98px) {
  .mobile-bottom-bar {
    gap: 10px;
    padding-left: max(14px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(14px, env(safe-area-inset-right, 0px)) !important;
  }
  .mobile-bottom-bar .bottom-brand { position: relative; margin-left: 0; padding: 0; min-width: 30px; justify-content: flex-start; }
  .mobile-bottom-bar .bottom-brand::after { content: ''; position: absolute; inset: 0 -7px; }
  .mobile-bottom-bar .bottom-duo { gap: 10px; }
  .mobile-bottom-bar .bottom-glow { min-height: 44px; padding: 3px 6px; gap: 2px; }
  .mobile-bottom-bar .bottom-glow svg { width: 16px; height: 16px; }
  body .mobile-bottom-bar .bottom-end { gap: 10px; }   /* body: peste regula din auth.css (2px) */
  .mobile-bottom-bar .bottom-account.nw-acc { --acc-size: 36px; }
  .mobile-bottom-bar .bottom-account.nw-acc svg { width: 17px; height: 17px; }
  .mobile-bottom-bar .bottom-account.nw-acc::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; }
  /* bulina „conectat”: discretă (mai mică, fără halou) */
  .mobile-bottom-bar .bottom-account.nw-acc::before { width: 8px; height: 8px; box-shadow: 0 0 0 2px var(--nv-bg); }
  .mobile-bottom-bar .bottom-hamburger { width: 20px; min-width: 20px; height: 44px; min-height: 44px; margin-right: 0; gap: 4px; }
  .mobile-bottom-bar .bottom-hamburger span { width: 20px; }
  .mobile-bottom-bar .bottom-hamburger::before { inset: 0 -12px; }
  .mobile-bottom-bar .bottom-hamburger::after { content: ''; position: absolute; inset: 0 -12px; }
  .mobile-bottom-bar .bottom-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mobile-bottom-bar .bottom-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 359px) {
  .mobile-bottom-bar,
  .mobile-bottom-bar .bottom-duo,
  body .mobile-bottom-bar .bottom-end { gap: 8px; }
  .mobile-bottom-bar .bottom-glow { padding: 3px 2px; }
}

/* 4b. MENU (the three lines) ------------------------------------------ */
/* A drawer from the right, full screen height, scrolling inside if needed; the dimmed page
   around it closes it on tap (site-ui.js). Only transform/opacity animate. */
.mobile-menu.nw-menu {
  display: block;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  align-items: initial;
  justify-content: initial;
  background: rgba(4, 4, 10, .62);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: opacity 320ms ease, visibility 0s linear 420ms;
}
.mobile-menu.nw-menu.active,
.mobile-menu.nw-menu.open {
  transition: opacity 280ms ease, visibility 0s;
}
.nw-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100% - 44px));
  box-sizing: border-box;
  padding: max(12px, env(safe-area-inset-top, 0px)) 20px calc(var(--nova-bar-h) + var(--nova-safe-b) + 24px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(120% 60% at 100% 0, rgba(var(--nv-acc-rgb), .14), transparent 60%),
    radial-gradient(90% 50% at 0 100%, rgba(var(--nv-acc2-rgb), .08), transparent 60%),
    var(--nv-bg);
  border-left: 1px solid rgba(255, 255, 255, .07);
  box-shadow: -30px 0 80px -20px rgba(0, 0, 0, .9), -1px 0 0 rgba(var(--nv-acc-rgb), .18);
  transform: translate3d(104%, 0, 0);
  transition: transform 420ms var(--nova-ease);
}
.mobile-menu.nw-menu.active .nw-menu__panel,
.mobile-menu.nw-menu.open .nw-menu__panel { transform: none; }

.nw-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.nw-menu__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(var(--nv-tx-rgb), .72);
}
.nw-menu__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: url('../favicon-nova.svg') center / contain no-repeat;
  box-shadow: 0 6px 16px -6px rgba(var(--nv-acc-rgb), .9);
}
/* the close button sits in the head (not absolutely positioned like the old overlay's) */
.nw-menu .nw-menu-close {
  position: relative;
  top: auto;
  right: -4px;
  flex: none;
}

.nw-menu__list,
.nw-menu__sub { list-style: none; margin: 0; padding: 0; }
.nw-menu__list > li { border-bottom: 1px solid rgba(255, 255, 255, .05); }
.nw-menu__row { display: flex; align-items: center; gap: 4px; }
.nw-menu__link {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 56px;
  padding: 6px 8px 6px 0;
  color: rgba(var(--nv-tx-rgb), .86);
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 180ms ease;
}
.nw-menu__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  color: var(--nv-acc-hi);
}
.nw-menu__ico svg { width: 18px; height: 18px; }
.nw-menu__hint {
  margin-left: auto;
  padding-left: 8px;
  font-family: var(--font-body, 'Figtree', system-ui, sans-serif);
  font-size: .8125rem;
  font-weight: 500;
  color: rgba(var(--nv-tx-rgb), .55);
}
.nw-menu__link:active { color: var(--nv-tx); }
.nw-menu__link:active .nw-menu__ico { background: rgba(var(--nv-acc-rgb), .16); }
.nw-menu__link[aria-current] { color: var(--nv-tx); }
.nw-menu__link[aria-current] .nw-menu__ico {
  color: var(--nv-tx);
  background: var(--accent-gradient, linear-gradient(135deg, var(--nv-acc), var(--nv-acc2)));
  box-shadow: 0 6px 18px -8px rgba(var(--nv-acc-rgb), .9);
}
.nw-menu__link[aria-current]::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  width: 3px;
  height: 24px;
  margin-top: -12px;
  border-radius: 0 3px 3px 0;
  background: var(--accent-gradient, linear-gradient(135deg, var(--nv-acc), var(--nv-acc2)));
}

/* „Acasă” arrow: opens the home-page sections */
.nw-menu__sub-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(var(--nv-tx-rgb), .8);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nw-menu__sub-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 300ms var(--nova-ease);
}
.nw-menu__sub-btn[aria-expanded="true"] { color: var(--nv-tx); background: rgba(var(--nv-acc-rgb), .12); }
.nw-menu__sub-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nw-menu__sub-btn:active { background: rgba(255, 255, 255, .06); }

.nw-menu__sub { padding: 2px 0 12px 50px; }
.nw-menu__sub a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: rgba(var(--nv-tx-rgb), .72);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.nw-menu__sub a::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: rgba(var(--nv-acc-rgb), .55);
}
.nw-menu__sub a:active { color: var(--nv-tx); }
/* sub-items fade/slide in one after another (transform + opacity only) */
.nw-menu__sub > li { opacity: 0; transform: translate3d(0, -6px, 0); transition: opacity 220ms ease, transform 320ms var(--nova-ease); }
.nw-menu__sub.is-shown > li { opacity: 1; transform: none; }
.nw-menu__sub.is-shown > li:nth-child(2) { transition-delay: 30ms; }
.nw-menu__sub.is-shown > li:nth-child(3) { transition-delay: 60ms; }
.nw-menu__sub.is-shown > li:nth-child(4) { transition-delay: 90ms; }
.nw-menu__sub.is-shown > li:nth-child(5) { transition-delay: 120ms; }
.nw-menu__sub.is-shown > li:nth-child(6) { transition-delay: 150ms; }
.nw-menu__sub.is-shown > li:nth-child(7) { transition-delay: 180ms; }
/* the items below the submenu glide into place (FLIP, site-ui.js) */
.nw-menu [data-menu-after].is-flip { transition: transform 340ms var(--nova-ease); }

.nw-menu__foot {
  margin-top: auto;
  padding-top: 28px;
}
.nw-menu__cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.nw-menu__cta .nw-glow-btn { min-height: 52px; padding: 0 12px; font-size: .9375rem; gap: 8px; }
.nw-menu__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 18px;
  margin-top: 14px;
}
.nw-menu__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(var(--nv-tx-rgb), .6);
  font-size: .8125rem;
  text-decoration: none;
}
.nw-menu__legal a[aria-current] { color: var(--nv-acc2-hi); }
.nw-menu__legal a:active { color: var(--nv-tx); }

/* entrance: the rows follow the drawer in, one after another */
.nw-menu__list > li,
.nw-menu__foot {
  opacity: 0;
  transform: translate3d(24px, 0, 0);
  transition: opacity 260ms ease, transform 460ms var(--nova-ease);
}
.mobile-menu.nw-menu.active .nw-menu__list > li,
.mobile-menu.nw-menu.active .nw-menu__foot,
.mobile-menu.nw-menu.open .nw-menu__list > li,
.mobile-menu.nw-menu.open .nw-menu__foot { opacity: 1; transform: none; }
.mobile-menu.nw-menu.active .nw-menu__list > li:nth-child(1) { transition-delay: 70ms; }
.mobile-menu.nw-menu.active .nw-menu__list > li:nth-child(2) { transition-delay: 105ms; }
.mobile-menu.nw-menu.active .nw-menu__list > li:nth-child(3) { transition-delay: 140ms; }
.mobile-menu.nw-menu.active .nw-menu__list > li:nth-child(4) { transition-delay: 175ms; }
.mobile-menu.nw-menu.active .nw-menu__list > li:nth-child(5) { transition-delay: 210ms; }
.mobile-menu.nw-menu.active .nw-menu__list > li:nth-child(6) { transition-delay: 245ms; }
.mobile-menu.nw-menu.active .nw-menu__foot { transition-delay: 280ms; }
/* the FLIP glide keeps its own timing once the drawer is open */
.mobile-menu.nw-menu.active .nw-menu__panel [data-menu-after].is-flip { transition: transform 340ms var(--nova-ease); transition-delay: 0s; }

@media (hover: hover) and (pointer: fine) {
  .nw-menu__link:hover { color: var(--nv-tx); }
  .nw-menu__sub a:hover { color: var(--nv-tx); }
  .nw-menu__legal a:hover { color: var(--nv-tx); }
  .nw-menu__sub-btn:hover { background: rgba(255, 255, 255, .05); }
}
.nw-menu__link:focus-visible,
.nw-menu__sub a:focus-visible,
.nw-menu__legal a:focus-visible,
.nw-menu__sub-btn:focus-visible {
  outline: 2px solid var(--nv-acc2);
  outline-offset: 2px;
  border-radius: 10px;
}
@media (max-width: 359px) {
  .nw-menu__panel { padding-left: 16px; padding-right: 16px; }
  .nw-menu__link[aria-current]::before { left: -16px; }
  .nw-menu__cta { grid-template-columns: minmax(0, 1fr); }
}

/* Showcase menu uses .open (style.css only makes .active visible) — make .open visible too,
   and keep visibility in the transition so it still fades out on close. */
.mobile-menu.open { visibility: visible; }
.mobile-menu:has(> .mobile-menu-close) { transition: opacity 400ms ease, visibility 400ms; }
/* gradient buttons inside the menu keep white text (".mobile-menu-links a" would grey them out) */
.mobile-menu-links a.btn-primary { color: var(--nv-tx); }

/* 7. „CITEȘTE TOT” (telefon) -------------------------------------------- */
/* Paragrafele lungi [data-clamp] arată 4 rânduri pe telefon; textul complet rămâne în pagină
   (cititoarele de ecran îl citesc întreg), iar butonul apare doar dacă textul chiar e mai lung. */
.nw-more { display: none; }
@media (max-width: 767.98px) {
  [data-clamp]:not(.is-open) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
  }
  .nw-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--nv-acc2-hi);
    font-family: var(--font-body, 'Figtree', system-ui, sans-serif);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nw-more svg { width: 16px; height: 16px; transition: transform 300ms var(--nova-ease); }
  .nw-more[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nw-more:active { opacity: .7; }
  .nw-more:focus-visible { outline: 2px solid var(--nv-acc2); outline-offset: 3px; border-radius: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-more svg { transition: none; }
}

/* 5. TOAST ----------------------------------------------------------- */
.nova-toast-region {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(24px + var(--nova-safe-b));
  z-index: 100000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
@media (max-width: 768px) {
  .nova-toast-region { bottom: calc(var(--nova-bar-h) + 12px + var(--nova-safe-b)); }
}
.nova-toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, 100%);
  min-height: 44px;
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  background: rgba(var(--nv-card-rgb), .82);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 1px rgba(var(--nv-acc-rgb), .28), 0 18px 50px -18px rgba(var(--nv-acc-rgb), .6), 0 12px 32px rgba(0, 0, 0, .45);
  color: var(--text-primary, var(--nv-tx));
  font-family: var(--font-body, 'Figtree', system-ui, sans-serif);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(.96);
  transition: opacity 220ms var(--nova-ease), transform 360ms var(--nova-ease);
}
.nova-toast.is-visible { opacity: 1; transform: none; }
.nova-toast:not(:has(.nova-toast__icon)) { padding-left: 20px; }
.nova-toast__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient, linear-gradient(135deg, var(--nv-acc), var(--nv-acc2)));
  color: var(--nv-bg);
  box-shadow: 0 0 14px -2px rgba(var(--nv-acc2-rgb), .6);
}
.nova-toast__icon svg { width: 16px; height: 16px; display: block; }
.nova-toast__text { overflow-wrap: anywhere; }

/* 6. REDUCED MOTION -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .footer-share,
  .footer-share__icon,
  .footer .footer-links-group a,
  .footer .footer-links-group a::after,
  .mobile-bottom-bar .bottom-glow,
  .mobile-bottom-bar .bottom-brand,
  .mobile-menu.nw-menu,
  .nw-menu__panel,
  .nw-menu__list > li,
  .nw-menu__foot,
  .nw-menu__sub > li,
  .nw-menu__sub-btn svg,
  .nw-menu [data-menu-after].is-flip,
  .mobile-bottom-bar .bottom-hamburger,
  .mobile-bottom-bar .bottom-hamburger::before,
  .mobile-bottom-bar .bottom-hamburger span { transition: none !important; }
  .footer .footer-links-group a:hover,
  .footer .footer-links-group a:focus-visible,
  .footer-share:hover { transform: none; }
  .nova-toast { transform: none; transition: opacity 150ms linear; }
}

/* Bara de jos: semnul „N” — plăcuță de sticlă cu margine în degradeu și litera albă, cu o lumină violet discretă
   (în locul pictogramei favicon, care la 30 px arăta pixelată). */
.mobile-bottom-bar .bottom-brand::before {
  content: 'N';
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(160deg, rgba(var(--nv-raised-rgb), .96), rgba(12, 12, 20, .96)) padding-box,
    linear-gradient(135deg, var(--nv-acc), var(--nv-acc2)) border-box;
  color: var(--nv-tx);
  -webkit-text-fill-color: #fff;
  -webkit-background-clip: padding-box, border-box;
  background-clip: padding-box, border-box;
  font: 700 1.3rem/1 var(--font-display, 'Fraunces', Georgia, serif);
  letter-spacing: -.02em;
  text-shadow: 0 0 12px rgba(var(--nv-acc-rgb), .75), 0 0 2px rgba(var(--nv-acc2-rgb), .5);
  box-shadow: 0 6px 18px -8px rgba(var(--nv-acc-rgb), .9), inset 0 1px 0 rgba(255, 255, 255, .08);
}
@media (max-width: 767.98px) {
  .mobile-bottom-bar .bottom-brand { min-width: 38px; }
}
@media (max-width: 359px) {
  .mobile-bottom-bar .bottom-brand::before { width: 34px; height: 34px; font-size: 1.15rem; border-radius: 11px; }
  .mobile-bottom-bar .bottom-brand { min-width: 34px; }
}

/* Același semn „N” peste tot (bara de jos, meniul cu 3 linii, subsolul): plăcuță de sticlă, margine în degradeu, „N” alb */
.footer .footer-brand .nav-logo::before,
.nw-menu__mark {
  content: 'N';
  display: inline-grid;
  place-items: center;
  border: 1.5px solid transparent;
  background:
    linear-gradient(160deg, rgba(var(--nv-raised-rgb), .96), rgba(12, 12, 20, .96)) padding-box,
    linear-gradient(135deg, var(--nv-acc), var(--nv-acc2)) border-box;
  -webkit-background-clip: padding-box, border-box;
  background-clip: padding-box, border-box;
  color: var(--nv-tx);
  -webkit-text-fill-color: #fff;
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: none;
  text-shadow: 0 0 12px rgba(var(--nv-acc-rgb), .75), 0 0 2px rgba(var(--nv-acc2-rgb), .5);
  box-shadow: 0 6px 18px -8px rgba(var(--nv-acc-rgb), .9), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.footer .footer-brand .nav-logo::before { width: 38px; height: 38px; border-radius: 12px; font-size: 1.3rem; }
.nw-menu__mark { box-sizing: border-box; width: 32px; height: 32px; border-radius: 10px; font-size: 1.1rem; }
.nw-menu__mark::before { content: 'N'; }

/* Runda 7: „Contul meu” din bara de jos: țintă de 44 × 44 */
@media (max-width: 767.98px) {
  .mobile-bottom-bar .bottom-account.nw-acc { --acc-size: 44px; }
  .mobile-bottom-bar .bottom-account.nw-acc svg { width: 19px; height: 19px; }
}
