@font-face {
  font-family: 'font-sans-serif';
  src: url('/Roboto.woff') format('woff');
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.main {
  margin-top: 80px;
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 80px;
  background: #fff;
  border-bottom: 2px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-inner {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 2rem;
}

.navbar-logo {
  height: 100%;
  display: flex;
  align-items: center;
}

.navbar-logo img {
  display: block;
  height: 55%;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links li {
  display: flex;
}

.navbar-links a {
  text-decoration: none;
  font-family: 'font-sans-serif', Fallback, sans-serif;
  font-size: 20px;
  color: #555;
  display: flex;
  align-items: center;
  padding: 0 16px;
  /* coboara peste bordura de 2px a barei, ca linia butonului activ sa fie
     chiar la marginea de jos (altfel ramane o dunga gri sub ea) */
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 -3px 0 transparent;
  transition: background 0.15s, color 0.15s;
}

.navbar-links a:hover {
  background: #f5f5f5;
  color: #28166f;
}

.navbar-links a.active {
  background: #f5f5f5;
  color: #28166f;
  font-weight: 500;
  border-bottom: 4px solid #28166f;
}

.navbar-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.footer {
  background: #1a1a1a;
  padding: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.footer-links a {
  text-decoration: none;
  font-family: 'font-sans-serif', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-family: 'font-sans-serif', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.accent-word {
  color: #3a2a8f;
  text-shadow: 0 0 10px rgba(120, 140, 255, 0.3);
}

/* FADE PANEL
   Zona alba din spatele textului care se estompeaza treptat in fundal
   (functioneaza peste orice fundal, inclusiv cel punctat). Foloseste
   ::after, asa ca ::before ramane liber pentru elementul care o primeste. */

.fade-panel {
  position: relative;
  isolation: isolate;
  padding: var(--fade-panel-pad, 2.5rem);
  border-radius: 16px;
}

.fade-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fade-panel-bg, #fff);
  border-radius: inherit;
  filter: blur(var(--fade-panel-blur, 20px));
}

/* DOTTED BACKGROUND */

/* Rotatia de 0.02deg este invizibila, dar impiedica Firefox sa rotunjeasca
   deplasarea lenta la pixeli intregi (pe ecrane cu scalare 1 punctele ar
   "sari" cate un pixel in loc sa alunece). */
@keyframes bg-drift-transform {
  from { transform: translate(0, 0) rotate(0.02deg); }
  to { transform: translate(24px, 24px) rotate(0.02deg); }
}

.dot-bg {
  position: relative;
  overflow: hidden;
}

.dot-bg::before {
  content: '';
  position: absolute;
  top: -24px;
  left: -24px;
  right: -24px;
  bottom: -24px;
  background-image: radial-gradient(circle, #d0d0d0 1px, transparent 1px);
  background-size: 24px 24px;
  animation: bg-drift-transform 6s linear infinite;
  will-change: transform;
  z-index: 0;
}

@media (max-width: 768px) {
  .navbar {
    height: auto;
    min-height: 80px;
  }

  .navbar-inner {
    flex-wrap: wrap;
    padding: 0 1rem;
    width: 100%;
    height: auto;
    align-items: center;
    gap: 0;
    min-height: 80px;
    align-content: flex-start;
  }

  .navbar-logo {
    flex: 1;
    height: 80px;
    display: flex;
    align-items: center;
  }

  .navbar-logo img {
    height: 40px;
  }

  .navbar-hamburger {
    display: flex;
    height: 80px;
    align-items: center;
    margin-left: 0;
  }

  .navbar-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    gap: 0;
    height: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
  }

  .navbar-links.open {
    max-height: 400px;
    border-top: 1px solid #e5e5e5;
  }

  .navbar-links li {
    width: 100%;
  }

  .navbar-links a {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 0;
    font-size: 16px;
    box-sizing: border-box;
    height: auto;
    margin-bottom: 0;
  }

  .navbar-links a.active {
    border-bottom: none;
    border-left: 4px solid #28166f;
    background: #f5f5f5;
  }

  html {
    scrollbar-width: none;
  }
  
  html::-webkit-scrollbar {
    display: none;
  }

    .footer {
    padding: 2rem 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-logo img {
    height: 28px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
  }

  .footer-links a {
    font-size: 13px;
  }

  .footer-copy {
    font-size: 12px;
  }
}

/* Text citit doar de Google si de cititoarele de ecran (ex. titlul h1 al
   paginilor care nu au un titlu vizibil potrivit) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
