/* app.css --- Limegrowth's own styles, layered over Bulma.
 *
 * The language switcher markup comes from hyperion/i18n:language-switcher
 * (.language-switcher / __current / __menu / __option). Hyperion ships the
 * behaviour-neutral markup; the app owns the look. This is a pure-CSS
 * hover/focus dropdown so it degrades without JS (each option is also a
 * boosted link, so it works with JS off too). */

.language-switcher {
  position: relative;
  display: inline-block;
  font-size: 0.875rem;
}

.language-switcher__current {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.35em 0.75em;
  cursor: pointer;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  background: #fff;
  /* Pin the text colour: the switcher sits in a hero/footer whose inherited
     colour is light, which would render the name invisible on the white button
     (the flag still shows -- emoji carry their own colour). */
  color: #363636;
  white-space: nowrap;
}

.language-switcher__current::after {
  content: "\25be";            /* ▾ */
  margin-left: 0.15em;
  opacity: 0.6;
}

.language-switcher__flag {
  font-size: 1.1em;
  line-height: 1;
}

.language-switcher__menu {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 100%;
  margin: 0.25rem 0 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.25rem);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
  z-index: 30;
}

/* Reveal on hover or keyboard focus anywhere within the switcher. */
.language-switcher:hover .language-switcher__menu,
.language-switcher:focus-within .language-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-switcher__option {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 0.9em;
  color: #363636;
  white-space: nowrap;
  text-decoration: none;
}

.language-switcher__option:hover {
  background: #f5f5f5;
}

.language-switcher__option.is-current {
  font-weight: 600;
  background: #f0faf0;
}

/* Pinned top navbar --- one look across the site (marketing, auth, later the
 * dashboard); two variants differ only in how the bar meets the page:
 *
 *   --solid  opaque white, sticky (auth/content pages). Sticky avoids the
 *            layout-shift a fixed navbar would need.
 *   --hero   transparent over the landing hero, fixed; main.js adds .is-scrolled
 *            past a small scroll, fading in the SAME solid white bar (which stays
 *            pinned) -- so the scrolled state matches --solid everywhere. Reusable
 *            "transparent-until-scrolled sticky header" pattern (hyperion/js).
 */
.lg-topnav { z-index: 30; }

.lg-topnav--solid {
  position: sticky;
  top: 0;
  box-shadow: 0 2px 8px -4px rgba(10, 10, 10, 0.18);
}
.lg-topnav--solid .navbar-item,
.lg-topnav--solid .lg-signin { color: #363636; }

.lg-topnav--hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  box-shadow: none;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
/* Light content while transparent over the dark hero image. */
.lg-topnav--hero .navbar-item,
.lg-topnav--hero .lg-signin { color: #ffffff; }
/* Hover: warning yellow over the transparent hero -- Bulma's default hover turns
   nav items dark (invisible on the hero) and the ghost Sign In green + underlined.
   Stays dark once solid. */
.lg-topnav--hero:not(.is-scrolled) .navbar-item:hover,
.lg-topnav--hero:not(.is-scrolled) .lg-signin:hover {
  color: #fbdc8e;
  background-color: transparent;
  text-decoration: none;
}
.lg-topnav--hero.is-scrolled .navbar-item:hover { color: #363636; }

/* Solidified once scrolled: white bar, dark content, still pinned. */
.lg-topnav--hero.is-scrolled {
  background-color: #ffffff;
  box-shadow: 0 2px 8px -4px rgba(10, 10, 10, 0.18);
}
.lg-topnav--hero.is-scrolled .navbar-item,
.lg-topnav--hero.is-scrolled .lg-signin { color: #363636; }

/* Enlarge the brand logo without growing the bar: drop the brand item's own
 * vertical padding so a taller logo fits within the navbar's existing height. */
.lg-topnav .navbar-brand .navbar-item {
  padding-top: 0;
  padding-bottom: 0;
}

/* CSS hamburger (mobile) --- drawn with currentColor so it follows the navbar
 * state instead of a fixed-colour SVG (which vanished on the white bar). */
.lg-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.lg-burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background-color: currentColor;
  transition: background-color 0.25s ease;
}
/* Colour by navbar state: light over the transparent hero, dark once solid. The
 * .is-scrolled selector is more specific, so it wins over the hero white rule. */
.lg-topnav--hero .lg-burger { color: #ffffff; }
.lg-topnav--solid .lg-burger,
.lg-topnav--hero.is-scrolled .lg-burger { color: #363636; }

/* Cookie-consent banner --- markup + hx wiring come from hyperion/consent; the
 * app owns the look. Fixed to the bottom, above page content, both choices
 * equally weighted (no dark-pattern emphasis on "accept"). */
.hy-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-top: 1px solid #dbdbdb;
  box-shadow: 0 -0.25em 1em -0.25em rgba(10, 10, 10, 0.15);
}

.hy-consent-banner__message {
  margin: 0;
  flex: 1 1 22rem;
  min-width: 16rem;
  color: #363636;
  font-size: 0.9rem;
  line-height: 1.4;
}

.hy-consent-banner__policy {
  color: #006251;
  font-weight: 600;
  text-decoration: underline;
}

.hy-consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hy-consent-banner__btn {
  cursor: pointer;
  padding: 0.5em 1.1em;
  border-radius: 4px;
  border: 1px solid #006251;
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff;
  color: #006251;
}

.hy-consent-banner__btn--accept {
  background: #006251;
  color: #fff;
}

.hy-consent-banner__btn:hover {
  filter: brightness(0.95);
}

@media (max-width: 48rem) {
  .hy-consent-banner__actions { width: 100%; }
  .hy-consent-banner__btn { flex: 1 1 auto; }
}
