/*
Theme Name: Limilou
Theme URI: https://example.com/limilou
Author: GraFix
Description: A dreamy, interactive, Elementor-compatible WordPress theme for the Limilou children's storytelling brand.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: limilou
License: GNU General Public License v2 or later
*/

:root {
  --limi-navy: #0b1832;
  --limi-blue: #14284d;
  --limi-yellow: #ffd21f;
  --limi-gold: #ffb818;
  --limi-coral: #ef4b2f;
  --limi-cream: #fff9ef;
  --limi-sky: #dff3ff;
  --limi-ink: #17213a;
  --limi-radius: 28px;
  --limi-shadow: 0 24px 70px rgba(19, 31, 66, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--limi-ink);
  background: var(--limi-cream);
  font-family: "Nunito", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.limilou-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-main { min-height: 60vh; }

.site-header {
  position: fixed;
  inset: 18px 0 auto;
  z-index: 1000;
  transition: .3s ease;
}
.site-header.is-scrolled { inset: 10px 0 auto; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px 18px 12px 24px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: rgba(255,255,255,.77);
  box-shadow: 0 14px 40px rgba(9, 20, 43, .12);
  backdrop-filter: blur(18px);
}
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 48px; width: auto; }
.site-title { font-size: 1.45rem; font-weight: 900; color: var(--limi-coral); }
.primary-menu { display: flex; list-style: none; gap: 28px; margin: 0; padding: 0; font-weight: 800; }
.primary-menu a { position: relative; }
.primary-menu a::after { content:""; position:absolute; left:0; right:100%; bottom:-6px; height:3px; border-radius:99px; background:var(--limi-yellow); transition:.25s; }
.primary-menu a:hover::after { right:0; }
.header-cta, .limi-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px;
  color: #fff; background: linear-gradient(135deg, var(--limi-coral), #ff754d);
  font-weight: 900; box-shadow: 0 14px 30px rgba(239,75,47,.25); transition: .25s ease;
}
.header-cta:hover, .limi-button:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 36px rgba(239,75,47,.33); }
.limi-button--light { background:#fff; color:var(--limi-ink); box-shadow:0 14px 30px rgba(13,25,55,.12); }
.menu-toggle { display:none; border:0; background:transparent; font-size:1.6rem; }

.limi-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 70% 30%, #fff4b4 0, rgba(255,244,180,.7) 15%, transparent 38%), linear-gradient(180deg, #dff4ff 0%, #fbf3ff 55%, #fff8ed 100%);
}
.limi-hero::before, .limi-hero::after {
  content:""; position:absolute; border-radius:50%; filter:blur(8px); z-index:-2;
}
.limi-hero::before { width:540px; height:540px; left:-180px; top:18%; background:rgba(166,220,255,.44); }
.limi-hero::after { width:470px; height:470px; right:-130px; bottom:-120px; background:rgba(255,193,183,.36); }
.hero-stars { position:absolute; inset:0; pointer-events:none; z-index:-1; background-image:radial-gradient(circle, rgba(255,255,255,.95) 1.4px, transparent 1.6px); background-size:58px 58px; opacity:.55; animation:drift 20s linear infinite; }
@keyframes drift { to { transform:translate3d(-58px,58px,0); } }
.limi-hero__grid { display:grid; grid-template-columns: 1.03fr .97fr; align-items:center; gap:50px; padding-top:130px; padding-bottom:80px; }
.limi-eyebrow { display:inline-flex; align-items:center; gap:9px; padding:9px 15px; border-radius:999px; background:rgba(255,255,255,.76); box-shadow:0 10px 30px rgba(34,45,88,.08); font-weight:900; color:#704b08; }
.limi-title { margin:22px 0 18px; max-width:760px; font-size:clamp(3.3rem, 7vw, 7rem); line-height:.93; letter-spacing:-.055em; color:var(--limi-navy); }
.limi-title em { display:block; color:var(--limi-coral); font-style:normal; }
.limi-lead { max-width:630px; font-size:clamp(1.1rem, 2vw, 1.35rem); line-height:1.7; color:#42506d; }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; margin-top:30px; }
.hero-visual { position:relative; min-height:640px; display:grid; place-items:center; }
.hero-orbit { position:absolute; width:min(560px, 90%); aspect-ratio:1; border-radius:50%; border:1px solid rgba(255,255,255,.85); box-shadow:inset 0 0 80px rgba(255,255,255,.52), 0 40px 90px rgba(43,63,116,.14); background:radial-gradient(circle at 50% 45%, rgba(255,255,255,.88), rgba(255,255,255,.3) 52%, rgba(255,255,255,.05) 70%); animation:pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { transform:scale(1.035); } }
.hero-character { position:relative; z-index:3; width:min(470px, 88%); max-height:620px; object-fit:contain; filter:drop-shadow(0 28px 28px rgba(112,65,16,.2)); animation:floaty 5.6s ease-in-out infinite; }
.hero-character video { width:100%; display:block; border-radius:40px; background:transparent; }
@keyframes floaty { 50% { transform:translateY(-22px) rotate(1deg); } }
.cloud { position:absolute; z-index:1; background:rgba(255,255,255,.82); border-radius:999px; filter:drop-shadow(0 15px 25px rgba(98,130,171,.13)); animation:cloudmove 8s ease-in-out infinite; }
.cloud::before,.cloud::after{content:"";position:absolute;background:inherit;border-radius:50%;}
.cloud--1 { width:200px; height:62px; left:-6%; bottom:20%; }
.cloud--1::before { width:82px;height:82px;left:35px;bottom:12px}.cloud--1::after{width:110px;height:110px;right:20px;bottom:7px}
.cloud--2 { width:160px; height:50px; right:-1%; top:20%; animation-delay:-3s; }
.cloud--2::before { width:70px;height:70px;left:22px;bottom:8px}.cloud--2::after{width:88px;height:88px;right:20px;bottom:4px}
@keyframes cloudmove { 50% { transform:translateX(18px) translateY(-8px); } }
.scroll-cue { position:absolute; left:50%; bottom:24px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:7px; font-weight:800; font-size:.82rem; color:#59657d; }
.scroll-cue i { width:27px; height:43px; border:2px solid rgba(32,48,82,.35); border-radius:99px; position:relative; }
.scroll-cue i::after { content:""; width:5px;height:9px;border-radius:99px;background:var(--limi-coral);position:absolute;left:50%;top:8px;transform:translateX(-50%);animation:wheel 1.7s infinite; }
@keyframes wheel { to { opacity:0; transform:translate(-50%,15px); } }

.limi-section { position:relative; padding:120px 0; }
.section-kicker { color:var(--limi-coral); font-size:.86rem; letter-spacing:.16em; text-transform:uppercase; font-weight:1000; }
.section-title { margin:12px 0 20px; font-size:clamp(2.4rem, 5vw, 5rem); line-height:1.02; letter-spacing:-.045em; color:var(--limi-navy); }
.section-copy { max-width:740px; font-size:1.16rem; line-height:1.85; color:#566078; }

.story-section { overflow:hidden; background:#fff; }
.story-grid { display:grid; grid-template-columns:.92fr 1.08fr; gap:80px; align-items:center; }
.story-card-stack { position:relative; min-height:570px; }
.story-card { position:absolute; width:70%; padding:32px; border-radius:34px; background:rgba(255,255,255,.82); box-shadow:var(--limi-shadow); backdrop-filter:blur(18px); border:1px solid rgba(255,255,255,.9); transition:.35s; }
.story-card:hover { transform:translateY(-8px) rotate(0)!important; }
.story-card:nth-child(1){left:0;top:40px;transform:rotate(-7deg);background:#e5f6ff}.story-card:nth-child(2){right:0;top:180px;transform:rotate(7deg);background:#fff0ed}.story-card:nth-child(3){left:13%;bottom:0;transform:rotate(-2deg);background:#fff8d9}
.story-icon { width:64px; height:64px; border-radius:22px; display:grid; place-items:center; font-size:2rem; background:#fff; box-shadow:0 12px 30px rgba(22,36,72,.1); }
.story-card h3 { margin:20px 0 8px; font-size:1.45rem; color:var(--limi-navy); }
.story-card p { margin:0; line-height:1.65; color:#5b6479; }

.scene-band { min-height:82vh; display:flex; align-items:end; background-position:center; background-size:cover; background-attachment:fixed; color:#fff; overflow:hidden; }
.scene-band::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(7,18,41,.86) 0%, rgba(7,18,41,.42) 48%, rgba(7,18,41,.12) 100%), linear-gradient(0deg, rgba(7,18,41,.7), transparent 55%); }
.scene-band__content { position:relative; z-index:2; padding-bottom:90px; max-width:650px; }
.scene-band .section-title { color:#fff; }
.scene-band p { font-size:1.2rem; line-height:1.8; color:rgba(255,255,255,.84); }

.books-section { overflow:hidden; background:linear-gradient(180deg,#fff8ef 0,#f6f2ff 100%); }
.books-head { display:flex; justify-content:space-between; align-items:end; gap:30px; margin-bottom:50px; }
.books-track { display:grid; grid-template-columns:repeat(5, minmax(220px,1fr)); gap:24px; width:max-content; padding:10px 4vw 55px; transform:translateX(var(--books-shift,0)); transition:transform .08s linear; }
.book-card { position:relative; width:260px; aspect-ratio:.72; border-radius:24px; overflow:hidden; box-shadow:0 24px 55px rgba(28,38,79,.2); transform-origin:center bottom; transition:.35s ease; background:#fff; }
.book-card:hover { transform:translateY(-20px) rotate(-2deg); }
.book-card img { width:100%; height:100%; object-fit:cover; }
.book-card span { position:absolute; left:14px; right:14px; bottom:14px; padding:10px 14px; border-radius:15px; background:rgba(255,255,255,.9); font-weight:900; text-align:center; backdrop-filter:blur(12px); }
.collection-box { margin-top:45px; display:grid; grid-template-columns:1fr 1.1fr; gap:48px; align-items:center; padding:38px; border-radius:42px; background:#fff; box-shadow:var(--limi-shadow); }
.collection-box__image { border-radius:28px; overflow:hidden; }
.collection-box h3 { font-size:clamp(2rem,4vw,3.8rem); margin:0 0 16px; color:var(--limi-navy); }
.collection-box p { color:#5d667b; line-height:1.8; font-size:1.08rem; }

.rights-section { color:#fff; background:radial-gradient(circle at 50% 0, rgba(50,85,150,.55), transparent 42%), var(--limi-navy); overflow:hidden; }
.rights-section .section-title { color:#fff; text-align:center; }
.rights-section .section-kicker { text-align:center; display:block; color:var(--limi-yellow); }
.rights-orbit { position:relative; min-height:650px; margin-top:40px; display:grid; place-items:center; }
.rights-center { position:relative; z-index:5; width:240px; aspect-ratio:1; border-radius:50%; display:grid; place-items:center; text-align:center; padding:35px; background:linear-gradient(145deg,#ffd83e,#ffb514); color:#4b3200; font-weight:1000; font-size:1.35rem; box-shadow:0 0 80px rgba(255,207,47,.45); }
.right-pill { position:absolute; width:220px; padding:20px; border-radius:25px; background:rgba(255,255,255,.085); border:1px solid rgba(255,255,255,.14); backdrop-filter:blur(16px); text-align:center; font-weight:900; box-shadow:0 20px 45px rgba(0,0,0,.18); }
.right-pill:nth-child(2){transform:translate(-310px,-190px)}.right-pill:nth-child(3){transform:translate(0,-275px)}.right-pill:nth-child(4){transform:translate(310px,-190px)}.right-pill:nth-child(5){transform:translate(340px,130px)}.right-pill:nth-child(6){transform:translate(0,260px)}.right-pill:nth-child(7){transform:translate(-340px,130px)}

.characters-section { background:#fff; overflow:hidden; }
.character-marquee { display:flex; gap:24px; width:max-content; animation:marquee 24s linear infinite; }
.character-card { width:280px; height:370px; border-radius:36px; padding:22px; background:linear-gradient(160deg,#e7f7ff,#fff1ed); box-shadow:0 18px 50px rgba(20,37,78,.12); display:flex; flex-direction:column; justify-content:end; }
.character-card:nth-child(2n){background:linear-gradient(160deg,#fff7d8,#f2edff)}
.character-card strong { font-size:1.4rem; color:var(--limi-navy); }
.character-card p { color:#697187; }
@keyframes marquee { to { transform:translateX(calc(-50% - 12px)); } }

.final-cta { min-height:70vh; display:grid; place-items:center; text-align:center; color:#fff; background-position:center; background-size:cover; overflow:hidden; }
.final-cta::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(8,22,50,.45),rgba(8,22,50,.86)); }
.final-cta__inner { position:relative; z-index:2; max-width:800px; }
.final-cta h2 { margin:0 0 20px; font-size:clamp(2.8rem,6vw,6rem); line-height:1; }
.final-cta p { font-size:1.22rem; line-height:1.8; color:rgba(255,255,255,.84); }

.site-footer { padding:70px 0 28px; color:#e9eef9; background:#07142d; }
.footer-grid { display:grid; grid-template-columns:1.25fr .75fr .75fr; gap:50px; }
.footer-brand { font-size:2.3rem; font-weight:1000; color:var(--limi-yellow); }
.footer-copy { max-width:480px; color:#aeb9ce; line-height:1.75; }
.footer-links { list-style:none; margin:0; padding:0; display:grid; gap:12px; color:#cbd4e5; }
.footer-bottom { margin-top:55px; padding-top:22px; border-top:1px solid rgba(255,255,255,.1); display:flex; justify-content:space-between; gap:20px; color:#8491aa; font-size:.9rem; }

.entry-shell { padding:150px 0 90px; }
.entry-content { max-width:900px; margin:auto; line-height:1.8; }
.elementor-page .entry-shell { padding:0; max-width:none; }
.elementor-page .entry-content { max-width:none; }

@media (max-width: 980px) {
  .primary-menu, .header-cta { display:none; }
  .menu-toggle { display:block; }
  .site-header.menu-open .primary-menu { display:flex; position:absolute; top:82px; left:20px; right:20px; flex-direction:column; gap:18px; padding:25px; border-radius:28px; background:#fff; box-shadow:var(--limi-shadow); }
  .limi-hero__grid, .story-grid, .collection-box, .footer-grid { grid-template-columns:1fr; }
  .hero-visual { min-height:500px; }
  .story-card-stack { min-height:640px; }
  .books-head { display:block; }
  .right-pill { width:190px; }
  .right-pill:nth-child(2){transform:translate(-215px,-180px)}.right-pill:nth-child(4){transform:translate(215px,-180px)}.right-pill:nth-child(5){transform:translate(220px,130px)}.right-pill:nth-child(7){transform:translate(-220px,130px)}
}
@media (max-width: 720px) {
  .limilou-container { width:min(100% - 26px, 1180px); }
  .site-header { inset:10px 0 auto; }
  .site-header__inner { min-height:62px; }
  .limi-hero__grid { padding-top:115px; gap:10px; }
  .limi-title { font-size:clamp(3rem,16vw,4.7rem); }
  .hero-visual { min-height:430px; }
  .hero-character { width:90%; }
  .limi-section { padding:85px 0; }
  .story-card-stack { min-height:auto; display:grid; gap:18px; }
  .story-card { position:relative; width:100%; inset:auto!important; transform:none!important; }
  .scene-band { min-height:75vh; background-attachment:scroll; }
  .collection-box { padding:22px; border-radius:30px; }
  .rights-orbit { min-height:auto; display:grid; gap:15px; }
  .rights-center, .right-pill { position:relative; transform:none!important; width:100%; aspect-ratio:auto; border-radius:24px; }
  .rights-center { min-height:150px; }
  .footer-bottom { flex-direction:column; }
  .books-track { padding-left:13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms!important; animation-iteration-count:1!important; scroll-behavior:auto!important; transition-duration:.01ms!important; }
}
