/* ============================================================
   Cloxbi global header + footer chrome
   Self-contained: brand colors hardcoded, Figtree assumed loaded
   site-wide (falls back to system sans). Load AFTER your base CSS.
   ============================================================ */

:root {
  --cx-purple:      #5438DC;
  --cx-purple-deep: #3B1FA8;
  --cx-cyan:        #2EC0F9;
  --cx-cyan-light:  #5CD0FA;
  --cx-yellow:      #E0CA3C;
  --cx-ink:         #1A1A2E;
  --cx-footer-bg:   #191634;
}

/* ---------- HEADER ---------- */
.cx-header { position: sticky; top: 0; z-index: 100; }
.cx-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  background: var(--cx-purple); padding: 14px 48px;
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
  font-family: Figtree, system-ui, -apple-system, sans-serif;
}
.cx-logo { display: flex; align-items: center; flex-shrink: 0; }
.cx-logo img { height: 44px; width: auto; display: block; }

.cx-nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.cx-nav-links a {
  font-size: 15px; font-weight: 600; color: rgba(255,255,255,.82); text-decoration: none;
  padding-bottom: 4px;
  background-image: linear-gradient(var(--cx-yellow), var(--cx-yellow));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px;
  transition: background-size .28s cubic-bezier(.4,0,.2,1), color .2s;
}
.cx-nav-links a:hover { color: var(--cx-yellow); background-size: 100% 2px; }

.cx-nav-cta { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.cx-login { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.85); text-decoration: none; transition: color .2s; }
.cx-login:hover { color: var(--cx-yellow); }
.cx-signup { background: #fff; color: var(--cx-purple); font-size: 15px; font-weight: 700; padding: 10px 22px; border-radius: 8px; text-decoration: none; transition: background .2s, color .2s; }
.cx-signup:hover { background: var(--cx-yellow); color: var(--cx-ink); }

.cx-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.cx-burger span { display: block; width: 24px; height: 2.5px; border-radius: 3px; background: #fff; transition: transform .25s, opacity .2s; }
.cx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.cx-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cx-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.cx-mobile-menu { display: none; flex-direction: column; background: var(--cx-purple-deep); padding: 8px 24px 20px; font-family: Figtree, system-ui, sans-serif; }
.cx-mobile-menu.cx-open { display: flex; }
.cx-mobile-menu a {
  padding: 14px 4px; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.9);
  text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1);
  transition: color .2s, padding-left .2s;
}
.cx-mobile-menu a:last-child { border-bottom: none; }
.cx-mobile-menu a:hover { color: var(--cx-yellow); padding-left: 10px; }

@media (max-width: 859px) {
  .cx-nav { padding: 11px 20px; gap: 12px; }
  .cx-logo img { height: 34px; }
  .cx-nav-links { display: none; }
  .cx-burger { display: inline-flex; }
}
@media (min-width: 860px) {
  .cx-mobile-menu { display: none !important; }  /* never show desktop */
}

/* ---------- FOOTER ---------- */
.cx-footer { background: var(--cx-footer-bg); padding-top: 60px; font-family: Figtree, system-ui, sans-serif; }

.cx-foot-cols {
  max-width: 1080px; margin: 0 auto; padding: 0 48px 44px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 36px; text-align: center;
}
.cx-col-head {
  display: block; width: 100%; margin: 0 0 18px; padding: 0;
  background: none; border: none; cursor: default;
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--cx-yellow); text-align: center; text-decoration: none;
}
.cx-col-head-link:hover { color: #fff; }
.cx-col-head .cx-chev { display: none; }
.cx-col-links { display: flex; flex-direction: column; align-items: center; gap: 13px; }
.cx-col-links a {
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,.82); text-decoration: none;
  width: fit-content; padding-bottom: 3px;
  background-image: linear-gradient(var(--cx-yellow), var(--cx-yellow));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px;
  transition: background-size .3s cubic-bezier(.4,0,.2,1), color .2s;
}
.cx-col-links a:hover { color: #fff; background-size: 100% 2px; }

.cx-foot-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 40px 24px; }
.cx-foot-brand img { height: 78px; width: auto; display: block; }
.cx-cta { background: var(--cx-cyan); color: var(--cx-ink); font-size: 14px; font-weight: 700; padding: 12px 26px; border-radius: 8px; text-decoration: none; transition: background .2s; }
.cx-cta:hover { background: var(--cx-cyan-light); }
.cx-email { font-size: 14px; font-weight: 600; color: var(--cx-cyan); text-decoration: none; transition: color .2s; }
.cx-email:hover { color: var(--cx-cyan-light); }
.cx-social { display: flex; gap: 20px; margin-top: 4px; }
.cx-social a { display: inline-flex; color: var(--cx-cyan); transition: color .2s, transform .2s; }
.cx-social a:hover { color: var(--cx-cyan-light); transform: translateY(-2px); }
.cx-social svg { width: 28px; height: 28px; }

.cx-foot-legal-wrap { max-width: 940px; margin: 0 auto; padding: 0 48px; }
.cx-foot-legal { border-top: 2px solid var(--cx-yellow); padding: 24px 0 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cx-foot-legal p { font-size: 13.5px; font-style: italic; color: rgba(255,255,255,.5); margin: 0; text-align: center; }
.cx-legal-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.cx-legal-links a {
  font-size: 13px; color: rgba(255,255,255,.65); text-decoration: none; padding-bottom: 2px;
  background-image: linear-gradient(var(--cx-yellow), var(--cx-yellow));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 2px;
  transition: background-size .3s cubic-bezier(.4,0,.2,1), color .2s;
}
.cx-legal-links a:hover { color: #fff; background-size: 100% 2px; }
.cx-legal-links span { font-size: 13px; color: rgba(255,255,255,.5); }

/* Tablet: 3 columns */
@media (max-width: 959px) {
  .cx-foot-cols { grid-template-columns: repeat(3, 1fr); gap: 32px 28px; padding: 0 32px 44px; }
}

/* Mobile: collapsible accordion */
@media (max-width: 679px) {
  .cx-footer { padding-top: 26px; }
  .cx-foot-cols { display: block; max-width: none; padding: 0 24px 18px; text-align: left; }
  .cx-col { border-bottom: 1px solid rgba(255,255,255,.1); }
  .cx-col-head {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; margin: 0; padding: 17px 2px; cursor: pointer;
    color: rgba(255,255,255,.78); text-align: left;
  }
  .cx-col-head .cx-chev { display: inline-flex; color: var(--cx-yellow); transition: transform .25s cubic-bezier(.4,0,.2,1); }
  .cx-col.cx-open .cx-col-head .cx-chev { transform: rotate(180deg); }
  .cx-col-links { align-items: flex-start; gap: 15px; max-height: 0; overflow: hidden; transition: max-height .3s cubic-bezier(.4,0,.2,1); }
  .cx-col.cx-open .cx-col-links { max-height: 640px; padding: 2px 2px 18px; }
  .cx-foot-legal-wrap { padding: 0 24px; }
}
