:root {
    --aj-black: #050403;
    --aj-deep-black: #000;
    --aj-gold: #d6a328;
    --aj-gold-light: #f0cb62;
    --aj-red: #3a0804;
    --aj-shadow: rgba(0, 0, 0, 0.76);
    --aj-max-home: 941px;
    --aj-radius: 0.625rem;
}

html {
    min-height: 100%;
    background: var(--aj-deep-black);
    scroll-behavior: smooth;
}

body.aurelian-popup-template {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top, rgba(77, 49, 9, 0.28), transparent 40rem),
        linear-gradient(180deg, #080604 0%, #000 100%);
    color: var(--aj-gold-light);
    font-family: Georgia, 'Times New Roman', Times, serif;
    overflow-x: hidden;
}

body.aj-lock-scroll {
    overflow: hidden;
}

.aj-site {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.aj-home {
    width: 100%;
    display: flex;
    justify-content: center;
}

.aj-image-stage {
    position: relative;
    width: min(100vw, var(--aj-max-home));
    margin: 0 auto;
    background: #000;
    line-height: 0;
    box-shadow: 0 0 4rem rgba(214, 163, 40, 0.18);
}

.aj-image-stage--home {
    max-width: var(--aj-max-home);
}

.aj-base-image,
.aj-popup__image {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.aj-hotspot,
.aj-popup__contact-hotspot {
    position: absolute;
    z-index: 3;
    border: 0;
    border-radius: var(--aj-radius);
    background: rgba(255, 215, 92, 0);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(240, 203, 98, 0.18);
    transition: background 160ms ease, box-shadow 160ms ease, outline-color 160ms ease;
}

.aj-hotspot:hover,
.aj-hotspot:focus-visible,
.aj-popup__contact-hotspot:hover,
.aj-popup__contact-hotspot:focus-visible {
    background: rgba(255, 204, 73, 0.08);
    box-shadow: inset 0 0 0 2px rgba(240, 203, 98, 0.78), 0 0 1.35rem rgba(214, 163, 40, 0.32);
    outline: 2px solid rgba(240, 203, 98, 0.9);
    outline-offset: -2px;
}

/* Percentage hotspots are based on the current 941 × 1672 homepage asset. */
.aj-hotspot--menu {
    left: 4.4%;
    top: 1.25%;
    width: 24.8%;
    height: 5.5%;
}

.aj-hotspot--contact {
    left: 67.2%;
    top: 1.25%;
    width: 28.4%;
    height: 5.5%;
}

.aj-hotspot--jewelry {
    left: 4.0%;
    top: 57.1%;
    width: 30.4%;
    height: 16.7%;
}

.aj-hotspot--watches {
    left: 34.6%;
    top: 57.1%;
    width: 30.8%;
    height: 16.7%;
}

.aj-hotspot--coins {
    left: 65.6%;
    top: 57.1%;
    width: 30.3%;
    height: 16.7%;
}

.aj-hotspot--silver {
    left: 4.0%;
    top: 74.0%;
    width: 45.2%;
    height: 12.8%;
}

.aj-hotspot--collectibles {
    left: 49.6%;
    top: 74.0%;
    width: 46.2%;
    height: 12.8%;
}

.aj-hotspot--in-home {
    left: 3.2%;
    top: 87.0%;
    width: 93.5%;
    height: 11.2%;
}

.aj-popup,
.aj-menu {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background:
        radial-gradient(circle at top, rgba(92, 56, 10, 0.28), transparent 38rem),
        rgba(0, 0, 0, 0.96);
    color: var(--aj-gold-light);
}

.aj-popup[hidden],
.aj-menu[hidden] {
    display: none !important;
}

.aj-popup {
    overflow: hidden;
}

.aj-popup__toolbar {
    position: sticky;
    top: 0;
    z-index: 4;
    min-height: 58px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: max(0.65rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) 0.65rem max(0.75rem, env(safe-area-inset-left));
    background:
        linear-gradient(180deg, rgba(7, 5, 3, 0.98), rgba(7, 5, 3, 0.9)),
        #070503;
    border-bottom: 1px solid rgba(214, 163, 40, 0.72);
    box-shadow: 0 0.65rem 1.75rem var(--aj-shadow);
}

.aj-popup__back,
.aj-popup__x,
.aj-menu__close,
.aj-menu__item {
    font: 700 1rem/1 Georgia, 'Times New Roman', Times, serif;
    color: var(--aj-gold-light);
    background: linear-gradient(180deg, rgba(76, 12, 5, 0.94), rgba(21, 5, 4, 0.94));
    border: 1px solid rgba(240, 203, 98, 0.86);
    box-shadow: inset 0 0 0 1px rgba(214, 163, 40, 0.2), 0 0 1rem rgba(214, 163, 40, 0.12);
    text-transform: uppercase;
    letter-spacing: 0.055em;
    cursor: pointer;
    touch-action: manipulation;
}

.aj-popup__back {
    min-height: 42px;
    padding: 0.7rem 0.9rem;
    border-radius: 0.35rem;
}

.aj-popup__x,
.aj-menu__close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 1.45rem;
}

.aj-popup__back:hover,
.aj-popup__x:hover,
.aj-menu__close:hover,
.aj-menu__item:hover,
.aj-popup__back:focus-visible,
.aj-popup__x:focus-visible,
.aj-menu__close:focus-visible,
.aj-menu__item:focus-visible {
    outline: 2px solid var(--aj-gold-light);
    outline-offset: 2px;
    filter: brightness(1.16);
}

.aj-popup__title {
    margin: 0;
    text-align: center;
    color: var(--aj-gold-light);
    text-shadow: 0 0 0.75rem rgba(214, 163, 40, 0.34);
    font-size: clamp(0.9rem, 2.2vw, 1.18rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aj-popup__scroller {
    height: calc(100dvh - 58px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 0 0 max(0.75rem, env(safe-area-inset-bottom));
}

.aj-popup__image-wrap {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    background: #000;
    box-shadow: 0 0 4rem rgba(214, 163, 40, 0.16);
    line-height: 0;
}

.aj-popup__image {
    max-width: 100%;
    margin: 0 auto;
}

/* Invisible contact button over the Contact Us Today artwork near the bottom of each section. */
.aj-popup__contact-hotspot {
    display: block;
    left: 33.5%;
    top: 91.9%;
    width: 43%;
    height: 6%;
}

.aj-popup[data-section="contact"] .aj-popup__contact-hotspot {
    display: none;
}

.aj-popup[data-section="in_home"] .aj-popup__contact-hotspot {
    left: 23.4%;
    top: 71.7%;
    width: 54.0%;
    height: 6.2%;
}

.aj-menu {
    display: grid;
    place-items: center;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    overflow: auto;
}

.aj-menu__panel {
    position: relative;
    width: min(92vw, 540px);
    padding: 2.85rem 1.05rem 1.25rem;
    border: 1px solid rgba(214, 163, 40, 0.95);
    box-shadow:
        inset 0 0 0 2px rgba(214, 163, 40, 0.32),
        inset 0 0 4rem rgba(94, 58, 13, 0.25),
        0 0 3rem rgba(0, 0, 0, 0.78);
    background:
        linear-gradient(135deg, rgba(240, 203, 98, 0.08) 0 1px, transparent 1px 16px),
        radial-gradient(circle at top, rgba(96, 54, 8, 0.45), transparent 20rem),
        linear-gradient(180deg, rgba(8, 7, 5, 0.97), rgba(0, 0, 0, 0.96)),
        #050403;
}

.aj-menu__panel::before,
.aj-menu__panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0.55rem;
    border: 1px solid rgba(214, 163, 40, 0.48);
}

.aj-menu__panel::after {
    inset: 0.92rem;
    border-color: rgba(214, 163, 40, 0.22);
}

.aj-menu__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
}

.aj-menu__logo {
    display: block;
    width: min(35vw, 138px);
    height: auto;
    margin: 0 auto 0.35rem;
    filter: drop-shadow(0 0 1rem rgba(214, 163, 40, 0.45));
}

.aj-menu__ornament {
    margin: 0.1rem auto 0.2rem;
    text-align: center;
    color: var(--aj-gold);
    letter-spacing: 0.25em;
    text-shadow: 0 0 0.65rem rgba(214, 163, 40, 0.55);
}

.aj-menu__title {
    margin: 0.2rem 0 1rem;
    text-align: center;
    font-size: clamp(2rem, 8vw, 3.6rem);
    line-height: 1;
    color: var(--aj-gold-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 0.12rem 0 #2e1602, 0 0 1rem rgba(214, 163, 40, 0.28);
}

.aj-menu__item {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 50px;
    margin: 0.42rem 0;
    padding: 0.9rem 1rem;
    border-radius: 0.18rem;
    font-size: clamp(1rem, 4.5vw, 1.28rem);
}


.aj-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background:
        radial-gradient(circle at top, rgba(92, 56, 10, 0.28), transparent 38rem),
        rgba(0, 0, 0, 0.97);
    color: var(--aj-gold-light);
    overflow: hidden;
}

.aj-terms-modal[hidden] {
    display: none !important;
}

.aj-terms-modal__scroller {
    height: calc(100dvh - 58px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 1rem max(1rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    box-sizing: border-box;
}

.aj-terms-modal__panel {
    position: relative;
    width: min(100%, 850px);
    margin: 0 auto;
    padding: clamp(1.2rem, 4vw, 2.1rem);
    box-sizing: border-box;
    border: 1px solid rgba(214, 163, 40, 0.86);
    background:
        linear-gradient(135deg, rgba(240, 203, 98, 0.055) 0 1px, transparent 1px 16px),
        radial-gradient(circle at top, rgba(96, 54, 8, 0.32), transparent 24rem),
        linear-gradient(180deg, rgba(8, 7, 5, 0.97), rgba(0, 0, 0, 0.97)),
        #050403;
    box-shadow:
        inset 0 0 0 2px rgba(214, 163, 40, 0.22),
        inset 0 0 3.2rem rgba(94, 58, 13, 0.22),
        0 0 3rem rgba(0, 0, 0, 0.78);
}

.aj-terms-modal__panel::before,
.aj-terms-modal__panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0.55rem;
    border: 1px solid rgba(214, 163, 40, 0.38);
}

.aj-terms-modal__panel::after {
    inset: 0.92rem;
    border-color: rgba(214, 163, 40, 0.18);
}

.aj-terms-modal__logo {
    display: block;
    width: min(27vw, 118px);
    height: auto;
    margin: 0 auto 0.3rem;
    filter: drop-shadow(0 0 1rem rgba(214, 163, 40, 0.42));
}

.aj-terms-modal__content {
    position: relative;
    z-index: 1;
    color: #f4dfac;
    font-size: clamp(0.95rem, 3.2vw, 1.06rem);
    line-height: 1.62;
}

.aj-terms-modal__content p {
    margin: 0 0 0.95rem;
}

.aj-terms-modal__content p:first-child {
    color: var(--aj-gold-light);
    font-size: clamp(1.45rem, 6vw, 2.25rem);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    text-shadow: 0 0.12rem 0 #2e1602, 0 0 1rem rgba(214, 163, 40, 0.3);
}


@media (min-width: 960px) {
    .aj-site {
        padding: 0 1rem 2rem;
    }

    .aj-image-stage {
        margin-top: 0;
    }
}

@media (max-width: 520px) {
    .aj-popup__toolbar {
        gap: 0.45rem;
        min-height: 54px;
    }

    .aj-popup__back {
        min-height: 38px;
        padding: 0.62rem 0.72rem;
        font-size: 0.82rem;
    }

    .aj-popup__x,
    .aj-menu__close {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }

    .aj-popup__title {
        font-size: 0.76rem;
        letter-spacing: 0.04em;
    }

    .aj-popup__scroller,
    .aj-terms-modal__scroller {
        height: calc(100dvh - 54px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .aj-popup,
    .aj-menu,
    .aj-terms-modal {
        animation: ajFadeIn 160ms ease both;
    }

    .aj-popup__image-wrap,
    .aj-menu__panel,
    .aj-terms-modal__panel {
        animation: ajLiftIn 180ms ease both;
    }
}

@keyframes ajFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ajLiftIn {
    from { opacity: 0; transform: translateY(0.75rem); }
    to { opacity: 1; transform: translateY(0); }
}
