/* ==========================================================================
   Advent Calendar 2026 — Campaign CSS
   ========================================================================== */

:root {
    --ac-gold:        #b3975e;
    --ac-gold-dark:   #9c824d;
    --ac-text:        #2b1b14;
    --ac-cream:       #fcfcf9;
    --ac-line:        #8a8a8a;
    --ac-white:       #ffffff;
    --ac-serif:       "Petrona", Georgia, "Times New Roman", serif;
    /* Design body font is Priori Sans — falls back to the site font stack */
    --ac-sans:        "Priori Sans", "PrioriSansOT", "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
    --ac-ease:        cubic-bezier(.25, .6, .3, 1);
}

/* --------------------------------------------------------------------------
   0. Global container overrides (same as previous campaign LPs)
   -------------------------------------------------------------------------- */
/* Page wrapper overrides (#midContent, #mainContentOuter) live in index.php, keyed on $file_name */

.ac-lp {
    position: relative;
    color: var(--ac-text);
    font-family: var(--ac-sans);
    font-weight: 400;
    text-transform: none;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}
.ac-lp *, .ac-lp *::before, .ac-lp *::after { box-sizing: border-box; }
.ac-lp img { max-width: 100%; height: auto; display: block; }
.ac-lp h1, .ac-lp h2, .ac-lp h3, .ac-lp p { margin: 0; text-transform: none; letter-spacing: normal; text-align: center;}

.ac-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   1. Shared elements
   -------------------------------------------------------------------------- */
.ac-title {
    font-family: var(--ac-serif);
    font-weight: 500;
    color: var(--ac-gold);
    font-size: 1.625rem;           /* 26px @ 393 */
    line-height: 1.2;
    text-align: center;
}
.ac-pretitle {
    font-family: var(--ac-sans);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase !important;
    color: var(--ac-gold);
}
.ac-ornament { margin: 0 auto 1.25rem; width: 5.5rem; }

.ac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    min-width: 9.5rem;
    min-height: 2.75rem;
    padding: 0.55em 0.5em;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: var(--ac-serif);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none !important;
    text-transform: none;
    cursor: pointer;
    background: none;
    transition: background-color .25s var(--ac-ease), color .25s var(--ac-ease), border-color .25s var(--ac-ease);
}
.ac-btn:focus-visible { outline: 2px solid var(--ac-gold); outline-offset: 3px; }

.ac-lp .ac-btn--light,
.ac-lp .ac-btn--light:visited { color: var(--ac-white) !important; border-color: rgba(255,255,255,.9); }
.ac-lp .ac-btn--light:hover,
.ac-lp .ac-btn--light:focus-visible { background: var(--ac-white); color: var(--ac-gold) !important; }
.ac-btn--light:focus-visible { outline-color: var(--ac-white); }

.ac-lp .ac-btn--outline,
.ac-lp .ac-btn--outline:visited { color: var(--ac-gold) !important; border-color: var(--ac-gold); background: var(--ac-white); }
.ac-lp .ac-btn--outline:hover,
.ac-lp .ac-btn--outline:focus-visible { background: var(--ac-gold); color: var(--ac-white) !important; }

.ac-lp .ac-btn--gold,
.ac-lp .ac-btn--gold:hover,
.ac-lp .ac-btn--gold:focus-visible { color: var(--ac-white) !important; background: var(--ac-gold); border-color: var(--ac-gold); }
.ac-lp .ac-btn--gold:hover { background: var(--ac-gold-dark); border-color: var(--ac-gold-dark); }
.ac-btn.is-loading { opacity: .6; pointer-events: none; }
.ac-btn.is-disabled { opacity: .55; cursor: default; }
.ac-cart-form { display: contents; }

/* Reveal on scroll (only when JS is running) */
.ac-js .ac-reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity .8s var(--ac-ease), transform .8s var(--ac-ease);
}
.ac-js .ac-reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   2. Section 1 — Hero
   -------------------------------------------------------------------------- */
.ac-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 393 / 760;
    max-height: calc(100svh - 3.5rem);
    min-height: 30rem;
    width: 100%;
    overflow: hidden;
    background: #2c2f6e;
    color: var(--ac-white);
    text-align: center;
}
/* Gold border under the hero */
.ac-hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 0.4rem;
    background-repeat: repeat-x;
    background-size: auto 100%;
    z-index: 3;
}
.ac-hero__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
/* Soft dark-blue veil for text readability (above video, below text) */
.ac-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 60% 55% at 50% 55%, rgba(16, 20, 64, .35) 0%, rgba(16, 20, 64, 0) 100%),
        rgba(16, 20, 64, .15);
    pointer-events: none;
}
.ac-hero__video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .6s ease;
}
.ac-hero__video.is-playing { opacity: 1; }

