/* =====================================================
   AuditWorkshop — Header & Footer
   ===================================================== */

/* ---- Site Header ---- */
.aw-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #1c4b42;
    box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.aw-header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
.aw-header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.aw-logo-img {
    height: 36px;
    width: auto;
    display: block;
}
.aw-logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

/* Nav */
.aw-main-nav {
    flex: 1;
}
.aw-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    align-items: center;
}
.aw-nav-list li a {
    display: block;
    padding: 8px 14px;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.aw-nav-list li a:hover,
.aw-nav-list li.aw-nav-active a {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

/* Header actions */
.aw-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.aw-nav-login {
    color: rgba(255,255,255,0.82);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 4px;
    transition: color 0.15s;
}
.aw-nav-login:hover {
    color: #fff;
}
.aw-btn-sm {
    padding: 8px 18px;
    font-size: 0.88rem;
}
.aw-btn-header-cta {
    background: #fef08a;
    color: #1c4b42 !important;
    border-color: #fef08a;
    font-weight: 700;
}
.aw-btn-header-cta:hover {
    background: #fcd34d;
    border-color: #fcd34d;
    color: #1c4b42 !important;
}

/* Hamburger */
.aw-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
    flex-shrink: 0;
}
.aw-hamburger span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
    width: 100%;
}
.aw-hamburger.aw-hamburger-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.aw-hamburger.aw-hamburger-open span:nth-child(2) {
    opacity: 0;
}
.aw-hamburger.aw-hamburger-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hide WP admin bar offset for sticky header */
.admin-bar .aw-site-header {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .aw-site-header { top: 46px; }
}

/* ---- Mobile nav ---- */
@media (max-width: 820px) {
    .aw-hamburger { display: flex; }
    .aw-main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: #163d35;
        padding: 12px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        z-index: 999;
    }
    .aw-main-nav.aw-nav-open {
        display: block;
    }
    .aw-nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0 16px;
    }
    .aw-nav-list li a {
        padding: 12px 14px;
        font-size: 1rem;
    }
    .aw-header-actions {
        display: none;
    }
}

/* Hide WP admin bar for non-admin users */
body:not(.logged-in) #wpadminbar { display: none !important; }
body:not(.logged-in) .aw-site-header { top: 0 !important; }

/* =====================================================
   Site Footer
   ===================================================== */

.aw-site-footer {
    background: #fff;
    border-top: 1px solid #e2ebe6;
    font-family: "Open Sans", system-ui, sans-serif;
}

.aw-footer-main {
    padding: 60px 0 40px;
}

.aw-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.aw-footer-logo {
    height: 36px;
    width: auto;
    display: block;
    margin-bottom: 16px;
}
.aw-footer-logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1c4b42;
    text-decoration: none;
    display: block;
    margin-bottom: 16px;
}
.aw-footer-tagline {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 10px;
    max-width: 280px;
}
.aw-footer-entity {
    font-size: 0.82rem;
    color: #888;
    margin: 0;
}
.aw-footer-entity a {
    color: #1c4b42;
    text-decoration: none;
}
.aw-footer-entity a:hover {
    text-decoration: underline;
}

.aw-footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1c4b42;
    margin: 0 0 16px;
}
.aw-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.aw-footer-col ul li {
    margin-bottom: 10px;
}
.aw-footer-col ul li a {
    font-size: 0.9rem;
    color: #555;
    text-decoration: none;
    transition: color 0.15s;
}
.aw-footer-col ul li a:hover {
    color: #1c4b42;
}

/* Footer bottom bar */
.aw-footer-bottom {
    border-top: 1px solid #e2ebe6;
    padding: 18px 0;
    background: #f6f8f7;
}
.aw-footer-bottom .aw-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-template-columns: none;
    gap: 16px;
}
.aw-footer-bottom p {
    font-size: 0.82rem;
    color: #888;
    margin: 0;
}
.aw-footer-legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
.aw-footer-legal li a {
    font-size: 0.82rem;
    color: #888;
    text-decoration: none;
    transition: color 0.15s;
}
.aw-footer-legal li a:hover {
    color: #1c4b42;
}

@media (max-width: 768px) {
    .aw-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
    .aw-footer-brand {
        grid-column: 1 / -1;
    }
    .aw-footer-bottom .aw-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .aw-footer-inner {
        grid-template-columns: 1fr;
    }
}

/* ---- Why icon wrap updated for SVG ---- */
.aw-why-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #1c4b42;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* =====================================================
   Student header — user avatar + dropdown
   ===================================================== */

/* Subtle visual distinction: slightly darker shade signals "you're inside" */
.aw-header-student {
    /* matched to public header */
    background: #1c4b42;
    border-bottom: 1px solid rgba(167, 215, 192, 0.15);
}

/* User menu wrapper */
.aw-user-menu {
    position: relative;
}

/* Trigger button */
.aw-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 6px 12px 6px 8px;
    cursor: pointer;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
    font-family: "Open Sans", system-ui, sans-serif;
}
.aw-user-trigger:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.3);
}
.aw-user-trigger[aria-expanded="true"] {
    background: rgba(255,255,255,0.14);
}

/* Avatar circle — initials */
.aw-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #a7d7c0;
    color: #163d35;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.aw-user-name {
    color: rgba(255,255,255,0.9);
}

/* Dropdown panel */
.aw-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e2ebe6;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 6px;
    z-index: 1100;
}
.aw-user-dropdown a {
    display: block;
    padding: 9px 14px;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.12s, color 0.12s;
}
.aw-user-dropdown a:hover {
    background: #f6f8f7;
    color: #1c4b42;
}
.aw-dropdown-divider {
    height: 1px;
    background: #e8edf0;
    margin: 4px 8px;
}
.aw-dropdown-logout {
    color: #c0392b !important;
}
.aw-dropdown-logout:hover {
    background: #fdf0ee !important;
    color: #a93226 !important;
}

/* =====================================================
   Student footer — strip only
   ===================================================== */
.aw-footer-strip {
    background: #f6f8f7;
    border-top: 1px solid #e2ebe6;
    padding: 16px 24px;
}
.aw-footer-strip-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.aw-footer-strip p {
    font-size: 0.82rem;
    color: #888;
    margin: 0;
}
.aw-footer-strip ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}
.aw-footer-strip ul li a {
    font-size: 0.82rem;
    color: #888;
    text-decoration: none;
    transition: color 0.15s;
}
.aw-footer-strip ul li a:hover {
    color: #1c4b42;
}
@media (max-width: 480px) {
    .aw-footer-strip-inner { flex-direction: column; text-align: center; }
}
