/* Storefront chrome (header, footer, typography helpers) — load before page CSS. */

:root {
    --home-cream: #FBFAF7;
    --home-trust-bg: #FBFAF7;
    --home-beige: #FBFAF7;
    --home-about-bg: #FBFAF7;
    --home-ink: #1a1a1a;
    --home-accent: #8b6fd7;
    /* Wes mockup: main column ≈ 72% of viewport, capped like Figma */
    --home-shell: min(1280px, 72vw, calc(100% - 48px));
    --home-hero-copy: min(27rem, 100%);
    /* Header shell: 22 + 40 + 22 padding/min-height */
    --home-header-clearance: 8.25rem;
}

.page-home {
    background: var(--home-cream);
}

.brand-logo {
    font-family: Pacifico, "Segoe Script", cursive;
    font-size: 1.55rem;
    font-weight: 400;
    color: inherit;
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0;
}

/* Mockup header (matches Wes Rugs comp) */
.site-header--mockup {
    background: var(--home-cream);
    border-bottom: 1px solid #ece7df;
}

.site-header--mockup:not(.site-header--hero) {
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-mockup-shell {
    width: var(--home-shell);
    margin-inline: auto;
    padding: 22px 0;
}

.header-mockup {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}

.header-mockup__logo {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.header-mockup__nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 2.8vw, 36px);
    white-space: nowrap;
    z-index: 1;
}

.header-mockup__nav a {
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--home-ink);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.header-mockup__nav a:hover {
    opacity: 0.72;
}

.header-mockup__nav a.is-active {
    color: var(--home-ink);
}

.header-mockup__tools {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.header-bag-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    color: var(--home-ink);
    line-height: 0;
}

.header-bag-icon__badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.header-bag-icon:hover {
    opacity: 0.72;
}

.menu-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    display: grid;
    place-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}

.menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.menu-btn--mockup {
    display: none;
    border-color: #ece7df;
    background: transparent;
}

.menu-btn--mockup span {
    background: var(--home-ink);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 20px;
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    padding: 12px 4px;
    font-weight: 500;
    border-bottom: 1px solid var(--line);
}

.mobile-nav--mockup {
    background: var(--home-cream);
    border-top-color: #ece7df;
}

.mobile-nav--mockup a {
    color: var(--home-ink);
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.9375rem;
    border-bottom-color: #ece7df;
}

.lang-switch--globe {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 2px 0;
    color: inherit;
}

.lang-switch--globe .lang-switch__globe {
    opacity: 0.95;
}

/* Invisible bridge so the menu stays open while moving the pointer down */
.lang-switch--globe::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -8px;
    right: -8px;
    height: 14px;
}

.lang-switch--globe .lang-switch__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 7rem;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 50;
}

.lang-switch--globe .lang-switch__menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text);
}

.lang-switch--globe .lang-switch__menu a:hover {
    background: var(--lavender);
}

.lang-switch--globe:hover .lang-switch__menu,
.lang-switch--globe:focus-within .lang-switch__menu {
    display: block;
}

.lang-switch__caret {
    font-size: 0.65rem;
    opacity: 0.7;
}

/* Mockup footer */
.site-footer.site-footer--mockup {
    background: var(--home-cream);
    border-top: 1px solid #e8e4dc;
    margin-top: 0;
    padding: 0;
}

.site-footer--mockup .container {
    width: var(--home-shell);
}

.site-footer--mockup .brand-logo {
    color: var(--home-ink);
}

.footer-mockup__top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 40px 0 32px;
}

.footer-mockup__logo {
    justify-self: start;
}

.footer-mockup__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px clamp(18px, 2.5vw, 28px);
}

.footer-mockup__nav a {
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--home-ink);
    text-decoration: none;
}

.footer-mockup__nav a:hover {
    color: var(--home-ink);
    opacity: 0.72;
}

.footer-mockup__tools {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 18px);
}

