/* =============================================
   SOLVERSTOP — Navbar & Footer Styles
   ============================================= */

/* --- Navbar --- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--grey-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* --- Logo --- */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--blue); }
/* Trademark symbol — small, unobtrusive */
.tm {
  font-size: 0.5em;
  font-weight: 600;
  opacity: 0.55;
  vertical-align: super;
  line-height: 1;
  margin-left: 1px;
}

/* --- Nav Menu --- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-item {
  position: relative;
}
/* Used on both <a> and <button> elements — the last 4 properties
   (background, border, font-family, line-height) reset browser button defaults
   so dropdown triggers (Company, Resources) look identical to regular links */
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  background: none;
  border: none;
  font-family: var(--font);
  line-height: inherit;
}
.nav-link:hover,
.nav-item:hover > .nav-link {
  background: var(--gold-light);
  color: var(--gold);
}
.nav-link .chevron {
  font-size: 1.1em;
  line-height: 1;
  transition: transform var(--transition);
  flex-shrink: 0;
  display: inline-block;
  transform: rotate(180deg);
}
.nav-item.open > .nav-link .chevron,
.nav-item:hover > .nav-link .chevron {
  transform: rotate(0deg);
  color: var(--gold);
  font-weight: 900;
  text-shadow: 0 0 1px var(--gold);
}

/* Contact button in nav */
.nav-link-cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
}
.nav-link-cta:hover {
  background: var(--gold) !important;
  color: var(--black) !important;
}

/* --- Dropdown --- */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 240px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 999;
  /* Allow JS to set width dynamically */
  box-sizing: border-box;
}
.dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* Keep nav-link highlighted while its dropdown is open */
.nav-item.open > .nav-link {
  background: var(--gold-light);
  color: var(--gold);
}
.nav-item.open > .nav-link .chevron {
  transform: rotate(0deg);
}
.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold);
}
/* Solutions Overview — first row, black bg, white text, gold on hover */
.dropdown-item.dropdown-item-overview {
  color: var(--white);
  font-weight: 700;
  background: var(--black);
  margin: -8px 0 0 0;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 12px 20px;
}
.dropdown-item.dropdown-item-overview:hover {
  color: var(--gold);
  background: var(--black);
}
.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 6px 0;
}

/* --- Hamburger (mobile) ---
   Rectangular design: white background, black lines.
   When active (menu open): yellow background, black X lines. */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  border-radius: 0;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: var(--white);
  transition: background 0.25s ease, border-color 0.25s ease;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.nav-hamburger:hover { background: var(--gold); border-color: var(--gold); }
.nav-hamburger.active { background: var(--gold); border-color: var(--gold); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 0;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.nav-hamburger.active span { background: var(--black); }
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   FOOTER
   ============================================= */
#footer {
  background: var(--black);
  border-top: none;
}

/* Footer Row 1 — Four-column layout */
.footer-row1 {
  background: var(--black);
  padding: clamp(40px, 4.5vw, 64px) 0 clamp(36px, 4vw, 56px);
}
.footer-row1-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 0.7fr;
  gap: clamp(28px, 3.5vw, 56px);
}