.ac-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10vw 1.5rem 0;
}
.ac-hero__pretitle,
.ac-hero__subtitle {
    font-family: var(--ac-sans);
    font-size: 3.8vw;
    letter-spacing: 0.02em;
    text-transform: uppercase !important;
    color: var(--ac-white);
}
.ac-hero__title {
    font-family: var(--ac-serif);
    font-weight: 400;
    font-size: 10.2vw;
    line-height: 1.1;
    margin: 0.15em 0 0.2em;
    color: var(--ac-white);
}
.ac-hero__content .ac-btn {
    margin-top: 1.5rem;
    min-width: 38vw;
    min-height: 2.6rem;
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   3. Section 2 — 24 Days Advent Calendar
   -------------------------------------------------------------------------- */
.ac-s2 {
    position: relative;
    overflow: hidden;
    overflow: clip;
    padding: 3.5rem 0 4rem;
    background-color: var(--ac-cream);
    background-repeat: repeat;
    background-size: 22rem auto;
}
.ac-s2__deco {
    position: absolute;
    z-index: 0;
    width: clamp(5.5rem, 15vw, 18.5rem);
    pointer-events: none;
}
.ac-s2__deco--right { top: 15rem; right: -2.5rem;  transform: scaleX(-1); }
.ac-s2__deco--left  { bottom: 6rem; left: -2.5rem;}

.ac-s2__header,
.ac-s2__inner { position: relative; z-index: 1; }
.ac-s2__header { padding: 0 2rem; margin-bottom: 2rem; }
.ac-br-desktop { display: none; }
@media (min-width: 48em) { .ac-br-desktop { display: inline; } }

.ac-s2__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90rem;
    margin: 0 auto;
}

/* Media (image swap + badge) */
.ac-s2__media {
    position: relative;
    width: 100%;
    padding: 0;
}
/* Lavender band behind the box (mobile: on the media block) */
.ac-s2__media::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12%;
    width: 100vw;
    height: 55%;
    transform: translateX(-50%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
}
.ac-s2__swap {
    position: relative;
    display: block;
    width: 100%;
    max-width: 38rem;
    margin: -9% auto -10%;   /* trims the transparent padding of the PNGs */
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ac-s2__swap:focus-visible { outline: 2px solid var(--ac-gold); outline-offset: 4px; }
.ac-s2__img { width: 100%; transition: opacity .5s var(--ac-ease); }
.ac-s2__img--open {
    position: absolute;
    inset: 0;
    opacity: 0;
}
.ac-s2__swap[aria-pressed="true"] .ac-s2__img--open { opacity: 1; }
.ac-s2__swap[aria-pressed="true"] .ac-s2__img--closed { opacity: 0; }
@media (hover: hover) {
    .ac-s2__swap:hover .ac-s2__img--open { opacity: 1; }
    .ac-s2__swap:hover .ac-s2__img--closed { opacity: 0; }
}

/* Retail value badge */
.ac-badge {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 6.25rem;
    height: 6.25rem;
    margin-left: -3.125rem;
    border-radius: 50%;
    background: var(--ac-gold);
    color: var(--ac-white);
    box-shadow: inset 0 0 0 0.25rem var(--ac-gold), inset 0 0 0 0.35rem var(--ac-white);
    text-align: center;
    line-height: 1;
    pointer-events: none;
}
.ac-badge__value {
    font-family: var(--ac-sans);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.ac-badge__label {
    margin-top: 0.2em;
    font-family: var(--ac-sans);
    font-weight: 700;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Info column */
.ac-s2__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    max-width: 26rem;
    padding: 3rem 1.75rem 0;
    text-align: center;
}
.ac-s2__product {
    margin-top: 0.15rem;
    font-family: var(--ac-serif);
    font-weight: 700;
    font-size: 1.625rem;
    line-height: 1.15;
    color: var(--ac-gold);
}
.ac-s2__text { font-size: 0.9375rem; line-height: 1.55; }
.ac-s2__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    width: 100%;
}
.ac-s2__actions .ac-btn { width: 100%; max-width: 21.5rem; }
.ac-s2__actions .ac-btn--gold { min-height: 3.25rem; font-size: 1.25em; }
.ac-s2__actions .ac-btn--outline { display: none; }

.ac-s2__actions .ac-btn .old_price {position: relative; text-decoration: line-through; opacity: 0.75;}

/* Royal Passport promo banner */
.ac-promo {
    position: relative;
    z-index: 1;
    width: calc(100% - 2.5rem);
    max-width: 62rem;
    margin: 3rem auto 0;
    padding: 1.5rem 1.5rem 1.4rem;
    background: var(--ac-gold);
    color: var(--ac-white);
    text-align: center;
    box-shadow: inset 0 0 0 0.3rem var(--ac-gold), inset 0 0 0 0.375rem rgba(255,255,255,.7);
}
.ac-promo__text {
    font-family: var(--ac-serif);
    font-size: 1.0625rem;
    line-height: 1.4;
    color: var(--ac-white);
}
.ac-promo__terms {
    margin-top: 0.6rem !important;
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgba(255,255,255,.9);
}

/* Separator between S2 and FAQ: gold line + centered ornament */
.ac-separator {
    position: relative;
    z-index: 3;
    height: 0;
}
.ac-separator::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 0.4rem;
    transform: translateY(-50%);
    background-repeat: repeat-x;
    background-size: auto 100%;
}
.ac-separator img {
    position: absolute;
    left: 50%;
    top: 0;
    width: 9rem;
    transform: translate(-50%, -50%);
}

