/**
 * Header + footer unificat — override pe modern.css ȘI styles.css
 * ca aspectul să fie identic pe index, contact, blog, legal.
 */

:root {
  --chrome-ink: #0f172a;
  --chrome-muted: #64748b;
  --chrome-line: rgba(15, 23, 42, 0.1);
  --chrome-bg: #ffffff;
  --chrome-blue: #5a8fc0;
  --chrome-blue-deep: #4a7aab;
  --chrome-radius: 12px;
  --header-h: 72px;
  --header-height: 72px;
}

/* ---------- Header ---------- */
.header#header,
header.header#header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: var(--header-h) !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid var(--chrome-line) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: var(--chrome-ink) !important;
}

.header#header .nav,
header.header#header .nav {
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  width: min(100% - 40px, 1120px) !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.header#header .nav-logo,
.header#header .logo-text {
  display: inline-flex !important;
  align-items: baseline !important;
  text-decoration: none !important;
  filter: none !important;
  color: inherit !important;
}

.header#header .logo-text {
  font-weight: 700 !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
}

.header#header .logo-we,
.header#header .logo-evelop { color: #7ba8c9 !important; }
.header#header .logo-b {
  color: #7ba8c9 !important;
  font-weight: 800 !important;
  display: inline-block !important;
  transform: scaleX(-1) !important;
}
.header#header .logo-d { color: #7ba8c9 !important; font-weight: 800 !important; }
.header#header .logo-ro {
  color: #9dc4db !important;
  font-size: 0.55em !important;
  margin-left: 1px !important;
  vertical-align: sub !important;
  font-weight: 600 !important;
}

.header#header .nav-menu {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  position: static !important;
  height: auto !important;
  width: auto !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.header#header .nav-menu li,
.header#header .nav-item {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  list-style: none !important;
}

.header#header .nav-link {
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: var(--chrome-muted) !important;
  text-decoration: none !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}

.header#header .nav-link:hover,
.header#header .nav-link.active {
  color: var(--chrome-ink) !important;
}

.header#header .nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.header#header .nav-actions .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 16px !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transform: none !important;
}

.header#header .nav-actions .btn-outline {
  background: transparent !important;
  color: var(--chrome-ink) !important;
  border: 1px solid var(--chrome-line) !important;
}

.header#header .nav-actions .btn-outline:hover {
  border-color: var(--chrome-blue-deep) !important;
  color: var(--chrome-blue-deep) !important;
}

.header#header .nav-actions .btn-primary {
  background: var(--chrome-blue-deep) !important;
  color: #fff !important;
  border: 1px solid var(--chrome-blue-deep) !important;
}

.header#header .nav-actions .btn-primary:hover {
  background: #4d7fad !important;
  border-color: #4d7fad !important;
}

.header#header .nav-toggle {
  display: none !important;
  width: 40px !important;
  height: 40px !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 5px !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
}

.header#header .nav-toggle span {
  display: block !important;
  width: 20px !important;
  height: 2px !important;
  background: var(--chrome-ink) !important;
  transition: 0.25s ease !important;
}

.header#header .nav-toggle.open span:nth-child(1),
.header#header .nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg) !important;
}
.header#header .nav-toggle.open span:nth-child(2),
.header#header .nav-toggle.active span:nth-child(2) {
  opacity: 0 !important;
}
.header#header .nav-toggle.open span:nth-child(3),
.header#header .nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg) !important;
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
    --header-height: 64px;
  }

  .header#header .nav-toggle {
    display: flex !important;
  }

  .header#header .nav-menu {
    position: fixed !important;
    top: var(--header-h) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: auto !important;
    max-height: calc(100svh - var(--header-h)) !important;
    overflow-y: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    background: #fff !important;
    border-bottom: 1px solid var(--chrome-line) !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .header#header .nav-menu.open,
  .header#header .nav-menu.active {
    display: flex !important;
  }

  .header#header .nav-link {
    display: block !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--chrome-line) !important;
  }

  .header#header .nav-actions .btn-outline {
    display: none !important;
  }
}

/* ---------- Footer ---------- */
.footer#footer,
footer.footer#footer {
  background: #ffffff !important;
  color: var(--chrome-ink) !important;
  border-top: 1px solid var(--chrome-line) !important;
  padding: 56px 0 28px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}

.footer#footer > .container {
  width: min(100% - 40px, 1120px) !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
}

.footer#footer .footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr !important;
  gap: 40px !important;
  margin-bottom: 28px !important;
}

.footer#footer .footer-brand p,
.footer#footer .footer-description {
  color: var(--chrome-muted) !important;
  margin: 14px 0 18px !important;
  max-width: 320px !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  filter: none !important;
}

