/* The homepage header and footer, scoped so the existing page styles remain intact. */
#site-header,
#site-footer {
  --pink: #ff2d88;
  --muted: #74686f;
  --line: #e9e1dd;
  --grad: linear-gradient(115deg, #ff1681, #ffae59);
  --max: 1220px;
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.55;
}
#site-header *, #site-footer * { box-sizing: border-box; }
#site-header button { font: inherit; cursor: pointer; }
#site-header .shell, #site-footer .shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

#site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  color: #fff; background: transparent; box-shadow: none;
  transition: background .3s, box-shadow .3s;
}
#site-header.solid { background: #200109; box-shadow: 0 8px 26px rgba(20,0,5,.2); }
#site-header .new-nav {
  position: relative; z-index: 2; width: min(90%, 1400px);
  height: 82px; display: flex; align-items: center; gap: 34px;
}
#site-header .new-brand, #site-footer .new-brand {
  display: flex; align-items: center; gap: 10px; width: max-content;
  margin-right: auto; text-decoration: none;
}
#site-header .new-brand .brand-icon { display: block; width: 32px; height: 32px; object-fit: contain; }
#site-header .brand-word-shape, #site-footer .brand-word-shape {
  display: block; width: 94px; height: 32px;
  -webkit-mask: url('alyeon-wordmark-reference.png') center / contain no-repeat;
  mask: url('alyeon-wordmark-reference.png') center / contain no-repeat;
}
#site-header .brand-word-shape { background: #fff; }
#site-header .brand-name, #site-footer .brand-name {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
#site-header .new-links { display: flex; align-items: center; gap: 28px; }
#site-header .new-links > a, #site-header .new-drop > a {
  font-weight: 600; font-size: .92rem; color: #fff;
}
#site-header .new-links > a:hover, #site-header .new-drop > a:hover {
  color: #fff; text-decoration: underline; text-underline-offset: 5px;
}
#site-header .new-links > a.active, #site-header .new-drop > a.active { color: #ffd7e8; }
#site-header .new-drop { position: relative; }
#site-header .new-drop.mega-drop { position: static; }
#site-header .new-drop > a { display: flex; align-items: center; gap: 5px; }
#site-header .new-drop > a svg { transition: transform .2s; }
#site-header .new-drop > a[aria-expanded="true"] { color: #ef146f; }
#site-header .new-drop > a[aria-expanded="true"] svg { transform: rotate(180deg); }

#site-header .new-drop > div {
  position: absolute; top: 35px; left: 50%; width: 300px;
  padding: 10px; border: 1px solid var(--line); border-radius: 18px;
  background: #fff; color: #211a1e; box-shadow: 0 24px 60px #2e172022;
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px);
  transition: opacity .25s, visibility .25s, transform .25s;
}
#site-header .new-drop > div.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
#site-header .new-drop > div a { display: block; padding: 11px 12px; border-radius: 11px; color: #2a2025; }
#site-header .new-drop > div a:hover { background: #fff4f8; color: #a51d51; }
#site-header .new-drop > div b, #site-header .new-drop > div span { display: block; }
#site-header .new-drop > div b { font-size: .86rem; }
#site-header .new-drop > div span { font-size: .76rem; color: var(--muted); }

