/*
Theme Name:        Aged Reserve
Theme URI:         https://warely.ai
Author:            Warely Corp
Description:       Theme for the Whisky Journey whiskey event platform. The Afterglow palette — cream, plum and orange — set entirely in Scotch Display.
Version:           0.1.0
Requires at least: 6.4
Tested up to:      7.0
Requires PHP:      8.2
License:           GPL-2.0-or-later
Text Domain:       aged-reserve
*/

/* ---- self-hosted fonts ----
   Scotch Display is the whole-site face (client brief). Six local subsets, so
   there is no third-party font request and no separate UI typeface to load. */

@font-face {
    font-family: "Scotch Display";
    src: url("assets/fonts/scotch-display-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Scotch Display";
    src: url("assets/fonts/scotch-display-400i.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Scotch Display";
    src: url("assets/fonts/scotch-display-500.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Scotch Display";
    src: url("assets/fonts/scotch-display-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Scotch Display";
    src: url("assets/fonts/scotch-display-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Scotch Display";
    src: url("assets/fonts/scotch-display-800.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ---- tokens ---- */

:root {
    /* The Afterglow — Whisky Journey 2026 light palette.
       Plum #550b59 + orange #f78f2c mains; lavender/sky/cream pastels.
       Semantic map from the old dark ladder: surface = page bg (now cream),
       cream/primary = accent text (now plum, legible on light), cta = fill (orange). */
    --ps-surface-lowest: #3f0842;   /* deepest: plum bands / footer (light text on top) */
    --ps-surface: #fcead2;          /* page background: cream */
    --ps-surface-low: #f6e7f1;      /* alt sections: soft lavender-cream */
    --ps-container: #ffffff;
    --ps-card: #ffffff;
    --ps-container-high: #f7eef7;
    --ps-container-highest: #efe0ea;
    /* Text */
    --ps-text: #2e1f30;
    --ps-text-soft: #6d5f70;
    --ps-cream: #550b59;            /* heading / accent text on light: plum */
    --ps-data: #6d5f70;
    /* Accents */
    --ps-primary: #550b59;          /* links, icons, accent text: plum (legible on cream) */
    --ps-secondary: #7a3d6f;
    --ps-cta: #f78f2c;              /* button / accent fill: orange */
    --ps-on-cta: #3f0842;           /* text on orange fill: deep plum */
    --ps-gold: #c26a10;             /* warm accent (orange-deep) for small text/borders */
    --ps-gold-border: rgba(85, 11, 89, 0.18);  /* soft plum hairline */
    --ps-green-dot: #5f9e46;
    /* Lavender / sky pastels (The Afterglow) */
    --ps-lav: #e2cafc;
    --ps-sky: #c0e3ff;
    /* Shape & type */
    --ps-radius: 8px;
    /* One face for display and UI — the fallbacks are serifs so a swap-in
       fallback keeps roughly the same rhythm as Scotch Display. */
    --ps-font-display: "Scotch Display", Georgia, "Times New Roman", serif;
    --ps-font-ui: "Scotch Display", Georgia, "Times New Roman", serif;
}

/* ---- base ---- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ps-surface);
    color: var(--ps-text);
    font-family: var(--ps-font-ui);
    /* Scotch Display's x-height is 0.498em against Inter's 0.727em, so like-for-like
       px sizes read a third smaller. Lowercase copy is set ~12% larger to compensate;
       uppercase labels need almost none (cap heights are 0.700 vs 0.727). */
    font-size: 18px;
    line-height: 1.6;
    /* Scotch Display is a high-contrast serif: its lighter weights read too thin
       for body copy, so Bold is the base at the client's request.
       Grayscale antialiasing thinned the strokes further, so it is left off. */
    font-weight: 700;
}

h1, h2, h3, h4 {
    font-family: var(--ps-font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ps-cream);
    margin: 0 0 0.5em;
}

a {
    color: var(--ps-primary);
}

a:hover {
    color: var(--ps-cta);
}

/* Form controls do not inherit the document face, so WooCommerce's own cart and
   checkout markup would otherwise render in the UA sans next to a serif site.
   Family only — sizes stay with each component so nothing reflows. */
input,
select,
textarea,
button,
optgroup {
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.ar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1024px) {
    .ar-container {
        padding: 0 64px;
    }
}

/* ---- shared utilities (Aged Reserve system) ---- */

.ar-label-caps {
    font-family: var(--ps-font-ui);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ar-data {
    font-family: var(--ps-font-ui);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.ar-glass {
    background: rgba(255, 255, 255, 0.74);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--ps-gold-border);
}

.ar-glow-hover {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ar-glow-hover:hover {
    border-color: var(--ps-gold);
    box-shadow: 0 8px 24px rgba(85, 11, 89, 0.14);
}

/* ---- header ---- */

.ar-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(252, 234, 210, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--ps-gold-border);
}

.ar-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 80px;
    padding: 14px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.ar-brand {
    font-family: var(--ps-font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--ps-primary);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.ar-brand:hover {
    color: var(--ps-cta);
}

/* Links across to the main marketing site. The header is brand | nav | actions,
   so the nav takes the middle and the row still collapses sensibly on a phone. */
.ar-nav__list {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ar-nav__link {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ps-primary);
    text-decoration: none;
    white-space: nowrap;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.ar-nav__link:hover,
.ar-nav__link:focus-visible {
    color: var(--ps-gold);
    border-bottom-color: var(--ps-cta);
}

/* Below the desktop breakpoint the nav drops under the logo and centres, rather
   than squeezing the logo or pushing Get Tickets off the screen. */
@media (max-width: 899px) {
    .ar-header__inner {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 6px;
    }

    .ar-nav {
        order: 3;
        width: 100%;
    }

    .ar-nav__list {
        justify-content: center;
        gap: 18px;
    }

    .ar-nav__link {
        font-size: 14px;
    }
}

.ar-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ar-cart-link {
    font-size: 16px;
    color: var(--ps-text-soft);
    text-decoration: none;
}

/* ---- buttons ---- */

.ar-btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 4px;
    background: var(--ps-cta);
    color: var(--ps-on-cta);
    font-family: var(--ps-font-ui);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ar-btn:hover {
    background: var(--ps-primary);
    color: var(--ps-on-cta);
}

.ar-btn:active {
    transform: scale(0.98);
}

.ar-btn--ghost {
    background: transparent;
    color: var(--ps-cream);
    border-color: var(--ps-gold);
}

.ar-btn--ghost:hover {
    background: var(--ps-container-highest);
    color: var(--ps-cream);
}

.ar-btn--text {
    background: transparent;
    border: none;
    color: var(--ps-cream);
    padding: 8px 4px;
}

.ar-btn--text:hover {
    background: transparent;
    color: var(--ps-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ar-btn--caps {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 22px;
    border-radius: 2px;
}

/* ---- hero ----
   Atmosphere layer: a real photograph (assets/images/hero.{webp,jpg,png},
   auto-detected in front-page.php) takes over via .ar-hero--has-image;
   until the client supplies one, layered amber "bokeh" gradients stand in. */

.ar-hero {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    display: flex;
    align-items: center;
    padding: 96px 0 88px;
    text-align: center;
    color: #fff;
    /* Tight shadow for the high-frequency crowd detail, wide one for the glow. */
    text-shadow: 0 1px 3px rgba(20, 4, 22, 0.5), 0 2px 14px rgba(20, 4, 22, 0.6);
    background:
        radial-gradient(ellipse 90% 70% at 50% 0%, rgba(247, 143, 44, 0.30), transparent 70%),
        linear-gradient(160deg, #7a1f6a 0%, #550b59 55%, #3f0842 100%);
}

@media (min-width: 768px) {
    .ar-hero {
        min-height: 600px;
    }
}

.ar-hero--has-image {
    background-image: var(--ar-hero-image);
    background-size: cover;
    background-position: center;
}

/* Afterglow scrim, retuned for the crowd photo: busy and mid-bright edge to edge
   (white shirts, lit faces), so one flat wash either loses the white text or kills
   the photograph. Three stacked plum layers instead — the centred radial does the
   work directly behind the text block, the vertical gradient anchors the top and
   bottom bands, and a thin flat wash sets the floor. Effective opacity lands at
   0.79 behind the text and 0.55 at the side edges, so the faces and warm hall
   lighting still read as a photo. Measured against the actual image, the weakest
   text row (the peach eyebrow over a lit booth banner) clears 4.9:1. */
.ar-hero--has-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 82% 92% at 50% 56%, rgba(45, 8, 48, 0.54) 0%, rgba(45, 8, 48, 0.3) 58%, rgba(45, 8, 48, 0) 100%),
        linear-gradient(180deg, rgba(43, 6, 46, 0.48) 0%, rgba(45, 8, 48, 0.34) 42%, rgba(45, 8, 48, 0.44) 72%, rgba(63, 8, 66, 0.6) 100%),
        linear-gradient(rgba(45, 8, 48, 0.26), rgba(45, 8, 48, 0.26));
    z-index: 1;
}

.ar-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.ar-hero__eyebrow {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ps-primary);
}

.ar-hero__title {
    font-size: clamp(36px, 5.5vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 16px;
}

.ar-hero__title-line {
    display: block;
}

.ar-hero__title-accent {
    display: block;
    color: var(--ps-primary);
}

/* Left at 18px: the venue string is admin-supplied and 19px tips it into a wrap
   on a phone. The scrim and text-shadow carry legibility for these short lines. */
.ar-hero__meta {
    margin: 0 0 4px;
    font-size: 18px;
    color: var(--ps-text-soft);
}

.ar-hero__lede {
    max-width: 560px;
    margin: 20px auto 32px;
    font-size: 19px;
    line-height: 1.6;
    color: var(--ps-text-soft);
}

.ar-hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- countdown ---- */

.ar-countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px;
    max-width: 560px;
    margin: 0 auto;
    padding: 28px 32px;
    border-radius: var(--ps-radius);
}

.ar-countdown__cell {
    text-align: center;
    min-width: 64px;
}

.ar-countdown__value {
    display: block;
    font-family: var(--ps-font-display);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: var(--ps-primary);
    /* Scotch Display ships no tabular figures and its digits are proportional
       (the "1" is ~40% narrower than the "0"), so the clock would visibly jump
       every tick. 1ch is the "0" advance — the widest digit — so reserving 2ch
       pins the two-digit units to a constant box. tabular-nums is kept for any
       fallback face that does support it. */
    font-variant-numeric: tabular-nums;
    min-width: 2ch;
    text-align: center;
}

.ar-countdown__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ps-text-soft);
}

/* ---- sections ---- */

.ar-section {
    padding: 48px 0;
}

@media (min-width: 768px) {
    .ar-section {
        padding: 80px 0;
    }
}

.ar-section--alt {
    background: var(--ps-surface-low);
    border-top: 1px solid var(--ps-gold-border);
    border-bottom: 1px solid var(--ps-gold-border);
}

.ar-section__head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 44px;
}

.ar-section__title {
    font-size: clamp(28px, 4.5vw, 40px);
    letter-spacing: -0.02em;
}

.ar-section__sub {
    color: var(--ps-text-soft);
}

/* ---- bento details (2:1 asymmetric) ---- */

.ar-bento {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

@media (max-width: 767px) {
    .ar-bento {
        grid-template-columns: 1fr;
    }
}

.ar-bento__card {
    background: var(--ps-card);
    border: 1px solid var(--ps-gold-border);
    border-radius: var(--ps-radius);
    padding: 32px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ar-bento__card:hover {
    border-color: var(--ps-gold);
    box-shadow: 0 8px 24px rgba(85, 11, 89, 0.14);
}

.ar-bento__icon {
    color: var(--ps-primary);
    margin-bottom: 12px;
}

.ar-bento__narrow {
    text-align: center;
}

.ar-bento__narrow .ar-bento__icon {
    color: var(--ps-secondary);
}

.ar-bento__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    margin-bottom: 12px;
}

.ar-bento__narrow .ar-bento__title {
    justify-content: center;
}

.ar-bento__body {
    margin: 0 0 20px;
    color: var(--ps-text-soft);
}

.ar-bento__narrow .ar-bento__body {
    margin-bottom: 0;
}

.ar-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ar-chip-outline {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid rgba(184, 134, 11, 0.5);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--ps-text-soft);
}

/* ---- status (dot + caps text; mirrors the plugin's .ps-status) ---- */

.ar-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ps-cream);
}

.ar-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dot, var(--ps-text-soft));
    flex: none;
}

.ar-status--ok {
    --dot: var(--ps-green-dot);
}

.ar-status--off {
    --dot: var(--ps-text-soft);
    color: var(--ps-text-soft);
}

/* ---- ticket tiers ---- */

.ar-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
}

.ar-tier {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--ps-card);
    border: 1px solid var(--ps-gold-border);
    border-radius: var(--ps-radius);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ar-tier:hover {
    border-color: var(--ps-gold);
    box-shadow: 0 8px 24px rgba(85, 11, 89, 0.14);
}

.ar-tier--featured {
    border-color: var(--ps-cta);
    box-shadow: 0 0 40px rgba(212, 136, 6, 0.15);
}

.ar-tier--featured::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ps-cta);
}