.footer#footer .footer-logo-text,
.footer#footer .logo-text {
  filter: none !important;
  font-size: 1.35rem !important;
}

.footer#footer .logo-we,
.footer#footer .logo-evelop { color: #7ba8c9 !important; }
.footer#footer .logo-b {
  color: #7ba8c9 !important;
  font-weight: 800 !important;
  display: inline-block !important;
  transform: scaleX(-1) !important;
}
.footer#footer .logo-d { color: #7ba8c9 !important; font-weight: 800 !important; }
.footer#footer .logo-ro {
  color: #9dc4db !important;
  font-size: 0.55em !important;
  margin-left: 1px !important;
  vertical-align: sub !important;
  font-weight: 600 !important;
}

.footer#footer .footer-contact {
  display: grid !important;
  gap: 8px !important;
}

.footer#footer .footer-contact a,
.footer#footer .contact-link {
  font-weight: 600 !important;
  color: var(--chrome-ink) !important;
  text-decoration: none !important;
  display: block !important;
  font-size: 0.92rem !important;
}

.footer#footer .footer-contact a:hover,
.footer#footer .contact-link:hover {
  color: var(--chrome-blue-deep) !important;
}

.footer#footer h4,
.footer#footer .footer-title {
  font-size: 0.75rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--chrome-muted) !important;
  margin: 0 0 14px !important;
  font-weight: 700 !important;
}

.footer#footer .footer-links ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.footer#footer .footer-links li {
  margin: 0 0 8px !important;
}

.footer#footer .footer-links a {
  color: var(--chrome-ink) !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  text-decoration: none !important;
}

.footer#footer .footer-links a:hover {
  color: var(--chrome-blue-deep) !important;
}

.footer#footer .footer-preferred {
  margin-top: 8px !important;
  padding-top: 22px !important;
  border-top: 1px solid var(--chrome-line) !important;
  display: grid !important;
  gap: 12px !important;
}

.footer#footer .footer-preferred-note {
  margin: 0 !important;
  color: var(--chrome-muted) !important;
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
  max-width: 42rem !important;
}

.footer#footer .footer-preferred-badge {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px 16px !important;
  min-height: 40px !important;
}

.footer#footer .footer-preferred-fallback {
  color: var(--chrome-blue-deep) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
}

.footer#footer .footer-preferred-fallback:hover {
  color: var(--chrome-ink) !important;
}

.footer#footer .footer-anpc {
  margin-top: 8px !important;
  padding-top: 22px !important;
  border-top: 1px solid var(--chrome-line) !important;
  display: grid !important;
  gap: 12px !important;
}

.footer#footer .footer-anpc-note {
  margin: 0 !important;
  color: var(--chrome-muted) !important;
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
}

.footer#footer .footer-anpc-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px 14px !important;
}

.footer#footer .footer-anpc-badge {
  display: inline-block !important;
  line-height: 0 !important;
  text-decoration: none !important;
  border: 0 !important;
  background: transparent !important;
}

.footer#footer .footer-anpc-badge img {
  display: block !important;
  width: 250px !important;
  height: 50px !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter: none !important;
}

.footer#footer .footer-bottom {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  padding-top: 22px !important;
  border-top: 1px solid var(--chrome-line) !important;
  font-size: 0.85rem !important;
  color: var(--chrome-muted) !important;
}

.footer#footer .footer-bottom p,
.footer#footer .copyright {
  margin: 0 !important;
  color: var(--chrome-muted) !important;
}

.footer#footer .footer-legal {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px 18px !important;
  align-items: center !important;
}

.footer#footer .footer-legal a {
  color: var(--chrome-muted) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.footer#footer .footer-legal a:hover {
  color: var(--chrome-ink) !important;
}

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

  .footer#footer {
    padding: 48px 0 28px !important;
  }

  .footer#footer .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
  }

  .footer#footer .footer-anpc {
    text-align: center !important;
    justify-items: center !important;
  }

  .footer#footer .footer-anpc-badges {
    justify-content: center !important;
  }

  .footer#footer .footer-anpc-badge img {
    width: min(250px, 92vw) !important;
    height: auto !important;
    aspect-ratio: 250 / 50 !important;
  }

  .footer#footer .footer-legal {
    justify-content: center !important;
  }
}

.header#header,
.footer#footer,
.header#header .nav-link,
.header#header .btn,
.footer#footer a,
.footer#footer p,
.footer#footer h4 {
  font-family: "Outfit", system-ui, sans-serif !important;
}