/* --------------------------------------------------------------------------
   4. Section 6 — FAQ
   -------------------------------------------------------------------------- */
.ac-faq {
    background: var(--ac-white);
    padding: 4rem 0 4rem;
}
.ac-faq__header { margin-bottom: 2.25rem; }
.ac-faq__list { border-top: 1px solid var(--ac-line); }
.ac-faq__item { border-bottom: 1px solid var(--ac-line); }
.ac-faq__q { margin: 0; font-size: inherit; }
.ac-faq__toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    margin: 0;
    padding: 1.4rem 1rem;
    border: 0;
    background: none;
    color: var(--ac-text);
    font-family: var(--ac-serif);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
}
.ac-faq__toggle:focus-visible { outline: 2px solid var(--ac-gold); outline-offset: -2px; }
.ac-faq__toggle:hover .ac-faq__q-text { color: var(--ac-gold); }
.ac-faq__q-text { transition: color .2s ease; }

/* + / − icon */
.ac-faq__icon {
    position: relative;
    flex: 0 0 auto;
    width: 0.8rem;
    height: 0.8rem;
}
.ac-faq__icon::before,
.ac-faq__icon::after {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 100%; height: 1px;
    background: currentColor;
    transition: transform .3s var(--ac-ease);
}
.ac-faq__icon::after { transform: rotate(90deg); }
.ac-faq__toggle[aria-expanded="true"] .ac-faq__icon::after { transform: rotate(0deg); }

/* Panel — animated with grid rows */
.ac-faq__panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .35s var(--ac-ease), visibility 0s linear .35s;
}
.ac-faq__item.is-open .ac-faq__panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows .35s var(--ac-ease), visibility 0s;
}
.ac-faq__panel-inner { overflow: hidden; min-height: 0; }
.ac-faq__a {
    padding: 0 1.25rem 1.6rem;
    font-size: 0.875rem;
    line-height: 1.55;
    text-align: center;
}

