/* Curozip site theme v2: bold Curozip blue (shared with the agent app), Lyra the mascot, scroll reveals.
   Loaded from includes/header_nav.php after each page's own :root, so these tokens win. */
:root {
  --brand-primary: #0F62FE;
  --brand-primary-hover: #0A4FD6;
  --brand-accent: #F26B1D;
  --brand-gradient: linear-gradient(135deg, #0F62FE 0%, #0A4FD6 100%);
  --text-dark: #0B1B3F;
  --text-gray: #4A5878;
  --bg-body: #F2F5FB;
  --cz-blue: #0F62FE;
  --cz-blue-700: #0A4FD6;
  --cz-blue-glow: #2D77FF;
  --cz-tint: #E6EEFF;
  --cz-orange: #F26B1D;
  --cz-on-orange: #2A1000;
  --cz-ink: #0B1B3F;
  --cz-muted: #4A5878;
  --cz-on-blue-2: #CFE0FF;
  --cz-ease: cubic-bezier(.16, 1, .3, 1);
}

/* Orange is the one action that sends a parcel */
.cz-btn-action { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: 0 1.6rem; border-radius: 16px; background: var(--cz-orange); color: var(--cz-on-orange); font-weight: 800; text-decoration: none; transition: transform .2s var(--cz-ease), box-shadow .2s var(--cz-ease); box-shadow: 0 10px 24px rgba(242, 107, 29, .28); }
.cz-btn-action:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(242, 107, 29, .36); }
.cz-btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.4rem; border-radius: 16px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 700; text-decoration: none; transition: background-color .2s; }
.cz-btn-ghost:hover { background: rgba(255, 255, 255, .26); }
.cz-btn-action:focus-visible, .cz-btn-ghost:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- Lyra ---------- */
.cz-lyra { position: relative; display: inline-block; line-height: 0; }
.cz-lyra img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(5, 20, 60, .22)); }
.cz-lyra-say { position: absolute; z-index: 2; left: 50%; top: 4%; transform: translateX(-112%); background: #fff; color: var(--cz-ink); font-family: inherit; font-weight: 700; font-size: .9rem; line-height: 1.35; padding: .7rem .9rem; border-radius: 16px 16px 4px 16px; box-shadow: 0 12px 28px rgba(5, 20, 60, .18); white-space: nowrap; }
.cz-lyra-say.right { transform: translateX(20%); border-radius: 16px 16px 16px 4px; }

/* idle: gentle float */
.cz-lyra.float img { animation: cz-float 4.5s ease-in-out infinite; }
@keyframes cz-float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
/* entrance: pops up from below when it scrolls into view */
.cz-js .cz-lyra.pop { opacity: 0; transform: translateY(40px) scale(.92); transition: opacity .6s var(--cz-ease), transform .8s var(--cz-ease); }
.cz-js .cz-lyra.pop.is-in { opacity: 1; transform: none; }
.cz-js .cz-lyra .cz-lyra-say { opacity: 0; transition: opacity .4s .5s, transform .5s .5s var(--cz-ease); }
.cz-js .cz-lyra.is-in .cz-lyra-say { opacity: 1; }
/* nod: a small tilt, like a hello */
.cz-lyra.nod img { animation: cz-nod 5s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes cz-nod { 0%, 70%, 100% { transform: rotate(0) } 76% { transform: rotate(-4deg) } 84% { transform: rotate(3deg) } 92% { transform: rotate(-1deg) } }

/* footer road: Lyra carries the parcel across every page once */
.cz-road { position: relative; height: 128px; overflow: hidden; }
.cz-road::after { content: ''; position: absolute; left: 0; right: 0; bottom: 14px; height: 4px; background: repeating-linear-gradient(90deg, #C9D6EE 0 26px, transparent 26px 44px); }
.cz-road .cz-lyra { position: absolute; bottom: 6px; left: 0; width: 120px; }
.cz-js .cz-road .cz-lyra { transform: translateX(-140px); }
.cz-js .cz-road.is-in .cz-lyra { animation: cz-walk 9s linear forwards; }
.cz-road.is-in .cz-lyra img { animation: cz-step .45s ease-in-out infinite alternate; }
@keyframes cz-walk { to { transform: translateX(calc(100vw + 20px)) } }
@keyframes cz-step { from { transform: translateY(0) rotate(-1.5deg) } to { transform: translateY(-6px) rotate(1.5deg) } }
.cz-road .cz-road-pin { position: absolute; bottom: 20px; right: 8%; width: 30px; height: 30px; }

/* ---------- scroll reveal (content stays visible without JS) ---------- */
.cz-js .cz-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--cz-ease), transform .7s var(--cz-ease); }
.cz-js .cz-reveal.is-in { opacity: 1; transform: none; }

/* ---------- blue band CTA (homepage and reused on other pages) ---------- */
.cz-cta { position: relative; overflow: hidden; max-width: 1200px; margin: 0 auto; background: var(--cz-blue); border-radius: 32px; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: end; gap: 1rem; padding: 3.5rem 3rem 0; box-shadow: 0 24px 60px rgba(15, 98, 254, .28); }
.cz-cta::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--cz-blue-glow); right: -140px; top: -180px; }
.cz-cta > * { position: relative; }
.cz-cta h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.08; color: #fff; margin: 0 0 .8rem; overflow-wrap: break-word; min-width: 0; }
.cz-cta p { color: var(--cz-on-blue-2); font-size: 1.1rem; margin: 0 0 2rem; }
.cz-cta .cz-cta-copy { padding-bottom: 3.5rem; }
.cz-cta .cz-cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.cz-cta .cz-lyra { width: 300px; }
@media (max-width: 760px) {
  .cz-cta { grid-template-columns: minmax(0, 1fr); padding: 2.5rem 1.5rem 0; text-align: left; border-radius: 26px; }
  .cz-cta .cz-cta-copy { padding-bottom: 0; }
  .cz-cta .cz-lyra { width: 220px; justify-self: center; }
  .cz-lyra-say, .cz-lyra-say.right { font-size: .8rem; white-space: normal; width: max-content; max-width: 150px; top: 30%; transform: translateX(-112%); }
}