.ar-tier__body {
    padding: 32px 28px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ar-tier__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.ar-tier__name {
    font-size: 24px;
    margin-bottom: 4px;
}

.ar-tier--featured .ar-tier__name {
    color: var(--ps-primary);
}

.ar-tier__subtitle {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--ps-secondary);
}

.ar-tier__price {
    font-family: var(--ps-font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--ps-text);
    white-space: nowrap;
}

.ar-tier__features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.ar-tier__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 16px;
    color: var(--ps-text-soft);
}

.ar-tier__features svg {
    flex: none;
    margin-top: 2px;
    color: var(--ps-primary);
}

.ar-tier__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 28px;
    background: var(--ps-container);
    border-top: 1px solid rgba(82, 68, 53, 0.3);
}

.ar-tier__footer .ar-btn.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ---- how it works ---- */

.ar-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    counter-reset: ar-step;
}

.ar-step {
    background: var(--ps-card);
    border: 1px solid var(--ps-gold-border);
    border-radius: var(--ps-radius);
    padding: 28px 24px;
    counter-increment: ar-step;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ar-step:hover {
    border-color: var(--ps-gold);
    box-shadow: 0 8px 24px rgba(85, 11, 89, 0.14);
}

.ar-step::before {
    content: counter(ar-step, decimal-leading-zero);
    display: block;
    font-family: var(--ps-font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--ps-gold);
    margin-bottom: 10px;
}

.ar-step h3 {
    font-size: 20px;
}

.ar-step p {
    margin: 0;
    font-size: 16px;
    color: var(--ps-text-soft);
}

/* ---- merchants ---- */

.ar-merchants {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.ar-merchant {
    padding: 14px 12px;
    background: var(--ps-card);
    border: 1px solid rgba(184, 134, 11, 0.18);
    border-radius: 4px;
    text-align: center;
    font-size: 15px;
    color: var(--ps-text-soft);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ar-merchant:hover {
    border-color: var(--ps-gold);
    box-shadow: 0 8px 24px rgba(85, 11, 89, 0.14);
}

/* ---- footer ---- */

.ar-footer {
    border-top: 1px solid var(--ps-gold-border);
    padding: 40px 0;
    color: var(--ps-text-soft);
    font-size: 15px;
}

.ar-footer__row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

@media (min-width: 768px) {
    .ar-footer__row {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.ar-footer .ar-brand {
    display: block;
}

.ar-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ar-footer__links a {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ps-text-soft);
    text-decoration: none;
}

.ar-footer__links a:hover {
    color: var(--ps-primary);
}

.ar-footer__copyright {
    text-align: center;
}

@media (min-width: 768px) {
    .ar-footer__copyright {
        text-align: right;
    }
}

/* ---- generic content / WooCommerce pages ---- */

.ar-content {
    padding: 48px 0 80px;
}

.ar-content__card {
    max-width: 860px;
    margin: 0 auto;
    background: var(--ps-card);
    color: #2e1f30;
    border: 1px solid var(--ps-gold-border);
    border-radius: var(--ps-radius);
    padding: clamp(20px, 4vw, 44px);
}

.ar-content__card h1,
.ar-content__card h2,
.ar-content__card h3 {
    color: #1a1a1b;
}

.ar-content__card a {
    color: var(--ps-primary);
}

.ar-content__title {
    text-align: center;
    margin-bottom: 28px;
}

/* Woo notices inherit the light card */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: #fff;
    color: #1a1a1b;
    border-left: 4px solid var(--ps-cta);
    padding: 12px 16px;
    list-style: none;
}

/* ---- age gate ---- */

.ar-agegate {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 10, 11, 0.94);
    backdrop-filter: blur(6px);
}

.ar-agegate[hidden] {
    display: none;
}

.ar-agegate__panel {
    max-width: 420px;
    background: var(--ps-container);
    border: 1px solid var(--ps-gold-border);
    border-radius: var(--ps-radius);
    padding: 36px 30px;
    text-align: center;
}

.ar-agegate__panel h2 {
    font-size: 26px;
}

.ar-agegate__panel p {
    color: var(--ps-text-soft);
    font-size: 16px;
}

.ar-agegate__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 22px;
}

/* ---- plugin app pages inherit the dark shell ---- */

.ps-app {
    min-height: 60vh;
}

/* ---- reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---- ticket tier: quantity selector + buy ---- */

.ar-tier__buy {
    display: flex;
    /* Bottom-flush so the Buy button sits on the number input, not on its caption. */
    align-items: flex-end;
    gap: 10px;
}

.ar-qty {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.ar-qty__label {
    font-family: var(--ps-font-ui);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ps-text-soft);
}

.ar-qty__input {
    width: 62px;
    padding: 9px 10px;
    background: var(--ps-surface);
    color: var(--ps-cream);
    border: 1px solid var(--ps-gold-border);
    border-radius: 4px;
    font-family: var(--ps-font-ui);
    font-size: 16px;
    text-align: center;
    -moz-appearance: textfield;
}

/* The quantity block is two rows tall now, so bottom-align the footer row and
   lift the status pill by the input's own vertical padding (9px + 1px border) —
   pill, number and button then read as one row. On a narrow card the buy group
   drops to its own line rather than letting the button shrink and break "Buy
   ticket" over two lines. */
.ar-tier__footer {
    align-items: flex-end;
    flex-wrap: wrap;
    row-gap: 14px;
}

.ar-tier__footer .ar-status {
    margin-bottom: 10px;
}

.ar-tier__buy .ar-btn {
    flex: none;
}

.ar-qty__input:focus {
    outline: none;
    border-color: var(--ps-primary);
}

/* ---- brand logo slot (custom-logo fallback to Site Title text) ---- */

.ar-brand--logo {
    display: inline-flex;
    align-items: center;
}

.ar-brand--logo img,
.ar-brand .custom-logo {
    max-height: 44px;
    width: auto;
    height: auto;
    display: block;
}

.ar-footer .ar-brand--logo img,
.ar-footer .ar-brand .custom-logo {
    max-height: 36px;
}

/* ---- a11y ---- */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- The Afterglow: hero sits on a dark photo/plum ground → force light text ---- */
.ar-hero__logo {
    display: block;
    /* Doubled at the client's request. Capped against the viewport so it cannot
       overflow a phone screen at 2x. */
    height: 184px;
    max-width: 82vw;
    object-fit: contain;
    width: auto;
    margin: 0 auto 22px;
    filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.35));
}
.ar-hero__eyebrow { color: #ffd9ab; }
.ar-hero__title,
.ar-hero__title-line { color: #fff; }
.ar-hero__title-accent { color: var(--ps-cta); }
.ar-hero__meta,
.ar-hero__lede { color: rgba(255, 255, 255, 0.92); }
.ar-hero .ar-btn--ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
}
.ar-hero .ar-btn--ghost:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

/* Brand logo images in header/footer */
/* Scope to .ar-header so WooCommerce Blocks' responsive img reset (loaded only
   on cart/checkout, which tied the bare .ar-brand__logo selector on specificity
   and won on load order) can't stretch the masthead logo to full size. */
.ar-header .ar-brand__logo { display: block; height: 60px; max-height: 60px; width: auto; }
.ar-footer .ar-brand__logo { height: 60px; }

/* Primary button hover: deepen the orange (avoid plum-on-plum) */
.ar-btn:hover { background: var(--ps-gold); color: var(--ps-on-cta); }

/* Footer grounds on plum (deepest surface) with light text */
.ar-footer { background: var(--ps-surface-lowest); border-top: none; color: rgba(255, 255, 255, 0.72); }
.ar-footer .ar-footer__copyright { color: rgba(255, 255, 255, 0.55); }
.ar-footer__links a { color: rgba(255, 255, 255, 0.72); }
.ar-footer__links a:hover { color: var(--ps-cta); }
.ar-footer .ar-brand { color: #fff; }
