/*
Theme Name: Lumio
Theme URI: https://apigtutor.apigoat.com/
Author: Fred
Description: Block theme for Lumio.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
Version: 0.2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: remi
Tags: full-site-editing, block-patterns, custom-colors, custom-logo, custom-menu, editor-style, wide-blocks
*/

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-VariableFont_wght.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Lumio brand (Lumio Brand.dc.html, 2026-09-13) */
  --brand-primary: #35e0b2;
  --brand-primary-dark: #0da77e;
  --brand-primary-light: #d7f8ec;
  --brand-base: #ffffff;
  --brand-contrast: #122420;
  --brand-ink-deep: #0b2620;
  --brand-forest: #123c33;
  --brand-paper: #f0eee9;
  --brand-accent: #f5915e;
  --brand-sun: #f5c95e;
  --brand-gray-100: #f0eee9;
  --brand-gray-200: #e7e3da;
  --brand-gray-400: #6b6b66;
  --brand-gray-700: #47504b;
  --brand-radius: 3px;
  --brand-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --brand-shadow-lg: 0 6px 28px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
  /* clip instead of hidden: prevents horizontal scroll without creating a
     new scroll container, which would break position:sticky on the header */
  overflow-x: clip;
}

body {
  background: var(--brand-base);
  color: var(--brand-contrast);
  overflow-x: clip;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

:where(.wp-site-blocks) > * { margin-block-start: 0; }
:root :where(.is-layout-constrained) > * { margin-block-start: 0; }

:where(.wp-site-blocks *:focus) { outline: none; }
:where(.wp-site-blocks *:focus-visible) {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Site header ─────────────────────────────────────────────── */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--brand-gray-200);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: padding 0.3s ease, box-shadow 0.3s ease,
              background 0.35s ease, border-color 0.35s ease;
}

