/* Shared navigation and footer chrome for every landing route.
 * Page-specific stylesheets (for example landing_home.css) must not be
 * required for the layout itself to render correctly. */

:root {
  --landing-brand-red: #FE1825;
  --landing-text-dark: #333333;
  --landing-border: #e9ecef;
}

/* ── Header / navigation ─────────────────────────────────────────────── */
.navbar-landing {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 1rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--landing-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-landing > .container {
  position: relative;
}

.navbar-brand-landing {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.navbar-brand-landing .logo-navbar {
  display: block;
  width: auto;
  height: 40px;
  max-width: 200px;
  object-fit: contain;
}

.navbar-nav-landing {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.navbar-nav-landing li {
  position: relative;
}

.navbar-nav-landing > li > a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--landing-text-dark);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.navbar-nav-landing > li:hover > a {
  color: var(--landing-brand-red);
}

.language-switcher-navbar,
.language-switcher-navbar .btn-group {
  display: flex;
  align-items: center;
}

.language-switcher-navbar .btn-group {
  gap: 0.25rem;
}

.language-switcher-navbar .btn-group .btn,
.language-switcher-navbar .btn-group .locale-link {
  padding: 0.25rem 0.75rem;
  color: var(--landing-text-dark);
  font-size: 0.875rem;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 4px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.language-switcher-navbar .btn-group .btn.active,
.language-switcher-navbar .btn-group .locale-link.active,
.language-switcher-navbar .btn-group .locale-link.disabled {
  color: #ffffff;
  pointer-events: none;
  cursor: default;
  background: var(--landing-brand-red);
  border-color: var(--landing-brand-red);
}

.btn-nav-cta {
  padding-right: 1rem !important;
  padding-left: 1rem !important;
  color: #ffffff !important;
  background: var(--landing-brand-red);
  border-color: var(--landing-brand-red);
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer-landing {
  width: 100%;
  padding: 0;
  color: #ffffff;
  background: #000000;
}

.footer-top-bar {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top-bar-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-top-links a,
.footer-status-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-top-links a:hover,
.footer-status-link:hover {
  color: #ffffff !important;
}

.footer-status,
.footer-status-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-status-indicator {
  display: inline-block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
}

.footer-main {
  padding: 3rem 0;
  background: #000000;
}

.footer-section-title {
  margin-bottom: 1.25rem;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
}

.footer-landing .footer-link {
  display: block;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-landing .footer-link:hover {
  color: #ffffff !important;
}

.footer-bottom,
.footer-bottom > .footer {
  background: #000000;
}

.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-logo-section,
.footer-social {
  display: flex;
  align-items: center;
}

.footer-logo {
  display: block;
  width: auto;
  height: 32px;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-social {
  gap: 1rem;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 1.25rem;
  text-decoration: none;
}

.footer-social-icon:hover {
  color: #ffffff !important;
}

.footer-copyright {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-legal-link:hover {
  color: #ffffff !important;
}

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .navbar-landing {
    padding: 0.625rem 0;
  }

  .navbar-brand-landing .logo-navbar {
    height: 34px;
    max-width: min(150px, 55vw);
  }

  .navbar-landing .btn.d-md-none {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
  }

  #mobileMenu {
    width: 100%;
    max-height: calc(100dvh - 66px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-nav-accordion {
    background: #ffffff;
  }

  .footer-subscribe-bar {
    padding: 1.25rem 0;
  }

  .footer-subscribe-bar__inner {
    align-items: stretch;
    gap: 1rem;
  }

  .footer-subscribe-bar form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .footer-subscribe-bar__input {
    width: 100%;
    min-width: 0;
  }

  .footer-top-bar-content {
    align-items: flex-start;
  }

  .footer-top-links {
    width: 100%;
    gap: 0.5rem 1rem;
  }

  .footer-main {
    padding: 2rem 0 1rem;
  }

  .footer-section-title {
    margin-bottom: 0.875rem;
  }

  .footer-landing .footer-link {
    margin-bottom: 0.625rem;
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
  }

  .footer-bottom {
    padding: 1.5rem 0;
  }

  .footer-bottom-content {
    gap: 1rem;
  }

  .footer-logo {
    height: 30px;
    max-width: 150px;
  }

  .footer-bottom .footer > .container > .d-flex {
    align-items: flex-start !important;
  }

  .footer-copyright {
    margin-top: 1rem !important;
    text-align: left;
  }

  .footer-legal {
    justify-content: flex-start;
    gap: 0.75rem 1rem;
  }
}

@media (max-width: 380px) {
  .footer-subscribe-bar form {
    grid-template-columns: 1fr;
  }

  .footer-subscribe-bar__btn {
    min-height: 42px;
  }

  .footer-top-links {
    flex-direction: column;
  }
}
