/* SnapsJo — future-ready marketing site header */

/* Accessibility: hidden until keyboard focus (homepage uses home.css, not main.css) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    z-index: 10001;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
}
.skip-link:focus,
.skip-link:focus-visible {
    left: 16px;
    top: 12px;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    padding: 10px 14px;
    background: var(--ink, #171412);
    color: #faf7f2;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    outline: 3px solid var(--clay, #b87952);
    outline-offset: 2px;
}

:root {
    --site-header-offset: 16px;
    --site-header-height: 60px;
}

body.has-site-header:not(.landing-body) {
    padding-top: calc(var(--site-header-offset) + var(--site-header-height) + 12px);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: var(--site-header-offset);
    margin-bottom: 0;
    pointer-events: none;
}

.site-header-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    pointer-events: auto;
}

.site-header-inner {
    border-radius: 999px;
    background: rgba(250, 247, 242, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(184, 121, 82, 0.16);
    box-shadow: 0 18px 50px rgba(42, 33, 28, 0.10);
    transition: background 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.site-header.is-scrolled {
    padding-top: 0;
}

.site-header.is-scrolled .site-header-inner {
    background: rgba(250, 247, 242, 0.96);
    box-shadow: 0 12px 34px rgba(42, 33, 28, 0.14);
    border-color: rgba(184, 121, 82, 0.22);
    border-radius: 0;
    border-left: 0;
    border-right: 0;
}

.site-header.is-scrolled .site-header-shell {
    width: 100%;
    max-width: none;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: var(--site-header-height);
    padding: 6px 10px 6px 14px;
}

.site-nav__brand {
    flex-shrink: 0;
}

.site-nav__brand .brand__logo {
    height: 38px;
    max-width: min(168px, 42vw);
}

.site-nav__links {
    display: none;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-700, #5c534c);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
    color: var(--clay, #b87952);
    background: rgba(184, 121, 82, 0.08);
    outline: none;
}

.site-nav-link[aria-current="page"] {
    color: var(--ink, #171412);
    background: rgba(184, 121, 82, 0.10);
}

.site-nav-link__chev svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.site-nav-item.is-open .site-nav-link__chev svg {
    transform: rotate(180deg);
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.site-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #faf7f2;
    background: linear-gradient(135deg, #3f4a35 0%, #2a211c 52%, #8a5a3a 100%);
    box-shadow: 0 10px 24px rgba(42, 33, 28, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.site-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.site-cta:hover {
    color: #faf7f2;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(42, 33, 28, 0.22);
    filter: brightness(1.03);
}

.site-cta:hover svg {
    transform: translateX(2px);
}

.site-cta--desktop {
    display: none;
}

.site-cta--mobile-compact {
    min-height: 44px;
    padding: 0 14px;
}

.site-cta__short {
    display: none;
}

.site-signin-link {
    display: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-700, #5c534c);
    padding: 8px 10px;
}

.site-signin-link:hover {
    color: var(--clay, #b87952);
}

.site-free-badge {
    display: none;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ink, #171412);
    background: rgba(244, 184, 96, 0.28);
    border: 1px solid rgba(184, 121, 82, 0.18);
    white-space: nowrap;
}

.site-credit-pill {
    display: none;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    color: var(--text-700, #5c534c);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(184, 121, 82, 0.14);
    white-space: nowrap;
}

.site-credit-pill strong {
    color: var(--ink, #171412);
    font-weight: 600;
}

.site-credit-pill__short {
    display: none;
}

@media (min-width: 1080px) {
    .site-credit-pill__long {
        display: none;
    }

    .site-credit-pill__short {
        display: inline;
    }
}

.site-nav-item {
    position: relative;
}

.site-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 320px;
    z-index: 30;
}

.site-mega-menu {
    width: min(760px, calc(100vw - 32px));
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 252, 246, 0.98);
    border: 1px solid rgba(184, 121, 82, 0.16);
    box-shadow: 0 24px 60px rgba(42, 33, 28, 0.14);
}

.site-mega-menu--resources {
    width: min(560px, calc(100vw - 32px));
}

.site-mega-menu__title {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--ink, #171412);
}

.site-mega-menu__intro {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-700, #5c534c);
}

.site-mega-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
}

.site-mega-grid--resources {
    grid-template-columns: 1fr;
}

.site-mega-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(184, 121, 82, 0.10);
    background: rgba(255, 255, 255, 0.55);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-mega-card:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(184, 121, 82, 0.22);
    transform: translateY(-1px);
}

.site-mega-card--soon {
    opacity: 0.88;
}

.site-mega-card--soon:hover {
    opacity: 1;
}

.site-mega-card__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--clay, #b87952);
    background: rgba(184, 121, 82, 0.10);
}

.site-mega-card__icon svg {
    width: 20px;
    height: 20px;
}

.site-mega-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.site-mega-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.site-mega-card__top strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink, #171412);
}

.site-mega-card__desc {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-700, #5c534c);
}

.site-mega-badge {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-mega-badge--now {
    color: #2f4a35;
    background: rgba(221, 232, 213, 0.95);
}

.site-mega-badge--soon {
    color: #6b5a4d;
    background: rgba(232, 220, 200, 0.85);
}

.site-mega-menu__foot {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(184, 121, 82, 0.12);
}

.site-mega-menu__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--clay, #b87952);
}

.site-mega-menu__cta svg {
    width: 14px;
    height: 14px;
}

.site-account-dropdown {
    right: 0;
    left: auto;
    transform: none;
    min-width: 220px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 252, 246, 0.98);
    border: 1px solid rgba(184, 121, 82, 0.16);
    box-shadow: 0 18px 40px rgba(42, 33, 28, 0.12);
}

.site-account-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink, #171412);
}

.site-account-dropdown a:hover {
    background: rgba(184, 121, 82, 0.08);
    color: var(--clay, #b87952);
}

.site-account-dropdown__signout {
    margin-top: 4px;
    border-top: 1px solid rgba(184, 121, 82, 0.10);
    border-radius: 0 0 10px 10px;
    padding-top: 12px !important;
}

.mobile-menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(184, 121, 82, 0.16);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink, #171412);
}

.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-toggle__close {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__open {
    display: none;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__close {
    display: block;
}

.mobile-drawer[hidden] {
    display: none;
}

.mobile-drawer.is-open {
    display: block;
}

.mobile-drawer__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(23, 20, 18, 0.34);
    z-index: 1001;
}

.mobile-drawer__panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100dvh;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    background: #faf7f2;
    box-shadow: -20px 0 60px rgba(42, 33, 28, 0.16);
    transform: translateX(100%);
    transition: transform 0.32s ease;
}

.mobile-drawer.is-open .mobile-drawer__panel {
    transform: translateX(0);
}

.mobile-drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(184, 121, 82, 0.12);
}

.mobile-drawer__close {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(184, 121, 82, 0.14);
    background: #fff;
}

.mobile-drawer__scroll {
    flex: 1;
    overflow: auto;
    padding: 8px 12px 20px;
}

.mobile-drawer-section {
    border-bottom: 1px solid rgba(184, 121, 82, 0.10);
}

.mobile-drawer-section__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 12px 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink, #171412);
    background: transparent;
    border: 0;
}

.mobile-drawer-section__toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.mobile-drawer-section.is-open .mobile-drawer-section__toggle svg {
    transform: rotate(180deg);
}

.mobile-drawer-section__panel {
    padding: 0 4px 12px;
}

.mobile-drawer-link {
    display: block;
    padding: 12px;
    border-radius: 14px;
    margin-bottom: 4px;
}

.mobile-drawer-link:hover {
    background: rgba(184, 121, 82, 0.08);
}

.mobile-drawer-link--active {
    background: rgba(221, 232, 213, 0.45);
    border: 1px solid rgba(63, 74, 53, 0.12);
}

.mobile-drawer-link__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.mobile-drawer-link__main strong {
    font-size: 14px;
    color: var(--ink, #171412);
}

.mobile-drawer-link__desc {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-700, #5c534c);
}

.mobile-drawer-link--simple {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink, #171412);
}

.mobile-drawer-link--cta {
    margin-top: 6px;
    font-weight: 700;
    color: var(--clay, #b87952);
}

.mobile-drawer-credits {
    margin: 0 12px 8px;
    font-size: 13px;
    color: var(--text-700, #5c534c);
}

.site-free-badge--drawer {
    display: inline-flex;
    margin: 0 12px 8px;
}

.mobile-drawer__cta {
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(184, 121, 82, 0.12);
    background: rgba(255, 252, 246, 0.96);
}

.site-cta--drawer {
    width: 100%;
}

body.mobile-drawer-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .site-mega-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-mega-grid--resources {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1080px) {
    .site-nav {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        padding: 6px 10px 6px 16px;
    }

    .site-nav__links {
        display: flex;
        justify-content: center;
    }

    .site-cta--desktop {
        display: inline-flex;
    }

    .site-cta--mobile-compact {
        display: none;
    }

    .site-signin-link {
        display: inline-flex;
    }

    .site-free-badge,
    .site-credit-pill {
        display: inline-flex;
    }

    .mobile-menu-toggle {
        display: none;
    }
}

@media (max-width: 1079px) {
    .site-nav-item--dropdown:not(.site-account-menu),
    .site-account-menu,
    .site-signin-link,
    .site-free-badge,
    .site-credit-pill {
        display: none;
    }
}

@media (max-width: 420px) {
    .site-cta__full {
        display: none;
    }

    .site-cta__short {
        display: inline;
    }

    .site-nav__brand .brand__logo {
        height: 34px;
        max-width: 130px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header-inner,
    .site-cta,
    .site-mega-card,
    .mobile-drawer__panel,
    .site-nav-link__chev svg {
        transition: none;
    }
}

/* Global mobile sticky action bar */
.site-mobile-sticky {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 48;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0));
    background: rgba(255, 252, 246, 0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line-warm, #e8d8c4);
    box-shadow: 0 -6px 20px rgba(42, 33, 28, 0.07);
    align-items: center;
    gap: 8px;
}
@media (max-width: 767px) {
    body.has-mobile-sticky {
        padding-bottom: 0;
    }
    body.has-mobile-sticky .site-mobile-sticky { display: flex; }
    /* Keep scroll clearance inside main — not on body after the footer */
    body.has-mobile-sticky #main,
    body.has-mobile-sticky .page-main {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0));
    }
    /* Extend dark footer under the fixed sticky bar so no cream strip shows */
    body.has-mobile-sticky .site-footer {
        padding-bottom: calc(28px + 64px + env(safe-area-inset-bottom, 0));
    }
}
.site-mobile-sticky__credits {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-600, #5c4f44);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--paper, #fffdf8);
    border: 1px solid var(--line-warm, #e8d8c4);
    white-space: nowrap;
}
.site-mobile-sticky__secondary {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
}
.site-mobile-sticky__primary {
    flex: 1;
    min-height: 44px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-grid--expanded {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