/* Footer columns */
.footer-col-heading {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

/* Brand column */
.footer-col-brand .footer-logo { margin-bottom: 14px; }
.footer-brand-desc {
  color: rgba(255,255,255,0.62);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 300px;
}

/* Footer links list */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.62);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover { color: var(--gold); }
.footer-link-icon {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Footer Row 2 — Copyright + Legal Disclaimer + Imprint + Policy Links
   Structure: .footer-copy-line (copyright), .footer-copy-detail (legal text),
   .footer-bottom-row (imprint | Terms · Privacy · Cookies · Cookie Settings · Archives)
   "Cookie Settings" link is wired to the cookie consent banner via JS in components.js */
.footer-row2 {
  background: var(--black);
}

/* Copyright bar */
.footer-copyright {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px var(--container-pad) 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-copy-line {
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.footer-copy-detail {
  text-align: center;
  color: rgba(255,255,255,0.22);
  font-size: 0.78rem;
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto 14px;
}
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-imprint {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.01em;
}
.footer-bottom-sep {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,0.10);
}
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-link-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
}
.footer-legal-links a {
  color: rgba(255,255,255,0.38);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}
.footer-legal-links a:hover {
  color: var(--gold);
}
@media (max-width: 768px) {
  .footer-bottom-row {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .footer-bottom-sep { display: none; }
  .footer-imprint {
    font-size: 0.72rem;
    line-height: 1.5;
    word-break: break-word;
    max-width: 100%;
    padding: 0 8px;
  }
  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 6px;
    padding: 0 8px;
  }
  .footer-legal-links a {
    font-size: 0.74rem;
  }
  .footer-link-dot {
    width: 2px;
    height: 2px;
  }
  .footer-copy-detail {
    font-size: 0.72rem;
    padding: 0 8px;
  }
  .footer-copy-line {
    font-size: 0.74rem;
  }
  .footer-row1 {
    padding: clamp(32px, 4vw, 48px) 0 clamp(28px, 3.5vw, 40px);
  }
  .footer-col-heading {
    font-size: 0.82rem;
    margin-bottom: 14px;
  }
  .footer-brand-desc {
    font-size: 0.84rem;
  }
  .footer-links a {
    font-size: 0.84rem;
  }
  .footer-info-item {
    font-size: 0.84rem;
  }
  .footer-social-row {
    justify-content: center;
  }
  .lang-dropup-list {
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    bottom: calc(100% + 6px);
  }
  .lang-dropup.open .lang-dropup-list {
    transform: translateX(-50%) translateY(0);
  }
}

/* Logo in footer */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.footer-logo svg { width: 28px; height: 28px; }
.footer-logo-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.footer-logo-text span { color: var(--white); }
.footer-logo--small .footer-logo-text { font-size: 0.92rem; }

/* Footer email */
.footer-email {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-email:hover { color: var(--gold); }
.footer-email svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Social icons */
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-social-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  opacity: 0.4;
  transition: opacity var(--transition), border-color var(--transition);
  text-decoration: none;
}
.footer-social-icon svg {
  width: 16px; height: 16px;
  stroke: rgba(255,255,255,0.6);
  fill: none;
  stroke-width: 2;
}
.footer-social-icon--active {
  opacity: 1;
  cursor: pointer;
  border-color: rgba(255,255,255,0.45);
}
.footer-social-icon--active:hover {
  border-color: var(--gold);
  background: var(--gold);
}
.footer-social-icon--active:hover svg {
  stroke: var(--black);
}
.footer-social-icon--active svg {
  stroke: var(--white);
  fill: none;
}
/* Filled sub-elements inside SVGs (e.g. YouTube play button, Discord dots) */
.footer-social-icon--active svg [fill="currentColor"] {
  fill: var(--white);
}
.footer-social-icon--active:hover svg [fill="currentColor"] {
  fill: var(--black);
}
/* Icons that use fill on the root SVG (e.g. X/Twitter) */
.footer-social-icon--active svg[fill="currentColor"] {
  fill: var(--white);
  stroke: none;
}
.footer-social-icon--active:hover svg[fill="currentColor"] {
  fill: var(--black);
  stroke: none;
}

/* Language Toggle */
.lang-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
/* (old .lang-btn styles removed — replaced by drop-up and dropdown) */

/* Footer static info item (non-link, e.g. location) */
.footer-info-item {
  color: rgba(255,255,255,0.62);
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---- Navbar Language Dropdown ---- */
.nav-item-lang {
  margin-left: 8px;
}
.nav-link-lang {
  font-size: 0.84rem !important;
  gap: 4px !important;
  padding: 6px 12px !important;
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius) !important;
}
.nav-lang-flag {
  font-size: 1rem;
  line-height: 1;
}
.dropdown-lang {
  min-width: auto !important;
  background: var(--white) !important;
  border: 1px solid var(--grey-border) !important;
}
.dropdown-lang-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  color: var(--black);
}
.dropdown-lang-item:hover {
  background: var(--gold-light);
  color: var(--gold);
}
.dropdown-lang-item.active {
  color: var(--gold);
}
.dropdown-lang-item.disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}
.lang-coming-soon {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-left: 6px;
}

/* ---- Footer Language Drop-Up ---- */
.lang-dropup {
  position: relative;
  display: inline-block;
}
.lang-dropup-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color var(--transition), color var(--transition);
}
.lang-dropup-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.lang-dropup-chevron {
  font-size: 0.7em;
  margin-left: 4px;
  transition: transform var(--transition);
}
.lang-dropup.open .lang-dropup-chevron {
  transform: rotate(180deg);
}
.lang-dropup-flag {
  font-size: 1.1rem;
  line-height: 1;
}
.lang-dropup-list {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: var(--radius);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  min-width: 160px;
  padding: 6px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.lang-dropup.open .lang-dropup-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-dropup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.lang-dropup-item:hover {
  background: var(--gold-light);
  color: var(--gold);
}
.lang-dropup-item.active {
  color: var(--gold);
}
.lang-dropup-item.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 480px) {
  .footer-row1-inner {
    gap: 28px;
  }
  .footer-col-heading {
    font-size: 0.78rem;
    margin-bottom: 12px;
  }
  .footer-brand-desc {
    font-size: 0.8rem;
  }
  .footer-links a,
  .footer-info-item {
    font-size: 0.8rem;
  }
  .footer-links li {
    margin-bottom: 6px;
  }
  .footer-imprint {
    font-size: 0.68rem;
  }
  .footer-legal-links a {
    font-size: 0.7rem;
  }
  .footer-copy-detail {
    font-size: 0.68rem;
  }
  .footer-social-icon,
  .footer-social-icon--active {
    width: 40px;
    height: 40px;
  }
  .footer-social-icon svg,
  .footer-social-icon--active svg {
    width: 14px;
    height: 14px;
  }
}

/* Mobile touch targets (44px minimum per WCAG) */
@media (max-width: 768px) {
  .nav-link-lang {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .footer-social-icon {
    width: 44px;
    height: 44px;
  }
  .footer-legal-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
