/* ═══════════════════════════════════════════
   FOPL shared styles — nav, footer, auth pill
   Single source of truth for site-wide chrome
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background: #023b0f !important;
}

/* ── Nav bar ── */
.fopl-nav {
  background: linear-gradient(180deg, #02450f 0%, #023b0f 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  flex-wrap: wrap;
  border-bottom: 3px solid #2db84d;
  box-shadow: 0 2px 14px rgba(45,184,77,0.18);
}

.fopl-logo-wrap img {
  height: 104px;
  width: auto;
  padding: 10px 0;
  display: block;
}

.fopl-nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fopl-nav-links li a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-family: 'Cabin', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 18px 20px;
  transition: background 0.2s;
}

.fopl-nav-links li a:hover,
.fopl-nav-links li.active a {
  background: rgba(255,255,255,0.12);
}

/* ── Nav dropdown ── */
.fopl-nav-has-dropdown { position: relative; }

.fopl-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 140px;
  z-index: 1000;
}

.fopl-nav-dropdown.open { display: block; }

.fopl-nav-dropdown li a {
  display: block;
  padding: 10px 18px;
  color: #023b0f;
  font-family: 'Cabin', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  background: none;
}

.fopl-nav-dropdown li a:hover { background: #f4f8f4 !important; }

/* ── Auth nav pill ── */
#nav-auth-item a#nav-auth-link {
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 20px;
  padding: 8px 18px;
  margin: 8px 0;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

#nav-auth-item a#nav-auth-link:hover {
  background: rgba(255,255,255,0.28);
}

/* ── Footer ── */
.fopl-footer {
  background: #023b0f;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 22px 20px;
  font-size: 0.85rem;
}

.fopl-footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.fopl-footer a:hover { text-decoration: underline; }

/* ── Fun decorative scene strip above footer ── */
@keyframes palm-sway {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%       { transform: rotate(3deg) translateY(-6px); }
}
@keyframes palm-sway-r {
  0%, 100% { transform: scaleX(-1) rotate(-3deg) translateY(0); }
  50%       { transform: scaleX(-1) rotate(3deg) translateY(-6px); }
}
@keyframes mascot-bounce {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%       { transform: translateY(-14px) rotate(4deg); }
}
@keyframes nav-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.fopl-deco-scene {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #d4edda 0%, #a8d5b5 60%, #6ab87f 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 160px;
  overflow: hidden;
  padding: 0 40px;
}

/* wavy ground line */
.fopl-deco-scene::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  background: #023b0f;
  border-radius: 60% 60% 0 0 / 100% 100% 0 0;
}

.fopl-deco-scene::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(2,59,15,0.18);
}

.deco-palm {
  height: 140px;
  width: auto;
  mix-blend-mode: multiply;
  position: relative;
  z-index: 2;
  transform-origin: bottom center;
  animation: palm-sway 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(2,59,15,0.25));
}

.deco-palm--right {
  animation: palm-sway-r 4.5s ease-in-out infinite;
  transform: scaleX(-1);
}

.deco-book-mascot {
  height: 110px;
  width: auto;
  mix-blend-mode: multiply;
  position: relative;
  z-index: 2;
  transform-origin: bottom center;
  animation: mascot-bounce 2.2s ease-in-out infinite;
  filter: drop-shadow(0 6px 10px rgba(2,59,15,0.3));
}

/* ── Nav fun: subtle shimmer underline on active ── */
.fopl-nav-links li.active a {
  background: rgba(255,255,255,0.16);
  border-bottom: 3px solid #58e87a;
}

/* ── Nav fun: hover leaf-pop effect ── */
.fopl-nav-links li a:hover {
  background: rgba(255,255,255,0.14);
  color: #a8f5b8;
  transition: background 0.2s, color 0.2s;
}


/* ── Responsive nav ── */
@media (max-width: 640px) {
  .fopl-nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 16px;
  }
  .fopl-nav-links { flex-wrap: wrap; }
  .fopl-nav-links li a {
    padding: 12px 14px;
    font-size: 0.85rem;
  }
}