/* Product list inside the FAQ answer */
.ac-faq__products {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ac-faq__products li { padding: 0.15em 0; }

/* --------------------------------------------------------------------------
   5. Desktop  ≥ 48em
   -------------------------------------------------------------------------- */
@media (min-width: 48em) {

    .ac-title { font-size: clamp(1.75rem, 1.9vw, 2.375rem); }
    .ac-pretitle { font-size: clamp(0.6875rem, 0.66vw, 0.8125rem); }
    .ac-ornament { width: clamp(4.5rem, 4.7vw, 5.625rem); margin-bottom: 1.5rem; }
    .ac-separator::before { height: clamp(0.5rem, 0.85vw, 1rem); }
    .ac-separator img { width: clamp(10rem, 14.2vw, 17rem); }

    .ac-btn {
        min-width: clamp(13rem, 16.1vw, 19.5rem);
        min-height: clamp(3rem, 3.65vw, 4.4rem);
        font-size: clamp(1rem, 0.95vw, 1.15rem);
    }

    /* Hero */
    .ac-hero {
        aspect-ratio: 1920 / 930;
        min-height: 28rem;
        max-height: calc(100vh - 6rem);
    }
    .ac-hero::after { height: clamp(0.5rem, 0.85vw, 1rem); }
    .ac-hero__content { padding: 0 2rem; }
    .ac-hero__pretitle,
    .ac-hero__subtitle { font-size: clamp(1rem, 1.6vw, 1.95rem); }
    .ac-hero__title { font-size: clamp(3rem, 4.4vw, 5.4rem); }
    .ac-hero__content .ac-btn {
        margin-top: 1.25vw;
        min-width: 16.3vw;
        min-height: 3.65vw;
        font-size: clamp(1rem, 1.2vw, 1.45rem);
    }

    /* Section 2 */
    .ac-s2 { padding: clamp(3rem, 4.2vw, 5rem) 0 clamp(4rem, 6vw, 7rem); background-size: 36rem auto; }
    .ac-s2__header { margin-bottom: clamp(1.5rem, 2vw, 3rem); }
    .ac-s2__deco { width: clamp(7rem, 13vw, 18.5rem); }
    .ac-s2__deco--right { top: 14vw; right: -3vw; }
    .ac-s2__deco--left  { bottom: -4vw; left: -2vw; }
    .ac-s2__inner { width: 78%; }

    .ac-s2__inner {
        display: grid;
        grid-template-columns: 1.15fr 1fr;
        align-items: center;
        gap: 4vw;
        width: 82%;
    }
    /* Band behind the row on desktop: full-bleed from the centered row */
    .ac-s2__inner::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 52%;
        width: 100vw;
        height: 21.25vw;
        transform: translateX(-50%);
        background-repeat: no-repeat;
        background-size: 100% 100%;
        z-index: -1;
    }
    .ac-s2__media::before { display: none; }
    .ac-s2__media { padding: 0; }
    .ac-s2__swap { max-width: none; margin: -12% 0 -8%; }

    .ac-badge {
        top: 50%;
        left: 0;
        width: clamp(6rem, 7.8vw, 9.5rem);
        height: clamp(6rem, 7.8vw, 9.5rem);
        margin: 0;
        transform: translate(-25%, -45%);
        box-shadow: inset 0 0 0 0.3rem var(--ac-gold), inset 0 0 0 0.42rem var(--ac-white);
    }
    .ac-badge__value { font-size: clamp(1.35rem, 1.75vw, 2.1rem); }
    .ac-badge__label { font-size: clamp(0.55rem, 0.6vw, 0.75rem); }

    .ac-s2__info {
        max-width: 34rem;
        width: 100%;
        margin: 0 auto;
        padding: 0;
        gap: clamp(1.75rem, 2.2vw, 2.75rem);
    }
    .ac-s2__text    { order: 2; font-size: clamp(0.9375rem, 1.04vw, 1.125rem); }
    .ac-s2__heading { order: 1; }
    .ac-s2__actions { order: 3; gap: clamp(1rem, 1.5vw, 1.75rem); }
    .ac-s2__product { font-size: clamp(1.375rem, 1.5vw, 1.8rem); }
    .ac-s2__actions .ac-btn { width: auto; max-width: none; }
    .ac-s2__actions .ac-btn--outline { display: inline-flex; }
    .ac-s2__actions .ac-btn--gold { min-height: clamp(3rem, 3.65vw, 4.4rem); font-size: clamp(1rem, 0.95vw, 1.15rem); }

    /* Promo banner */
    .ac-promo { margin-top: clamp(2.5rem, 4vw, 4.5rem); padding: clamp(1.5rem, 2vw, 2.25rem) clamp(2rem, 4vw, 4rem); width: 78%; }
    .ac-promo__text { font-size: clamp(1.125rem, 1.25vw, 1.5rem); }
    .ac-promo__terms { font-size: clamp(0.8125rem, 0.75vw, 0.9375rem); }

    /* FAQ */
    .ac-faq__products { columns: 3; column-gap: 3rem; }
    .ac-faq__products li { break-inside: avoid; }
    .ac-faq { padding: clamp(4rem, 5vw, 6rem) 0 clamp(4rem, 6vw, 7rem); }
    /*.ac-faq__inner { padding: 0 3.125vw; }*/
    .ac-faq__header { margin-bottom: clamp(2rem, 3vw, 3.5rem); }
    .ac-faq__toggle {
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
        padding: clamp(1rem, 1.25vw, 1.5rem) 0;
        font-size: clamp(1.125rem, 1.2vw, 1.5rem);
        text-align: left;
    }
    .ac-faq__a {
        padding: 0 4rem clamp(1.25rem, 1.6vw, 2rem) 0;
        font-size: clamp(0.875rem, 0.85vw, 1.0625rem);
        text-align: left;
    }
}

/* --------------------------------------------------------------------------
   6. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .ac-js .ac-reveal { opacity: 1; transform: none; transition: none; }
    .ac-s2__img, .ac-faq__panel, .ac-faq__icon::after, /* Soft dark-blue veil for text readability (above video, below text) */
.ac-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 60% 55% at 50% 55%, rgba(16, 20, 64, .35) 0%, rgba(16, 20, 64, 0) 100%),
        rgba(16, 20, 64, .15);
    pointer-events: none;
}
.ac-hero__video { transition: none; }
}