@media (prefers-reduced-motion: reduce) {
  .cz-lyra img, .cz-road .cz-lyra, .cz-road.is-in .cz-lyra img { animation: none !important; }
  .cz-js .cz-lyra.pop, .cz-js .cz-reveal { opacity: 1; transform: none; transition: none; }
  .cz-js .cz-road .cz-lyra { transform: translateX(20vw); }
  .cz-js .cz-lyra .cz-lyra-say { opacity: 1; transition: none; }
}

/* ---------- mobile menu v2 ---------- */
.cz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hamburger-btn { width: 46px; height: 46px; border-radius: 14px; background: var(--cz-tint) !important; padding: 0 !important; align-items: center; justify-content: center; }
.hamburger-btn svg { width: 24px !important; height: 24px !important; stroke: var(--cz-blue) !important; }
.cz-drawer-overlay { background: rgba(11, 27, 63, .55) !important; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: opacity .35s var(--cz-ease), visibility .35s !important; }
.cz-drawer.mobile-fullscreen-menu { left: 0; width: min(88%, 380px); max-width: none; background: var(--bg-body, #F2F5FB); box-shadow: 20px 0 50px rgba(5, 20, 60, .25);
    transform: translateX(-105%); transition: transform .5s var(--cz-ease); border-radius: 0 28px 28px 0; overflow: hidden; font-family: inherit; }
.cz-drawer.mobile-fullscreen-menu.active { left: 0; transform: none; }
.cz-drawer-head { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 20px 18px 54px 22px; background: var(--cz-blue); overflow: hidden; }
.cz-drawer-head::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--cz-blue-glow); right: -90px; top: -150px; }
.cz-drawer-logo, .cz-drawer-close { position: relative; z-index: 1; }
.cz-drawer-logo img { height: 30px; width: auto; display: block; }
.cz-drawer-close { width: 44px; height: 44px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cz-drawer-close:focus-visible, .cz-drawer a:focus-visible, .cz-drawer button:focus-visible, .cz-drawer input:focus-visible { outline: 3px solid var(--cz-orange); outline-offset: 2px; }
.cz-drawer-scroll { flex: 1; overflow-y: auto; padding: 0 16px 16px; margin-top: -38px; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.cz-drawer-send { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 10px 16px 10px 10px; border-radius: 20px; background: var(--cz-orange); color: var(--cz-on-orange); text-decoration: none; box-shadow: 0 14px 30px rgba(242, 107, 29, .35); }
.cz-drawer-send img { width: 52px; height: 52px; background: rgba(255, 255, 255, .35); border-radius: 15px; padding: 4px; }
.cz-drawer-send span { flex: 1; display: flex; flex-direction: column; }
.cz-drawer-send b { font-size: 1.1rem; font-weight: 800; }
.cz-drawer-send small { font-size: .82rem; opacity: .8; }
.cz-drawer-track { display: flex; gap: 8px; padding: 6px; border-radius: 18px; background: #fff; }
.cz-drawer-track input { flex: 1; min-width: 0; min-height: 46px; border: 0; border-radius: 13px; background: var(--bg-body, #F2F5FB); padding: 0 14px; font: 600 1rem inherit; font-family: inherit; color: var(--cz-ink); }
.cz-drawer-track button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 13px; background: var(--cz-blue); color: #fff; font-weight: 800; font-family: inherit; font-size: .95rem; cursor: pointer; }
.cz-drawer-links { display: flex; flex-direction: column; background: #fff; border-radius: 20px; padding: 6px; }
.cz-drawer-links a { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 12px; border-radius: 14px; color: var(--cz-ink); text-decoration: none; font-weight: 700; font-size: 1.02rem; transition: background-color .2s, color .2s; }
.cz-drawer-links a::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid #A9B6CF; border-top: 2px solid #A9B6CF; transform: rotate(45deg); }
.cz-drawer-links a:hover, .cz-drawer-links a[aria-current="page"] { background: var(--cz-tint); color: var(--cz-blue); }
.cz-drawer-links img { width: 40px; height: 40px; }
.cz-drawer-help { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.cz-drawer-help a { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 12px; border-radius: 18px; background: #fff; color: var(--cz-ink); text-decoration: none; }
.cz-drawer-help img { width: 34px; height: 34px; flex: none; }
.cz-drawer-help span { display: flex; flex-direction: column; min-width: 0; }
.cz-drawer-help b { font-size: .92rem; }
.cz-drawer-help small { font-size: .74rem; color: var(--cz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-drawer-foot { padding: 14px 16px 18px; background: #fff; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 -8px 24px rgba(15, 40, 90, .06); }
.cz-drawer-login { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 16px; background: var(--cz-blue); color: #fff; font-weight: 800; text-decoration: none; }
.cz-drawer-alt { display: flex; align-items: center; justify-content: center; min-height: 44px; color: var(--cz-muted); text-decoration: none; font-size: .95rem; }
.cz-drawer-alt b { color: var(--cz-blue); margin-left: 4px; }
.cz-drawer-out { color: #C4320A; font-weight: 700; }
/* items slide in one after another when the menu opens */
.cz-drawer .cz-di { opacity: 0; transform: translateX(-24px); transition: opacity .4s var(--cz-ease), transform .5s var(--cz-ease); }
.cz-drawer.active .cz-di { opacity: 1; transform: none; }
.cz-drawer.active .cz-di:nth-child(2) { transition-delay: .05s }
.cz-drawer.active .cz-drawer-links .cz-di:nth-child(1) { transition-delay: .1s } .cz-drawer.active .cz-drawer-links .cz-di:nth-child(2) { transition-delay: .14s }
.cz-drawer.active .cz-drawer-links .cz-di:nth-child(3) { transition-delay: .18s } .cz-drawer.active .cz-drawer-links .cz-di:nth-child(4) { transition-delay: .22s }
.cz-drawer.active .cz-drawer-links .cz-di:nth-child(5) { transition-delay: .26s } .cz-drawer.active .cz-drawer-links .cz-di:nth-child(6) { transition-delay: .3s }
.cz-drawer.active .cz-drawer-links .cz-di:nth-child(7) { transition-delay: .34s } .cz-drawer.active .cz-drawer-help { transition-delay: .38s }
body.cz-menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .cz-drawer.mobile-fullscreen-menu, .cz-drawer .cz-di { transition: none !important; }
  .cz-drawer .cz-di { opacity: 1; transform: none; }
}