#site-header .mega-drop > div.mega-menu.odoo-menu {
  position: fixed; top: 82px; left: 0; width: 100vw; max-width: none;
  max-height: calc(100vh - 82px); overflow: auto;
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 42px 64px;
  padding: 42px max(48px, calc((100vw - 1220px)/2));
  margin: 0; border: 0; border-radius: 0;
  box-shadow: 0 18px 35px rgba(31,20,26,.08);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .2s, visibility .2s, transform .2s;
}
#site-header .mega-drop > div.mega-menu.odoo-menu.is-open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 1001px) {
  #site-header .mega-drop > div.mega-menu.industry-menu.odoo-menu {
    grid-template-columns: repeat(5, minmax(0,1fr)); column-gap: 32px;
  }
}
#site-header .odoo-menu section { position: static; padding: 0; }
#site-header .odoo-menu h5 {
  position: relative; margin: 0 0 14px; padding-bottom: 9px;
  border-bottom: 1px solid #eadfe4; color: #2d242a;
  font: 800 1rem 'Manrope', sans-serif; letter-spacing: 0; text-transform: uppercase;
}
#site-header .odoo-menu h5::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  width: 58px; height: 2px; border-radius: 3px;
  background: linear-gradient(90deg, #ff2d88, #ff9b58);
}
#site-header .odoo-menu section > a {
  padding: 6px 0; border-radius: 0;
  font: 500 .9rem 'Manrope', sans-serif; color: #51464d;
}
#site-header .odoo-menu section > a:hover {
  background: none; color: #ef146f; transform: translateX(3px);
}
#site-header .odoo-menu footer {
  position: static; grid-column: 1 / -1;
  width: auto; margin: 0 calc(-1 * max(48px, calc((100vw - 1220px)/2))) -42px;
  padding: 22px max(48px, calc((100vw - 1220px)/2));
  background: #fffafc; border: 0; border-top: 1px solid #ece8eb;
  border-radius: 0; box-shadow: none; text-align: center;
}
#site-header .odoo-menu footer a {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 5px 15px; font: 700 .95rem 'Manrope', sans-serif; color: #2d242a;
}
#site-header .odoo-menu footer a:hover { background: none; color: var(--pink); }

#site-header .new-nav-actions { display: flex; align-items: center; gap: 12px; }
#site-header .new-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 24px; border: 1px solid transparent;
  border-radius: 999px; font: 700 .91rem 'Manrope', sans-serif;
  white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s;
}
#site-header .new-btn.small { padding: 11px 20px; }
#site-header .new-btn.primary { background: var(--grad) border-box no-repeat; color: #fff; box-shadow: 0 10px 28px #ff2d8840; }
#site-header .new-btn.primary:hover, #site-header .new-btn.primary:focus-visible { background: #ed347d; color: #fff; }
#site-header .new-nav-actions .login-pill {
  background: transparent; border-color: rgba(255,255,255,.75);
  color: #fff; font-weight: 700;
}
#site-header .new-nav-actions .login-pill:hover, #site-header .new-nav-actions .login-pill:focus-visible {
  background: #ff9b58; border-color: #ff9b58; color: #fff;
  box-shadow: 0 10px 26px rgba(255,155,88,.28);
}
#site-header .new-btn:focus-visible, #site-header .new-menu:focus-visible {
  outline: 2px solid #f7a3c4; outline-offset: 4px;
}
#site-header .new-menu { display: none; width: 40px; padding: 8px; border: 0; background: none; color: #fff; }
#site-header .new-menu i { display: block; height: 2px; margin: 5px; background: currentColor; }
#site-header .nav-scrim {
  position: fixed; z-index: 0; inset: 82px 0 0;
  border: 0; background: rgba(23,19,23,.24); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s;
}
#site-header.menu-open .nav-scrim { opacity: 1; visibility: visible; }

#site-footer {
  position: relative; isolation: isolate; overflow: visible;
  width: calc(100% - 48px); max-width: 1440px;
  margin: 28px auto 24px; padding: 0 clamp(24px, 4vw, 64px);
  border: 0; border-radius: 36px; background: transparent; box-shadow: none;
  color: #2d0313;
}
/* The homepage uses this same grey page surface behind its transparent footer. */
#site-footer::before {
  content: ''; position: absolute; z-index: -1;
  top: -28px; bottom: -24px; left: 50%; width: 100vw;
  transform: translateX(-50%); background: #f7f7f7;
}
#site-footer > .shell { width: 100%; }
#site-footer .footer-top {
  display: grid; grid-template-columns: 1.4fr repeat(3,1fr);
  gap: 42px; padding: 64px 0 42px;
}
#site-footer .footer-brand .new-brand { gap: 15px; }
#site-footer .footer-brand .brand-icon { display: block; width: 38px; height: 38px; object-fit: contain; }
#site-footer .footer-brand .brand-word-shape { width: 96px; height: 32px; background: #2d0313; }
#site-footer .footer-brand h3 {
  margin: 28px 0 12px; color: #2d0313;
  font: 700 1.7rem/1.2 'Manrope', sans-serif;
}
#site-footer .footer-brand p { max-width: 300px; margin: 0; color: #503b43; }
#site-footer .footer-top h4 {
  width: max-content; max-width: 100%; margin: 0 0 12px;
  font: 700 .75rem 'Manrope', sans-serif; letter-spacing: .12em;
  color: #e63e89; background: var(--grad); background-clip: text;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
