/* ============================================================
   NAV + FOOTER
   ============================================================ */

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  width: min(var(--container), 100% - 2rem);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.nav__mark {
  display: inline-flex;
  color: var(--teal);
}
.nav__logo-img {
  display: block;
  width: auto;
  height: 32px;
}
.footer .nav__logo-img {
  height: 28px;
}
.nav__wordmark { white-space: nowrap; }

.nav__links {
  display: flex;
  gap: var(--s-5);
  margin-left: auto;
}
.nav__links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--teal); border-color: var(--cyan); }
.nav__links a.is-active { color: var(--teal-deep); border-color: var(--cyan); }

/* Underline draws in from the left on hover; active dot pops with a spring */
.nav__links a {
  position: relative;
}
.nav__links a::before {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(.2, .7, .2, 1);
}
.nav__links a:hover::before,
.nav__links a.is-active::before { transform: scaleX(1); }

/* Brand logo gently floats */
@keyframes iepLogoBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-2px) rotate(-3deg); }
}
.nav__logo-img { animation: iepLogoBob 5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .nav__logo-img { animation: none !important; }
  .nav__links a::before { transition: none !important; }
}

.nav__cta { margin-left: var(--s-2); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  width: 40px;
  height: 40px;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.nav__toggle:hover { border-color: var(--cyan); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-9);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.8fr 0.9fr 0.9fr 0.9fr;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
@media (max-width: 1080px) {
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: var(--s-3);
}
.footer__tagline {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: 0;
  max-width: 32ch;
}

.footer__col h4 {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
  font-weight: 600;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: var(--s-2); }
.footer__col a {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  transition: color var(--dur) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer__col a:hover { color: var(--teal); }
.footer__col a i { width: 16px; text-align: center; color: var(--muted); transition: transform 0.35s cubic-bezier(.2,.7,.2,1), color var(--dur) var(--ease); }
.footer__col a:hover i { color: var(--teal); transform: translateX(3px) rotate(-8deg); }
@media (prefers-reduced-motion: reduce) {
  .footer__col a i { transition: none !important; }
  .footer__col a:hover i { transform: none; }
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-5);
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: var(--fs-sm);
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--s-4);
    gap: var(--s-3);
    box-shadow: var(--shadow-md);
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; margin-left: auto; }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
/* ============================================================
   COOKIE BANNER — injected by shared/cookies.js
   ============================================================ */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 0 var(--s-4) var(--s-4);
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.cookie-banner.is-hiding {
  opacity: 0;
  transform: translateY(16px);
}

.cookie-banner__inner {
  margin: 0 auto;
  max-width: 980px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(11, 26, 31, 0.16);
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.cookie-banner__icon {
  font-size: 1.5rem;
  color: var(--teal);
  flex-shrink: 0;
}

.cookie-banner__text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  flex: 1;
}

.cookie-banner__text a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover { color: var(--teal-deep); }

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-banner__icon { display: none; }
  .cookie-banner__actions { justify-content: center; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}

.footer__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__legal a:hover { color: var(--teal); }

/* Screen-reader-only utility */
.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;
}