.site-header.site-header--compact {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* ── Page hero pattern ───────────────────────────────────────── */
.brand-page-hero {
  background: linear-gradient(180deg, var(--brand-ink-deep), var(--brand-forest) 60%, var(--brand-ink-deep));
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.brand-page-hero__inner { max-width: 860px; margin: 0 auto; }
.brand-page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 1rem; }
.brand-page-hero__sub { font-size: 1.1rem; opacity: 0.9; }

/* ── Sections ────────────────────────────────────────────────── */
.brand-section { padding: 4rem 1.5rem; }
.brand-section--pale { background: var(--brand-gray-100); }
.brand-section__inner { max-width: 1200px; margin: 0 auto; }
.brand-section__title { text-align: center; margin: 0 0 2rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }

.brand-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  margin: 0 0 0.5rem;
}
.brand-kicker--center { text-align: center; }
.brand-kicker--light { color: #8fc4b4; }

.brand-divider {
  width: 60px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  margin: 1.5rem auto 0;
}

/* ── Two-column ──────────────────────────────────────────────── */
.brand-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.brand-two-col--reversed .brand-two-col__img { order: -1; }
.brand-two-col__img img { width: 100%; height: auto; border-radius: var(--brand-radius); box-shadow: var(--brand-shadow); }
@media (max-width: 768px) {
  .brand-two-col { grid-template-columns: 1fr; gap: 2rem; }
  .brand-two-col--reversed .brand-two-col__img { order: 0; }
}

/* ---- Lumio site components (nav, buttons, cards, steps) ---- */
.brand-nav { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.brand-nav__link { text-decoration: none; color: var(--brand-contrast); font-weight: 600; font-size: 0.95rem; }
.brand-nav__link:hover { color: var(--brand-primary-dark); }

.brand-btn {
  display: inline-block; padding: 0.7rem 1.5rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform 0.1s ease, opacity 0.15s ease;
}
.brand-btn:hover { transform: translateY(-1px); opacity: 0.92; }
.brand-btn--primary { background: var(--brand-primary); color: var(--brand-ink-deep); }
.brand-btn--light { background: #fff; color: var(--brand-primary-dark); }
.brand-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.brand-hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0 0.5rem; }

.brand-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.brand-card {
  background: var(--brand-base); border: 1px solid var(--brand-gray-200);
  border-radius: 14px; padding: 1.5rem; box-shadow: var(--brand-shadow);
}
.brand-card__emoji { font-size: 2rem; margin-bottom: 0.5rem; }
.brand-card__title { margin: 0 0 0.5rem; font-size: 1.1rem; }
.brand-card__body { margin: 0; color: var(--brand-gray-700); font-size: 0.95rem; line-height: 1.55; }
.brand-card--row { display: flex; gap: 1rem; align-items: flex-start; }
.brand-steps { display: grid; gap: 1rem; max-width: 760px; margin: 0 auto; }

.brand-cta { text-align: center; }
.brand-cta__sub { max-width: 560px; margin: 0.75rem auto 1.5rem; color: var(--brand-gray-700); }

.brand-ol { max-width: 640px; margin: 1.25rem auto; padding-left: 1.5rem; line-height: 1.7; }
.brand-ol li { margin-bottom: 0.75rem; }
.brand-note { text-align: center; color: var(--brand-gray-700); margin-top: 2rem; }

/* ── Language switcher (overrides the boiler baseline in
     cookie-consent.css: clear segmented pill, legible on dark) ── */
.brand-lang-switcher {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--brand-gray-200);
  border-radius: 999px;
  padding: 2px;
  background: var(--brand-base);
}
.brand-lang-switcher .brand-lang-switcher__item {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  color: var(--brand-gray-700);
  opacity: 1;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.brand-lang-switcher .brand-lang-switcher__item:hover { color: var(--brand-primary-dark); opacity: 1; }
.brand-lang-switcher .brand-lang-switcher__item--active {
  background: var(--brand-primary);
  color: var(--brand-ink-deep);
}
.brand-lang-switcher .brand-lang-switcher__item--active:hover { color: var(--brand-ink-deep); }
.site-footer .brand-lang-switcher {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}
.site-footer .brand-lang-switcher .brand-lang-switcher__item { color: rgba(255, 255, 255, 0.75); }
.site-footer .brand-lang-switcher .brand-lang-switcher__item:hover { color: #fff; }
.site-footer .brand-lang-switcher .brand-lang-switcher__item--active { background: var(--brand-primary); color: var(--brand-ink-deep); }

/* ── Hero with art (2-col) ───────────────────────────────────── */
.brand-hero__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem;
  align-items: center; max-width: 1100px; margin: 0 auto; text-align: left;
}
.brand-hero__grid .brand-hero-actions { justify-content: flex-start; }
.brand-hero__grid .brand-divider { margin-left: 0; }
.brand-hero__art { position: relative; display: flex; flex-direction: column; align-items: center; }
.brand-hero__stage {
  display: block; width: min(340px, 70vw);
  position: relative;
  border-radius: 38% 42% 40% 44%;
  background: radial-gradient(circle at 35% 30%, #fdf6e9 0%, #e8f2ee 55%, #d3ece5 100%);
  box-shadow: var(--brand-shadow-lg);
  overflow: hidden;
}
.brand-hero__timer {
  position: absolute; left: 50%; bottom: 9%;
  transform: translateX(-50%);
  width: 44%; height: 6px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.10);
  overflow: hidden;
  pointer-events: none;
}
.brand-hero__timer-fill {
  display: block; height: 100%; width: 100%;
  border-radius: 999px;
  background: var(--brand-primary);
}
.brand-hero__bird { display: block; width: 100%; height: auto; }
.brand-hero__bird[hidden] { display: none; }
.brand-hero__canvas3d { display: block; width: 100%; height: auto; cursor: grab; }
.brand-hero__canvas3d:active { cursor: grabbing; }
.brand-hero__lumi-name {
  margin-top: 0.8rem; font-size: 0.85rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.18); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px; padding: 0.25rem 0.9rem;
}
.brand-hero__lumi-name:empty { display: none; }
.brand-hero__float {
  position: absolute; width: 88px; height: 88px; border-radius: 50%;
  background: #fff; box-shadow: var(--brand-shadow-lg); padding: 8px;
  animation: brand-bob 5s ease-in-out infinite;
}
.brand-hero__float img { width: 100%; height: 100%; }
.brand-hero__float--1 { top: -18px; left: 2%; animation-delay: 0s; }
.brand-hero__float--2 { bottom: -6px; right: 0; animation-delay: 1.3s; }
.brand-hero__float--3 { top: 46%; left: -30px; width: 72px; height: 72px; animation-delay: 2.4s; }
@keyframes brand-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .brand-hero__float { animation: none; } }
@media (max-width: 820px) {
  .brand-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .brand-hero__grid .brand-hero-actions { justify-content: center; }
  .brand-hero__grid .brand-divider { margin-left: auto; }
  .brand-hero__art { order: -1; }
  .brand-hero__float--3 { left: 0; }
}

/* ── Card icons (SVG replacing emoji) ────────────────────────── */
.brand-card__icon { width: 52px; height: 52px; margin-bottom: 0.6rem; }
.brand-card__icon img { width: 100%; height: 100%; }

