/* main.css — shared CSS for BaseClean pages */

:root {
  --nav-link: #3798af;
  --nav-bg: #f5f5f5;
  --heading-blue: #244693;
  --paragraph-blue: #244693;
}

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.bg-animated {
  background-size: 200% 200%;
  animation: gradientMove 6s ease infinite;
}

/* ── Site header ────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 1rem;
  inset-inline: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 1rem;
}

.site-header-spacer {
  height: 5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--nav-bg);
  border-radius: 9999px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 2.5rem;
}

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

.nav-logo {
  flex-shrink: 0;
  margin-left: 3rem;
  margin-right: 4rem;
  display: flex;
}

.nav-logo__img {
  width: 40px;
  height: auto;
}

.nav-flag {
  width: 24px;
  height: auto;
  margin-left: 0.25rem;
}

/* ── Navbar toggle (mobile) ──────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--nav-link);
}

/* ── Mobile dropdown ─────────────────────────────────────────────────────── */
.nav-mobile {
  margin-top: 0.5rem;
  width: calc(100% - 2rem);
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 0.75rem 1rem;
}

.nav-mobile__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile__list .nav-link {
  display: block;
  border-radius: 0.75rem;
}

.nav-mobile__flag-item {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 0.25rem;
}

@media (max-width: 767px) {
  .nav-list {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ── Navbar link hover: sweep right → left ─────────────────────────────── */
.nav-link {
  position: relative;
  overflow: hidden;
  z-index: 0;
  display: inline-block;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--nav-link);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #244693;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
  z-index: -1;
}

.nav-link:hover::before {
  transform: scaleX(1);
}

.nav-link:hover {
  color: #ffffff;
}

/* Active: solid, no animation */
.nav-link--active {
  background-color: #244693;
  color: #ffffff !important;
  cursor: default;
  pointer-events: none;
}

.nav-link--active::before {
  display: none;
}

/* Footer (post-188 Elementor CSS) will be added here once extracted */
