/* ==========================================================
   Archetypes Nav — Elementor Widget v2.0.0
   Single container that morphs from compact nav -> full panel
   ========================================================== */

/* Widget container takes no space in flow — wrapper is fixed */
.elementor-widget-archetypes_nav { line-height: 0 !important; }
.elementor-widget-archetypes_nav * { line-height: normal; }

/* ----------------------------------------------------------
   THE MORPHING CONTAINER
---------------------------------------------------------- */
.ac-wrapper {
    position: fixed !important;
    top: 14px !important;
    left: 14px !important;
    z-index: 99999 !important;
    background: #fff !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;

    /* CLOSED STATE — small card */
    width: 420px !important;
    height: 50px !important;

    transition: width 0.55s cubic-bezier(0.65,0,0.35,1),
                height 0.55s cubic-bezier(0.65,0,0.35,1) !important;
}

/* OPEN STATE — large panel, leaves ~12% gap on right on desktop */
.ac-wrapper.is-open {
    width: calc(100vw - 28px) !important;
    height: calc(100vh - 28px) !important;
}

@media (min-width: 1300px) {
    .ac-wrapper.is-open {
        width: calc(100vw - 28px - 180px) !important; /* gap on right */
        max-width: 1600px !important;
    }
}

@media (max-width: 500px) {
    .ac-wrapper {
        width: calc(100vw - 28px) !important; /* full width on small phones */
    }
    .ac-wrapper.is-open {
        width: calc(100vw - 28px) !important;
    }
}

/* ----------------------------------------------------------
   NAV BAR — sits at top of container, always visible
---------------------------------------------------------- */
.ac-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
    height: 48px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid transparent !important;
    transition: border-color 0.3s ease 0.2s !important;
}

.ac-wrapper.is-open .ac-nav {
    border-bottom-color: rgba(0,0,0,0.08) !important;
}

.ac-brand {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #111 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.ac-links {
    display: flex !important;
    align-items: center !important;
    gap: 22px !important;
}

.ac-links a {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    color: #111 !important;
    text-decoration: none !important;
    opacity: 0.5 !important;
    transition: opacity 0.2s !important;
    white-space: nowrap !important;
}

.ac-links a:hover,
.ac-links a.ac-info-btn {
    opacity: 1 !important;
}

/* INFO ↔ CLOSE swap */
.ac-info-btn .ac-close-label                     { display: none !important; }
.ac-info-btn .ac-info-label                      { display: inline !important; }
.ac-wrapper.is-open .ac-info-btn .ac-info-label  { display: none !important; }
.ac-wrapper.is-open .ac-info-btn .ac-close-label { display: inline !important; }

/* ----------------------------------------------------------
   PANEL — fills remainder of container, fades in
---------------------------------------------------------- */
.ac-panel {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease 0.25s !important;
}

.ac-wrapper.is-open .ac-panel {
    opacity: 1 !important;
}

/* ----------------------------------------------------------
   DESKTOP GRID — 4 columns, no scroll
---------------------------------------------------------- */
.ac-desktop-grid { display: none !important; }
.ac-mobile-wrap  { display: none !important; }

@media (min-width: 860px) {
    .ac-desktop-grid {
        display: grid !important;
        grid-template-columns: 1.3fr 0.8fr 1.6fr 0.7fr !important;
        height: 100% !important;
        overflow: hidden !important;
    }
}

@media (max-width: 859px) {
    .ac-mobile-wrap {
        display: block !important;
        height: 100% !important;
        overflow-y: auto !important;
    }
}

.ac-col {
    padding: 36px 28px !important;
    border-right: 1px solid rgba(0,0,0,0.08) !important;
    height: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.ac-col:first-child { padding-left: 36px !important; }
.ac-col:last-child  { border-right: none !important; }

.ac-label {
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #aaa !important;
    display: block !important;
    margin-bottom: 16px !important;
}

.ac-body, .ac-about-text p {
    font-size: 12px !important;
    color: #333 !important;
    line-height: 1.8 !important;
    margin: 0 0 10px !important;
}

.ac-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 18px !important;
}

.ac-list li {
    font-size: 11.5px !important;
    color: #222 !important;
    line-height: 1.85 !important;
}

/* CONTACT — tight gaps */
.ac-contact-wrap { margin-bottom: 4px !important; }

.ac-contact-line {
    font-size: 11.5px !important;
    color: #222 !important;
    line-height: 1.9 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.ac-contact-line.ac-link {
    border-bottom: 1px solid rgba(0,0,0,0.18) !important;
    padding-bottom: 1px !important;
}

.ac-contact-line.ac-link:hover { border-color: #222 !important; }
.ac-muted { color: #aaa !important; font-size: 11px !important; }
.ac-section-gap { margin-top: 22px !important; }

/* ----------------------------------------------------------
   MOBILE ACCORDION
---------------------------------------------------------- */
.ac-mobile-inner { padding: 0 20px 30px !important; }

.ac-mobile-section { border-top: 1px solid rgba(0,0,0,0.1) !important; }
.ac-mobile-section:last-child { border-bottom: 1px solid rgba(0,0,0,0.1) !important; }

.ac-mobile-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 0 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    color: #111 !important;
}

.ac-accordion-toggle {
    cursor: pointer !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.ac-icon {
    font-size: 20px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
}

.ac-accordion.is-open .ac-icon { transform: rotate(45deg) !important; }

.ac-mobile-body.always-open { padding-bottom: 14px !important; }

.ac-accordion-body {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.4s ease !important;
}

.ac-accordion.is-open .ac-accordion-body {
    max-height: 2000px !important;
    padding-bottom: 16px !important;
}

/* ----------------------------------------------------------
   PRACTICE — 2×2 sub-grid with grey group titles
---------------------------------------------------------- */
.ac-practice-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 28px !important;
    row-gap: 22px !important;
}

.ac-practice-group .ac-list {
    margin-bottom: 0 !important;
}

.ac-practice-title {
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: #aaa !important;
    display: block !important;
    margin-bottom: 10px !important;
}

/* Mobile: stack groups instead of 2×2 */
@media (max-width: 859px) {
    .ac-practice-grid-mobile {
        grid-template-columns: 1fr !important;
        row-gap: 18px !important;
    }
}

/* ----------------------------------------------------------
   MOBILE SCROLL LOCK — prevents page from scrolling
   underneath the open panel
---------------------------------------------------------- */
body.ac-scroll-locked {
    overscroll-behavior: none !important;
    -webkit-overflow-scrolling: auto !important;
    touch-action: none !important;
}

/* Smooth momentum scrolling INSIDE the panel, with no chaining out */
.ac-mobile-wrap {
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
}

/* The desktop panel doesn't scroll, so make sure no rubber-band there */
.ac-panel {
    overscroll-behavior: contain !important;
}

/* ----------------------------------------------------------
   PARTNER LINKS — inherit list text style, subtle hover
---------------------------------------------------------- */
.ac-partner-link {
    color: inherit !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
    display: inline-block !important;
}

.ac-partner-link:hover {
    opacity: 0.55 !important;
}

.ac-partner-link:focus-visible {
    outline: 1px dashed rgba(0,0,0,0.3);
    outline-offset: 2px;
}
