/* =====================================================================
   Hypogen v2 — header & footer ("chrome") on v2 pages.
   Loaded instead of connect-page.css, so it re-declares the --cp-* tokens
   cp-header.css relies on. Restyles the existing header.php/footer.php
   markup (menus, popups and JS stay untouched).
   ===================================================================== */

:root {
    --cp-bg: #0B0D0F;
    --cp-text: #F7F7F7;
    --cp-accent: #FF9626;
    --cp-muted: rgba(247, 247, 247, 0.55);
    --cp-border: rgba(247, 247, 247, 0.12);
    --cp-node-bg: rgba(247, 247, 247, 0.06);
    --cp-font: "SFUIDisplay", "SF UI Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

html { height: auto !important; overflow: auto !important; }
body { height: auto !important; overflow: visible !important; background: #0B0D0F; font-size: 16px; line-height: 1.5; }

/* ---------- Header: glassy pill, white nav, orange accents ---------- */
.cp-header { top: 16px; }
.cp-header__inner {
    max-width: 1360px;
    margin: 0 auto;
    height: 60px;
    background: rgba(18, 21, 24, .72);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-color: rgba(247, 247, 247, .10);
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    transition: background-color .25s, border-color .25s;
}
.cp-header.is-scrolled .cp-header__inner,
.cp-header.is-open .cp-header__inner { background: rgba(18, 21, 24, .94); }
.cp-header__menu li a { color: rgba(247, 247, 247, .78); font-weight: 400; transition: color .2s; }
.cp-header__menu li a:hover,
.cp-header__menu li.current-menu-item > a,
.cp-header__menu li.current-menu-ancestor > a { color: var(--cp-accent); }

/* Header CTA pill (its rules live in connect-page.css, which v2 pages don't load) */
.cp-header__btn.cp-btn--accent {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 12px;
    max-height: 44px; padding: 4px 4px 4px 16px; border-radius: 999px;
    background: var(--cp-accent); color: #0B0D0F; font-family: var(--cp-font); font-size: 14px; font-weight: 500; line-height: 1;
    text-decoration: none; white-space: nowrap; transition: background-color .2s;
}
.cp-header__btn.cp-btn--accent:hover { background: #FFB35F; }
.cp-header__btn-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0B0D0F; transition: transform .3s; }
.cp-header__btn.cp-btn--accent:hover .cp-header__btn-icon { transform: rotate(45deg); }

/* ---------- Footer: CTA as a rounded band, compact dark footer below ---------- */
.site-footer { background: #0B0D0F; border-radius: 0; margin: 0; padding-top: clamp(72px, 9vw, 128px); overflow: hidden; font-family: var(--cp-font); }
.footer__cta { padding: 0 clamp(8px, 1.4vw, 20px); }
.footer__cta-inner {
    position: relative; overflow: hidden; max-width: 1880px; gap: 24px;
    padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 40px);
    border-radius: 28px;
    background: radial-gradient(90% 120% at 50% 120%, #EC670E 0%, #CF2201 38%, rgba(207, 34, 1, .35) 62%, transparent 80%), #121518;
    border: 1px solid rgba(247, 247, 247, .08);
}
.footer__cta-inner > * { position: relative; z-index: 1; }
.footer__cta-heading { font-size: clamp(36px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -.03em; font-weight: 500; }
.footer__cta-desc { max-width: 640px; font-size: 18px; line-height: 1.55; color: rgba(247, 247, 247, .78); }
.footer__main { padding: clamp(56px, 6vw, 80px) 0 40px; }
.footer__watermark {
    position: absolute; right: -0.04em; bottom: -0.22em; margin: 0;
    font-size: clamp(120px, 20vw, 300px); font-weight: 700; letter-spacing: -.05em; line-height: 1;
    background: none; -webkit-text-fill-color: transparent; color: transparent;
    -webkit-text-stroke: 1px rgba(255, 150, 38, .16);
}
.footer__top-inner { max-width: 1360px; padding: 0 clamp(16px, 4vw, 40px); gap: 32px; }
/* Contact column + up to 5 menu columns (Company, Services, Integrations, Resources, Legal) */
@media (min-width: 1025px) { .footer__top-inner { grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); } }
.footer__col-label { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #FF9626; font-weight: 500; margin-bottom: 12px; }
.footer__col-label::before { content: "// "; opacity: .6; }
.footer__menu li a { font-size: 15px; padding: 6px 0; color: rgba(247, 247, 247, .74); }
.footer__menu li a:hover, .footer__contact-link:hover { color: #FF9626; }
.footer__contact-sublabel { color: rgba(247, 247, 247, .46); }
.footer__contact-link { font-size: 15px; color: #F7F7F7; }
.footer__bottom { padding: 0 0 32px; }
.footer__bottom-inner { max-width: 1360px; padding: 24px clamp(16px, 4vw, 40px) 0; border-top: 1px solid rgba(247, 247, 247, .08); }
.footer__copy, .footer__bottom-links li a, .footer-company { color: rgba(247, 247, 247, .56); }
.footer__social-link { border-color: rgba(247, 247, 247, .14); }
.footer__social-link:hover { border-color: #FF9626; background: rgba(255, 150, 38, .1); }
@media (max-width: 768px) {
    .site-footer { margin: 0; border-radius: 0; }
    .footer__watermark { font-size: 96px; }
    .footer__col-label::before { content: none; }
    .footer__col-label { margin-bottom: 0; }
    .footer__col-toggle { padding: 16px 0; }
}

/* ---------- Accessibility: skip link + visible keyboard focus (all pages) ---------- */
.hg-skip { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 12px 18px; border-radius: 999px; background: #FF9626; color: #0B0D0F; font-weight: 500; transition: top .2s; }
.hg-skip:focus { top: 16px; outline: 2px solid #F7F7F7; outline-offset: 2px; }
.hgv2 a:focus-visible, .hgv2 button:focus-visible, .hgv2 summary:focus-visible,
.cp-header a:focus-visible, .cp-header button:focus-visible, .site-footer a:focus-visible, .site-footer button:focus-visible {
    outline: 2px solid #FF9626; outline-offset: 3px; border-radius: 8px;
}
.hgv2 .hgv2-btn:focus-visible { border-radius: 999px; }


/* =====================================================================
   Services mega menu (2026-11): 6 services in a 2-column grid, service icons,
   quiet descriptions. Overrides the Customizer CSS (post 587) by specificity
   (.cp-header prefix); the menu items and classes come from tools/seed-phase1.php.
   ===================================================================== */
.cp-header .hg-mega .hg-mega__sub { font-size: 13px; line-height: 1.45; font-weight: 400; letter-spacing: 0; color: rgba(247, 247, 247, .56); }
.cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-icon-plug > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF9626' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-5'/%3E%3Cpath d='M9 8V2'/%3E%3Cpath d='M15 8V2'/%3E%3Cpath d='M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z'/%3E%3C/svg%3E"); }
.cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-icon-grid > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF9626' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='7' x='3' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='3' rx='1'/%3E%3Crect width='7' height='7' x='14' y='14' rx='1'/%3E%3Crect width='7' height='7' x='3' y='14' rx='1'/%3E%3C/svg%3E"); }
.cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-icon-layers > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF9626' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z'/%3E%3Cpath d='m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65'/%3E%3Cpath d='m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65'/%3E%3C/svg%3E"); }
.cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-icon-key > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF9626' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z'/%3E%3Ccircle cx='16.5' cy='7.5' r='.5'/%3E%3C/svg%3E"); }
.cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-icon-activity > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF9626' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2'/%3E%3C/svg%3E"); }
.cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-icon-bot > a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF9626' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8V4H8'/%3E%3Crect width='16' height='12' x='4' y='8' rx='2'/%3E%3Cpath d='M2 14h2'/%3E%3Cpath d='M20 14h2'/%3E%3Cpath d='M15 13v2'/%3E%3Cpath d='M9 13v2'/%3E%3C/svg%3E"); }
@media (min-width: 769px) {
    .cp-header .cp-header__menu > li.hg-mega > .sub-menu {
        grid-template-columns: 290px repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto;
        column-gap: 10px; row-gap: 10px; align-content: start;
        width: min(1080px, calc(100vw - 40px)); min-height: 0; padding: 10px;
        border: 1px solid rgba(247, 247, 247, .08);
    }
    .cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-mega__promo { grid-column: 1; grid-row: 1 / span 4; }
    .cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-mega__promo > a { display: flex; flex-direction: column; height: 100%; min-height: 300px; padding: 26px 22px 22px; }
    .cp-header .hg-mega .hg-promo__title { font-size: 26px; line-height: 1.15; }
    .cp-header .hg-mega .hg-promo__text { margin-top: 12px; font-size: 15px; line-height: 1.4; font-weight: 500; }
    .cp-header .hg-mega .hg-promo__btn { position: static; margin-top: auto; width: 100%; }
    .cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-mega__heading { grid-column: 2 / -1; margin: 10px 6px 0; }
    .cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-mega__heading > a { pointer-events: auto; cursor: pointer; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; line-height: 18px; letter-spacing: .1em; text-transform: uppercase; color: #FF9626; }
    .cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-mega__heading > a::after { content: " → all services"; text-transform: none; letter-spacing: 0; color: rgba(247, 247, 247, .46); }
    .cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-mega__service { grid-column: auto; }
    .cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-mega__service > a {
        justify-content: flex-start; gap: 4px; min-height: 0; height: 100%; padding: 16px 40px 16px 64px;
        border-color: rgba(247, 247, 247, .1); border-radius: 12px;
        font-size: 16px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em;
    }
    .cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-mega__service > a::before { top: 16px; margin-top: 0; width: 36px; height: 36px; left: 14px; background-size: 18px; }
    .cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-mega__service > a::after { top: 20px; margin-top: 0; right: 18px; opacity: .5; }
    .cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-mega__service > a:hover::after { opacity: 1; }
    .cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-mega__service .hg-mega__sub { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 768px) {
    /* Phones: titles only, so the rest of the menu stays within reach */
    .cp-header .hg-mega .hg-mega__sub { display: none; }
    .cp-header .cp-header__menu > li.hg-mega > .sub-menu > li.hg-mega__service > a { min-height: 52px; padding: 12px 40px 12px 60px; font-size: 15px; }
}