.footer-mockup__social {
    margin: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-social a,
.footer-social__icon--static {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--home-ink);
    line-height: 0;
}

.footer-social a:hover {
    opacity: 0.72;
}

.site-footer--mockup .lang-switch--globe {
    color: var(--home-ink);
}

.site-footer--mockup .lang-switch--globe .lang-switch__menu a {
    color: var(--text);
}

.footer-mockup__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    padding: 20px 0 36px;
    border-top: 1px solid #e8e4dc;
    font-size: 0.8125rem;
    color: #8a8a8a;
}

.footer-mockup__bottom p {
    margin: 0;
}

.footer-mockup__legal-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 16px;
    margin-left: auto;
}

.footer-mockup__legal-nav a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-mockup__legal-nav a:hover {
    color: #5c5c5c;
}

.footer-mockup__credit-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-mockup__credit-link:hover {
    color: #5c5c5c;
}

.page-home #main {
    padding-top: 0;
}

.page-home .container {
    width: var(--home-shell);
}

.font-display {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Header on homepage hero — transparent, all white UI */
/* Header on homepage hero — transparent, all white UI */
.site-header.site-header--hero.site-header--mockup {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
}

.site-header--hero .brand-logo,
.site-header--hero .header-mockup__nav a,
.site-header--hero .lang-switch--globe,
.site-header--hero .lang-switch__current,
.site-header--hero .lang-switch__caret,
.site-header--hero .header-bag-icon {
    color: #fff;
}

.site-header--hero .header-mockup__nav a:hover,
.site-header--hero .header-bag-icon:hover {
    opacity: 0.85;
    color: #fff;
}

.site-header--hero .lang-switch--globe .lang-switch__menu {
    background: #fff;
}

.site-header--hero .lang-switch--globe .lang-switch__menu a {
    color: var(--text);
}

.site-header--hero .menu-btn {
    border-color: rgba(255, 255, 255, 0.45);
    background: transparent;
}

.site-header--hero .menu-btn span {
    background: #fff;
}

@media (min-width: 821px) and (max-width: 1100px) {
    :root {
        --home-shell: min(1180px, calc(100% - 32px));
    }

    .header-mockup__nav {
        display: flex;
        gap: clamp(10px, 1.4vw, 22px);
    }

    .header-mockup__nav a {
        font-size: 0.875rem;
    }

    .menu-btn--mockup {
        display: none;
    }

    .footer-mockup__top {
        grid-template-columns: 1fr auto 1fr;
        text-align: initial;
    }

    .footer-mockup__logo {
        justify-self: start;
    }

    .footer-mockup__tools {
        justify-self: end;
    }

    .site-footer--mockup .container {
        width: var(--home-shell);
    }
}

@media (max-width: 820px) {
    :root {
        --home-shell: calc(100% - 40px);
    }

    .header-mockup-shell {
        width: 100%;
        padding: 18px 20px;
    }

    .header-mockup__nav {
        display: none;
    }

    .header-mockup__tools {
        gap: 14px;
    }

    .header-mockup__tools .lang-switch--globe {
        display: none;
    }

    .menu-btn--mockup {
        display: grid;
    }

    .page-home .site-header.site-header--hero.site-header--mockup {
        position: relative;
        background: var(--home-cream) !important;
        border-bottom: 1px solid #ece7df !important;
    }

    .site-header--hero .brand-logo,
    .site-header--hero .header-bag-icon,
    .site-header--hero .lang-switch--globe,
    .site-header--hero .lang-switch__current,
    .site-header--hero .lang-switch__caret {
        color: var(--home-ink);
    }

    .site-header--hero .menu-btn {
        border-color: rgba(26, 26, 26, 0.22);
        background: transparent;
    }

    .site-header--hero .menu-btn span {
        background: var(--home-ink);
    }

    .footer-mockup__top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-mockup__logo,
    .footer-mockup__tools {
        justify-self: center;
    }
}

/* Spam honeypot — hidden on every page that uses <x-form-honeypot /> */
.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
