/* Shared stylesheet for every page. Language variants are no longer toggled in the
   browser: Hugo renders one fully-translated page per language (/en/, /nl/, /pt/), so
   the old .en/.nl/.pt visibility rules are gone. */

/* Brand webfonts, self-hosted (#137). Anton stands in for the Canva font
   "Extend 50 Mega" and Nunito for "Bubblebody Neue"; both are SIL OFL. The files are
   the latin / latin-ext woff2 subsets from Google Fonts — refresh them with
   `node scripts/fetch-fonts.mjs`. Licences live next to them in static/fonts/.
   The latin-ext subset is what carries the Portuguese and Dutch diacritics. */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/anton-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/anton-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Nunito ships as a variable font: one file covers every weight from 400 to 800. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Base typography and page background. These mirror the Tailwind tokens in
   js/tailwind-config.js so the page still looks right before the CDN script runs. */
html { font-family: 'Nunito', system-ui, sans-serif; }
.font-display { font-family: 'Anton', 'Arial Narrow', system-ui, sans-serif; }
body { background: #F4F1EA; }

/* About Lígia bio carousel — hides the native scroll bar so the CSS
   scroll-snap track (js/index/about-carousel.js) reads as a carousel, not
   a plain overflowing div. Scrolling/swiping itself needs no JS at all. */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Staging environment banner — only visible when built with ENV_LABEL=staging */
#env-banner { display: none; }
body[data-env="staging"] #env-banner { display: block; }
body[data-env="staging"] { padding-top: 28px; }

/* Alpine: keep elements that are only shown via data-x-show hidden until Alpine has
   initialised, otherwise they flash open on load. */
[data-x-cloak] { display: none !important; }

/* Language selector (partials/lang-switcher.html, issue #154).
   The button inherits its colour from the surrounding context so the same markup works
   on the home page's dark footer and on the light account/facturen pages. The menu
   keeps its own cream background, which reads on either. */
.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.15s ease, opacity 0.15s ease;
  opacity: 0.85;
}
.lang-switcher-btn:hover,
.lang-switcher-btn:focus-visible { opacity: 1; background-color: rgb(0 0 0 / 0.06); }

.lang-switcher-menu {
  position: absolute;
  /* Opens upwards: the switcher sits at the bottom of the page. */
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 9.5rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid #B4B4B4;
  /* White rather than cream: the menu has to lift off both the dark footer and the
     cream background of the account/facturen pages. */
  background-color: #FFFFFF;
  box-shadow: 0 10px 25px rgb(0 0 0 / 0.18);
}

.lang-switcher-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 0.5rem;
  color: #3D0C11;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.lang-switcher-item:hover,
.lang-switcher-item:focus-visible { background-color: #EEE8DC; }
.lang-switcher-item.is-active { color: #B83C4E; }