#site-footer .footer-top > div > a:not(.new-brand) {
  display: block; padding: 6px 0; color: #503b43; font-size: .88rem;
}
#site-footer .footer-top > div > a:hover { color: #a23762; }
#site-footer .footer-bottom {
  display: flex; justify-content: space-between; gap: 20px;
  border-top: 1px solid rgba(45,3,19,.14);
  padding: 20px 0 28px; color: #503b43; font-size: .75rem;
}
#site-footer .footer-bottom div { display: flex; gap: 18px; }
#site-footer .footer-bottom a { color: #503b43; }
#site-footer .footer-bottom a:hover { color: #a23762; }

/* Account forms start below the fixed shared navigation. */
body[data-page="login"] .auth, body[data-page="signup"] .auth {
  margin-top: 82px; min-height: calc(100vh - 82px);
}
body[data-page="login"] .auth-left > .logo, body[data-page="signup"] .auth-left > .logo { display: none; }

@media (max-width: 1000px) {
  #site-header .new-links {
    display: none; position: absolute; z-index: 2;
    top: 76px; left: 24px; right: 24px;
    max-height: calc(100vh - 100px); overflow: auto;
    flex-direction: column; align-items: stretch;
    padding: 18px; border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px; background: #200109;
    box-shadow: 0 20px 50px #2d172022;
  }
  #site-header .new-links.open { display: flex; }
  #site-header .new-drop > a { justify-content: space-between; padding: 8px 0; }
  #site-header .new-drop > div { display: none; }
  #site-header .new-drop.open > div {
    position: static; width: 100%; margin-top: 8px;
    border-radius: 13px; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  #site-header .resource-drop.open > div { display: block; }
  #site-header .mega-drop > div.mega-menu.odoo-menu {
    position: static; width: 100%; max-height: none; overflow: visible;
    margin-top: 8px; padding: 16px; border-radius: 13px;
    grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 24px;
    box-shadow: none; transform: none;
  }
  #site-header .mega-drop.open > div.mega-menu.odoo-menu { display: grid; }
  #site-header .odoo-menu footer { margin: 0 -16px -16px; padding: 18px 16px; }
  #site-header .new-menu { display: block; }
  #site-header .nav-scrim { inset: 0; }
  #site-footer .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  #site-header .new-nav { width: 86%; }
}
@media (max-width: 700px) {
  #site-header .new-nav { width: calc(100% - 48px); height: 72px; }
  #site-header .new-brand .brand-icon { width: 29px; height: 29px; }
  #site-header .brand-word-shape { width: 87px; height: 29px; }
  #site-header .new-nav-actions .small { display: none; }
  #site-footer {
    width: calc(100% - 24px); margin: 16px auto 12px;
    padding: 0 24px; border-radius: 24px;
  }
  #site-footer::before { top: -16px; bottom: -12px; }
  #site-footer .footer-top { gap: 28px 20px; padding: 42px 0 24px; }
  #site-footer .footer-brand { grid-column: 1 / -1; }
  #site-footer .footer-bottom { flex-direction: column; padding: 18px 0 26px; }
  body[data-page="login"] .auth, body[data-page="signup"] .auth {
    margin-top: 72px; min-height: calc(100vh - 72px);
  }
}
@media (max-width: 560px) {
  #site-header .mega-drop > div.mega-menu.odoo-menu { grid-template-columns: 1fr; }
  #site-header .odoo-menu section > a { font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  #site-header .new-btn, #site-header .new-drop > div,
  #site-header .nav-scrim { transition: none; }
}