/* ── Lumi showcase ───────────────────────────────────────────── */
.brand-lumi-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2rem;
}
.brand-lumi-card {
  background: var(--brand-base); border: 1px solid var(--brand-gray-200);
  border-radius: 16px; padding: 1rem 0.5rem 0.75rem; text-align: center;
  box-shadow: var(--brand-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.brand-lumi-card:hover { transform: translateY(-5px) rotate(-1deg); box-shadow: var(--brand-shadow-lg); }
.brand-lumi-card img { width: 84px; height: 84px; }
.brand-lumi-card figcaption { font-size: 0.8rem; font-weight: 700; color: var(--brand-gray-700); margin-top: 0.35rem; }
@media (max-width: 820px) { .brand-lumi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .brand-lumi-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } }

.brand-elements-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; margin-top: 2rem;
}
.brand-element { text-align: center; width: 84px; }
.brand-element img { width: 64px; height: 64px; }
.brand-element span { display: block; font-size: 0.78rem; font-weight: 700; color: var(--brand-gray-700); margin-top: 0.25rem; }

/* ── Kingdom section ─────────────────────────────────────────── */
.brand-kingdom__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; margin-top: 2rem;
}
@media (max-width: 820px) { .brand-kingdom__grid { grid-template-columns: 1fr; } }
.brand-mob-row { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.brand-mob { text-align: center; }
.brand-mob img { width: 108px; height: 108px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.12)); }
.brand-mob span { display: block; font-size: 0.85rem; font-weight: 700; color: var(--brand-gray-700); margin-top: 0.3rem; }
.brand-resource-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.5rem;
}
.brand-resource {
  display: flex; align-items: center; gap: 0.5rem; background: var(--brand-base);
  border: 1px solid var(--brand-gray-200); border-radius: 999px;
  padding: 0.4rem 1rem 0.4rem 0.5rem; box-shadow: var(--brand-shadow);
  font-size: 0.85rem; font-weight: 700; color: var(--brand-gray-700);
}
.brand-resource img { width: 34px; height: 34px; }

/* ── Parents / trust ─────────────────────────────────────────── */
.brand-check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: 560px; }
.brand-check-list li {
  position: relative; padding-left: 2rem; margin-bottom: 0.8rem; line-height: 1.55;
}
.brand-check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--brand-primary); color: var(--brand-ink-deep); font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}

/* ── Roadmap chips ───────────────────────────────────────────── */
.brand-roadmap-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.75rem;
}
.brand-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--brand-primary-light); color: var(--brand-primary-dark);
  border: 1px dashed var(--brand-primary); border-radius: 999px;
  padding: 0.45rem 1.1rem; font-size: 0.9rem; font-weight: 700;
}
.brand-chip--soon {
  background: var(--brand-gray-100); color: var(--brand-gray-700); border-color: var(--brand-gray-400);
}

/* ── Signup page (2-col) ─────────────────────────────────────── */
.brand-signup__cols {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem;
  align-items: start; max-width: 1100px; margin: 2rem auto 0;
}
@media (max-width: 820px) { .brand-signup__cols { grid-template-columns: 1fr; } }
.brand-signup__aside {
  background: var(--brand-gray-100); border-radius: 16px; padding: 1.5rem;
  position: sticky; top: 90px;
}
.brand-signup__aside img { width: 96px; height: 96px; display: block; margin: 0 auto 0.75rem; }

/* ── Journey strip (session → Lumi → royaume) ────────────────── */
.brand-journey {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  flex-wrap: wrap; margin: 2.5rem auto 0;
}
.brand-journey__step { text-align: center; width: 130px; }
.brand-journey__step img { width: 72px; height: 72px; }
.brand-journey__step span { display: block; font-size: 0.82rem; font-weight: 700; color: var(--brand-gray-700); margin-top: 0.3rem; }
.brand-journey__arrow { font-size: 1.5rem; color: var(--brand-primary); font-weight: 800; }

/* ── Lumio wordmark ("lumi" + ring-o, from Lumio Brand.dc.html) ── */
.brand-wordmark {
  display: inline-flex; align-items: flex-end; text-decoration: none; line-height: 1;
}
.brand-wordmark__text {
  font-size: 1.6rem; font-weight: 900; color: var(--brand-contrast); letter-spacing: -0.02em;
}
.brand-wordmark__o { position: relative; display: inline-flex; width: 1.35rem; height: 1.35rem; margin-left: 2px; margin-bottom: 1px; }
.brand-wordmark__ring { position: absolute; inset: 0; border-radius: 50%; border: 0.28rem solid var(--brand-primary); }
.brand-wordmark__dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 0.33rem; height: 0.33rem; border-radius: 50%; background: var(--brand-accent);
}
.site-footer .brand-wordmark__text { color: #fff; }
