/* ---------------------------------------------------------------------
   1. NAV BAR
   --------------------------------------------------------------------- */
.main-navigation {
    font-family: var(--pa-sans);
}
#site-navigation,
#sticky-navigation {
    background-color: var(--pa-surface);
    border-bottom: 1px solid var(--pa-line);
}

/* ---------------------------------------------------------------------
   2. TOP-LEVEL MENU ITEMS
   --------------------------------------------------------------------- */
.main-navigation .main-nav ul li a {
    font-family: var(--pa-sans);
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .005em;
}

/* current / ancestor item — a quiet brass underline, like the
   trainings sub-nav's active state */
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    box-shadow: inset 0 -2px 0 0 var(--pa-brass);
}

/* the little dropdown caret — slightly recede it */
.main-navigation .dropdown-menu-toggle { opacity: .55; }

/* ---------------------------------------------------------------------
   3. DROPDOWN PANELS  (sub-menus)
   GeneratePress positions these absolutely; we only restyle the panel
   surface and the items inside it.
   --------------------------------------------------------------------- */
.main-navigation ul ul {
    border: 1px solid var(--pa-line);
    border-radius: var(--pa-radius-sm);
    box-shadow: var(--pa-shadow-card);
    padding: .35rem;
}
.main-navigation ul ul li a {
    font-size: .86rem;
    font-weight: 500;
    border-radius: 6px;
    transition: background-color .15s var(--pa-ease),
                color .15s var(--pa-ease);
}
.main-navigation ul ul li:not([class*="current-menu-"]):hover > a,
.main-navigation ul ul li:not([class*="current-menu-"]).sfHover > a {
    background-color: var(--pa-indigo-tint);
    color: var(--pa-indigo);
}
.main-navigation ul ul li[class*="current-menu-"] > a {
    background-color: var(--pa-indigo-tint);
}

/* ---------------------------------------------------------------------
   4. STICKY NAV
   The clone GeneratePress pins to the top once the user scrolls.
   --------------------------------------------------------------------- */
.main-navigation.navigation-stick,
#sticky-navigation {
    background-color: var(--pa-surface);
    box-shadow: var(--pa-shadow-soft);
}

/* ---------------------------------------------------------------------
   5. MOBILE
   --------------------------------------------------------------------- */
.main-navigation .menu-toggle {
    font-family: var(--pa-sans);
    font-weight: 600;
    letter-spacing: .02em;
}

@media (max-width: 768px) {
    .main-navigation .main-nav ul li a { font-size: .95rem; }

    /* the toggled mobile menu is an inline list, not a floating panel —
       drop the card treatment so items sit flush */
    .main-navigation ul ul {
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
    }
    #site-navigation.toggled .main-nav > ul {
        border-top: 1px solid var(--pa-line);
    }
}

/* =====================================================================
   FOOTER
   ---------------------------------------------------------------------
   Styles for the rebuilt footer (polished/footer-element.txt) — a
   GeneratePress Block Element hooked into the footer, replacing the
   old 3-column widget area + copyright bar.

   Three bands:
     .pa-footer__trust  — a LIGHT strip carrying the certification
                          badges (light so the badge artwork, whatever
                          its own background, always sits cleanly);
     .pa-footer__main   — the dark indigo body (brand + link columns);
     .pa-footer__bar    — the dark copyright bar.
   ===================================================================== */
.pa-footer {
    position: relative;
    font-family: var(--pa-sans);
}

/* --- Trust strip (light) — certification badges --- */
.pa-footer__trust {
    background: var(--pa-surface);
    border-top: 1px solid var(--pa-line);
}
.pa-footer__trust .pa-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .9rem 2.25rem;
    padding-block: 1.5rem;
}
.pa-footer__certs-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--pa-slate-soft);
}
.pa-footer__cert-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.75rem;
}
.pa-footer__cert-row img {
    height: 54px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* --- Main band (dark indigo) --- */
.pa-footer__main {
    position: relative;
    background: linear-gradient(135deg, var(--pa-indigo), var(--pa-indigo-deep));
    color: rgba(255,255,255,.72);
    font-size: 15px;
    line-height: 1.6;
}
/* brass hairline where the light strip meets the dark band */
.pa-footer__main::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--pa-brass), transparent);
}
.pa-footer__main .pa-shell { padding-block: clamp(2.75rem, 5vw, 4.25rem); }

.pa-footer__top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.5fr;
    gap: clamp(1.75rem, 4vw, 3.5rem);
}

/* --- Brand column --- */
.pa-footer__wordmark {
    font-family: var(--pa-serif);
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 1.1;
    color: #fff;
    margin: 0;
}
.pa-footer__tagline {
    margin: .85rem 0 0;
    max-width: 34ch;
    color: rgba(255,255,255,.6);
}
.pa-footer__social {
    display: flex;
    gap: .55rem;
    margin-top: 1.5rem;
}
.pa-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.8);
    text-decoration: none;
    transition: background-color .2s var(--pa-ease),
                border-color .2s var(--pa-ease),
                color .2s var(--pa-ease),
                transform .2s var(--pa-ease);
}
.pa-footer__social-link svg { width: 17px; height: 17px; fill: currentColor; }
.pa-footer__social-link:hover {
    background: var(--pa-brass);
    border-color: var(--pa-brass);
    color: #fff;
    transform: translateY(-2px);
}

/* --- Column headings --- */
.pa-footer__heading {
    font-family: var(--pa-sans);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #d9bd92;          /* light brass — reads on the indigo ground */
    margin: 0 0 1.15rem;
}

/* --- Quick links --- */
.pa-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.pa-footer__link {
    color: rgba(255,255,255,.72);
    text-decoration: none;
    transition: color .15s var(--pa-ease);
}
.pa-footer__link:hover { color: #fff; }

/* --- Contact list --- */
.pa-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}
.pa-footer__contact {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    transition: color .15s var(--pa-ease);
}
.pa-footer__contact:hover { color: #fff; }
.pa-footer__contact svg {
    flex: none;
    width: 15px;
    height: 15px;
    margin-top: .18em;
    color: var(--pa-brass);   /* the path's fill="currentColor" follows this */
    fill: currentColor;
}

/* --- Bottom bar --- */
.pa-footer__bar {
    background: var(--pa-indigo-deep);
    border-top: 1px solid rgba(255,255,255,.1);
}
.pa-footer__bar .pa-shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .35rem 1.5rem;
    padding-block: 1.15rem;
}
.pa-footer__copyright,
.pa-footer__credit {
    margin: 0;
    font-size: .8rem;
    color: rgba(255,255,255,.5);
}
.pa-footer__credit a {
    color: rgba(255,255,255,.78);
    text-decoration: none;
}
.pa-footer__credit a:hover { color: #fff; }

/* --- Footer responsive --- */
@media (max-width: 880px) {
    .pa-footer__top { grid-template-columns: 1fr 1fr; }
    .pa-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .pa-footer__top { grid-template-columns: 1fr; }
    .pa-footer__trust .pa-shell { gap: .9rem 1.25rem; }
    .pa-footer__cert-row { gap: 1.1rem; }
    .pa-footer__cert-row img { height: 44px; }
    .pa-footer__bar .pa-shell { justify-content: center; text-align: center; }
}
