/* =========================================================
   Liora Divi — design tokens, hero, header, tab bar, animations
   ========================================================= */
:root{
  --brand:#1C3A8C; --navy:#0E1A3A; --paper:#F6F2EC; --paper-2:#ECE6DC; --ink:#121521;
  --accent:#C9764F; --accent-strong:#A9572F; --accent-soft:#F2DCCF;
  --serif:"Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:"Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease:cubic-bezier(.44,0,.13,.96); --spring:cubic-bezier(.34,1.36,.64,1);
  --gutter:clamp(16px,4vw,56px); --tabbar-h:0px;
  --bg:var(--brand); --fg:#F6F2EC; --muted:rgba(246,242,236,.68); --line:rgba(246,242,236,.22); --card:rgba(255,255,255,.07);
}
body.liora-on[data-theme="brand"]{--bg:var(--brand);--fg:#F6F2EC;--muted:rgba(246,242,236,.68);--line:rgba(246,242,236,.22);--card:rgba(255,255,255,.07)}
body.liora-on[data-theme="dark"] {--bg:var(--navy);--fg:#EEF0F6;--muted:rgba(238,240,246,.62);--line:rgba(238,240,246,.16);--card:rgba(255,255,255,.04)}
body.liora-on[data-theme="light"]{--bg:var(--paper);--fg:var(--ink);--muted:#5B6072;--line:rgba(18,21,33,.14);--card:#fff}
body.liora-on[data-theme="soft"] {--bg:var(--paper-2);--fg:var(--ink);--muted:#5B6072;--line:rgba(18,21,33,.14);--card:#fff}

/* ---------- page shell (only on pages built with Liora sections) ---------- */
html{overflow-x:clip}
body.liora-on{background:var(--bg)!important;color:var(--fg);font-family:var(--sans);-webkit-font-smoothing:antialiased;overflow-x:clip;transition:background-color .8s var(--ease),color .8s var(--ease)}
body.liora-on #page-container,body.liora-on #et-main-area,body.liora-on #main-content,body.liora-on .et-l--post,body.liora-on .et_builder_inner_content{background:transparent!important}
body.liora-on .et_pb_section.liora-sec{background-color:transparent!important}
body.liora-on .liora-sec,body.liora-on .liora-sec h1,body.liora-on .liora-sec h2,body.liora-on .liora-sec h3,body.liora-on .liora-sec h4,body.liora-on .liora-sec p,body.liora-on .liora-sec li,body.liora-on .liora-sec a{color:var(--fg)}
body.liora-on .liora-sec h1,body.liora-on .liora-sec h2,body.liora-on .liora-sec h3{font-family:var(--serif);font-weight:400;letter-spacing:-.01em;line-height:1.05}
body.liora-on .liora-sec .liora-muted,body.liora-on .liora-sec .liora-muted p{color:var(--muted)}
body.liora-on .liora-sec .liora-accent,body.liora-on .liora-sec .liora-accent *{color:var(--accent)!important}

/* sections fade in when centred (not inside the Visual Builder) */
html.liora-js body.liora-on .liora-sec{opacity:0;transition:opacity .5s var(--spring)}
html.liora-js body.liora-on .liora-sec.is-active{opacity:1}

/* ---------- reveal utilities ---------- */
.liora-split .w{display:inline-block;white-space:pre}
.liora-split .wi{display:inline-block;transition:opacity .6s var(--ease),transform .6s var(--ease);transition-delay:calc(var(--i) * 12ms)}
html.liora-js .liora-split .wi{opacity:0;transform:translateY(20px)}
html.liora-js .liora-split.in .wi{opacity:1;transform:none}
html.liora-js .liora-rise{opacity:0;transform:translateY(50px);transition:opacity .6s var(--ease),transform .6s var(--ease)}
html.liora-js .liora-rise.in{opacity:1;transform:none}
.liora-count,.liora-count *{font-variant-numeric:tabular-nums}

/* ---------- buttons ---------- */
.liora-top a,.tabbar a,.lang-list a{text-decoration:none}
.liora-top .btn,.liora-btn{display:inline-flex;align-items:center;gap:10px;border-radius:999px;padding:12px 22px;font-size:14px;font-weight:500;white-space:nowrap;line-height:1.2;transition:transform .3s var(--ease),background .3s var(--ease)}
.liora-top .btn-accent,.liora-btn{background:var(--accent-strong);color:#fff!important}
.liora-top .btn-accent:hover,.liora-btn:hover{transform:translateY(-2px)}

/* ---------- header [liora_header] ---------- */
.liora-top{position:fixed;inset:0 0 auto 0;z-index:9990;color:var(--fg);font-family:var(--sans);transition:color .8s var(--ease),background-color .8s var(--ease)}
body.admin-bar .liora-top{top:32px}
body.past-hero .liora-top{background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.liora-nav{display:flex;align-items:center;justify-content:space-between;height:78px;max-width:1320px;margin:0 auto;padding:0 var(--gutter)}
.liora-top .logo{position:relative;display:block;height:34px;min-width:150px;overflow:hidden;font-family:var(--serif);font-size:28px;line-height:34px;color:inherit}
.liora-top .logo-a,.liora-top .logo-b{position:absolute;left:0;top:0;white-space:nowrap;transition:transform .7s var(--ease),opacity .7s var(--ease)}
.liora-top .logo-b{transform:translateY(100%);opacity:0}
.liora-top .logo-b small{font-family:var(--sans);font-size:11px;letter-spacing:.28em;text-transform:uppercase;opacity:.8;margin-left:6px}
body.past-hero .liora-top .logo-a{transform:translateY(-100%);opacity:0}
body.past-hero .liora-top .logo-b{transform:none;opacity:1}
.liora-top .nav-menu{display:flex;gap:34px;list-style:none;margin:0;padding:0;font-size:14px}
.liora-top .nav-menu a{position:relative;color:inherit;opacity:.75;transition:opacity .3s}
.liora-top .nav-menu a:hover,.liora-top .nav-menu a.on{opacity:1}
.liora-top .nav-menu a::after{content:"";position:absolute;left:0;right:0;bottom:-5px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:right;transition:transform .5s var(--ease)}
.liora-top .nav-menu a:hover::after,.liora-top .nav-menu a.on::after{transform:scaleX(1);transform-origin:left}
.liora-top .nav-right{display:flex;align-items:center;gap:20px;font-size:13px}

/* ---------- language selector ---------- */
.lang-sel{position:relative;font-family:var(--sans)}
.lang-btn{display:flex;align-items:center;gap:8px;height:38px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:none;color:inherit;font:500 13px/1 var(--sans);letter-spacing:.08em;cursor:pointer;transition:border-color .3s var(--ease)}
.lang-btn:hover,.lang-sel.open .lang-btn{border-color:currentColor}
.lang-btn svg{width:10px;height:6px;fill:none;stroke:currentColor;stroke-width:1.4;transition:transform .4s var(--ease)}
.lang-sel.open .lang-btn svg{transform:rotate(180deg)}
.lang-list{position:absolute;right:0;top:calc(100% + 10px);min-width:210px;list-style:none;margin:0;padding:8px;border-radius:14px;background:var(--paper);color:var(--ink);box-shadow:0 18px 50px rgba(10,20,48,.25);opacity:0;visibility:hidden;transform:translateY(-8px);transition:opacity .35s var(--ease),transform .45s var(--ease),visibility .35s}
.lang-sel.open .lang-list{opacity:1;visibility:visible;transform:none}
.lang-list li{padding:0;list-style:none}
.lang-list a{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 12px;border-radius:9px;font-size:14px;color:var(--ink)!important;transition:background .2s}
.lang-list a span{font-size:11px;letter-spacing:.12em;color:#5B6072}
.lang-list a:hover{background:var(--paper-2)}
.lang-list a[aria-selected="true"]{background:var(--accent-soft)}

/* ---------- hero [liora_hero] ---------- */
.liora-hero{min-height:calc(100svh - 72px);display:flex;flex-direction:column;justify-content:space-between;gap:10px;padding:0 0 clamp(28px,5vh,56px);color:var(--fg)}
.liora-hero .wm-stage{position:relative;width:100%;height:30vw;font-family:var(--serif);color:var(--fg);z-index:1;pointer-events:none}
.liora-hero .wm-stage canvas{position:absolute;left:0;top:0;width:100%;display:block;opacity:0;transition:opacity 2.5s cubic-bezier(.25,1,.5,1) .2s}
.liora-hero .wm-stage.ready canvas{opacity:1}
.liora-sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0;padding:0}
.liora-hero .hero-foot{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:flex-end;gap:32px;padding:24px var(--gutter) 0;border-top:1px solid var(--line);max-width:1320px;margin:0 auto;width:100%}
.liora-hero .hero-title{font-family:var(--sans);font-weight:300;font-size:clamp(20px,2vw,28px);line-height:1.3;max-width:30ch;padding:0;color:var(--fg)}
.liora-hero .scroll-hint{font-size:12px;letter-spacing:.2em;text-transform:uppercase;display:flex;align-items:center;gap:12px;color:var(--muted);transition:opacity .6s var(--ease)}
.liora-hero .scroll-hint i{width:1px;height:46px;background:var(--line);position:relative;overflow:hidden}
.liora-hero .scroll-hint i::after{content:"";position:absolute;left:0;top:-50%;width:1px;height:50%;background:var(--fg);animation:liora-cue 2.2s var(--ease) infinite}
@keyframes liora-cue{to{top:110%}}
body.past-hero .liora-hero .scroll-hint{opacity:0}
/* the hero section in Divi: full width, no padding */
.et_pb_section.liora-hero-sec{padding:72px 0 0!important}
.et_pb_section.liora-hero-sec .et_pb_row{width:100%!important;max-width:none!important;padding:0!important}

/* ---------- mobile tab bar ---------- */
.tabbar{display:none}
@media (max-width:860px){
  :root{--tabbar-h:calc(76px + env(safe-area-inset-bottom))}
  .liora-top .nav-menu,.liora-top .btn{display:none}
  .liora-nav{height:64px}
  .liora-hero{min-height:calc(100svh - 64px - var(--tabbar-h));justify-content:center}
  .et_pb_section.liora-hero-sec{padding-top:64px!important}
  .liora-hero .scroll-hint{display:none}
  body.liora-on{padding-bottom:var(--tabbar-h)}
  .tabbar{display:flex;position:fixed;z-index:9991;left:12px;right:12px;bottom:calc(10px + env(safe-area-inset-bottom));height:64px;border-radius:22px;background:rgba(10,20,48,.82);backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4);box-shadow:0 12px 40px rgba(10,20,48,.35),inset 0 0 0 1px rgba(255,255,255,.1);padding:6px;transform:translateY(140%);animation:liora-tab-in .9s var(--ease) 1s forwards;font-family:var(--sans)}
  @keyframes liora-tab-in{to{transform:none}}
  .tabbar .tab{position:relative;z-index:1;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:rgba(255,255,255,.55);font-size:10.5px;line-height:1.2;transition:color .3s}
  .tabbar .tab svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .4s var(--spring)}
  .tabbar .tab.on{color:#fff}
  .tabbar .tab:active svg{transform:scale(.86)}
  .tab-pill{position:absolute;top:6px;bottom:6px;left:6px;border-radius:16px;background:var(--accent-strong);transition:transform .55s var(--spring),width .55s var(--spring)}
}
@media (max-width:782px){body.admin-bar .liora-top{top:46px}}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}
  .liora-split .wi,.liora-rise,body.liora-on .liora-sec{opacity:1!important;transform:none!important}
}
