/* ============================================================
   HEIRLOOM GOLD — include/christmas/hg_xmas.css
   The Christmas page (christmas/index.php):
   "The Christmas Edit" rows (hg_xmas_edit.inc) and the page. Mobile first.
   Tokens come from homepage.css / heirloom.css.
   ============================================================ */

/* The homepage banner carousel moved to include/homeHero.css (2026-11-24);
   its panes are edited in finmixback/homeHero.php. */


/* ── THE CHRISTMAS EDIT ──────────────────────────────────── */
.hgx-edit {
    scroll-margin-top: 80px;               /* clear of the sticky header */
    background: var(--chalk, #f5f5f0);
    padding:    56px 0 40px;
    border-bottom: 1px solid var(--rule, #e4e4de);
}
.hgx-edit-inner {
    max-width: 1240px;
    margin:    0 auto;
}
.hgx-edit-hd {
    text-align: center;
    padding:    0 20px;
    margin-bottom: 36px;
}
.hgx-edit-eyebrow {
    display:        block;
    font-family:    var(--ff-ui);
    font-size:      10px;
    letter-spacing: .32em;
    text-transform: uppercase;
    color:          var(--red, #b02a20);
    margin-bottom:  14px;
}
.hgx-edit-title {
    font-family:    var(--ff-display);
    font-weight:    400;
    font-size:      clamp(28px, 7.5vw, 46px);
    letter-spacing: .06em;
    line-height:    1.1;
    color:          var(--carbon, #0f0f0f);
}
.hgx-edit-rule {
    position:   relative;
    width:      150px;
    height:     1px;
    margin:     20px auto 16px;
    background: linear-gradient(90deg, transparent, #c9a96e 30%, #c9a96e 70%, transparent);
}
.hgx-edit-rule span {
    position:   absolute;
    left:       50%;
    top:        50%;
    transform:  translate(-50%, -52%);
    padding:    0 10px;
    background: var(--chalk, #f5f5f0);
    color:      #b8924f;
    font-size:  12px;
    line-height: 1;
}
.hgx-edit-sub {
    font-family: var(--ff-editorial);
    font-style:  italic;
    font-weight: 300;
    font-size:   clamp(17px, 4.6vw, 21px);
    color:       var(--mid, #666);
}

/* One row per category */
.hgx-row { margin-bottom: 40px; }
.hgx-row:last-child { margin-bottom: 0; }
.hgx-row-hd {
    display:         flex;
    align-items:     baseline;
    justify-content: space-between;
    gap:             16px;
    padding:         0 20px;
    margin-bottom:   14px;
}
.hgx-row-title {
    font-family:    var(--ff-display);
    font-weight:    400;
    font-size:      clamp(17px, 4.8vw, 22px);
    letter-spacing: .08em;
    text-transform: uppercase;
    color:          var(--carbon, #0f0f0f);
}
.hgx-row-title span { color: #a8823f; }
.hgx-row-all {
    flex-shrink:     0;
    font-family:     var(--ff-ui);
    font-size:       10px;
    letter-spacing:  .2em;
    text-transform:  uppercase;
    color:           var(--carbon, #0f0f0f);
    text-decoration: none;
    border-bottom:   1px solid #c9a96e;
    padding:         6px 0 3px;
}
.hgx-row-all:hover { color: var(--red, #b02a20); border-color: var(--red, #b02a20); }

/* Phones: a row you swipe, the next card peeking in. */
.hgx-track {
    list-style:      none;
    margin:          0;
    padding:         2px 20px 14px;
    display:         grid;
    grid-auto-flow:  column;
    grid-auto-columns: 68%;
    gap:             12px;
    overflow-x:      auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding:  0 20px;
    scrollbar-width: thin;
    scrollbar-color: #c9a96e transparent;
    -webkit-overflow-scrolling: touch;
}
.hgx-cell { scroll-snap-align: start; display: flex; min-width: 0; }

.hgx-card {
    position:        relative;
    display:         flex;
    flex-direction:  column;
    width:           100%;
    background:      var(--surface, #fff);
    border:          1px solid var(--rule, #e4e4de);
    text-decoration: none;
    color:           inherit;
    transition:      border-color .2s, box-shadow .25s, transform .25s;
}
.hgx-card:hover {
    border-color: #c9a96e;
    box-shadow:   0 14px 30px -18px rgba(20,19,15,.45);
    transform:    translateY(-2px);
}
.hgx-card:focus-visible { outline: 2px solid #c9a96e; outline-offset: 2px; }
.hgx-card-img {
    position:     relative;
    display:      block;
    aspect-ratio: 1 / 1;
    background:   #efece5;
    overflow:     hidden;
}
.hgx-card-img img,
.hgx-card-img picture {
    display:    block;
    width:      100%;
    height:     100%;
    object-fit: cover;
}
.hgx-img-none {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #c9a96e; font-size: 28px;
}
.hgx-rank {
    position:       absolute;
    top:            10px;
    left:           10px;
    z-index:        2;
    font-family:    var(--ff-display);
    font-size:      11px;
    letter-spacing: .12em;
    color:          var(--carbon, #0f0f0f);
    background:     rgba(255,255,255,.94);
    padding:        5px 8px 4px;
    border-bottom:  1px solid #c9a96e;
}
.hgx-held {
    position:       absolute;
    top:            10px;
    right:          10px;
    z-index:        2;
    font-family:    var(--ff-ui);
    font-size:      9px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color:          #fff;
    background:     var(--red, #b02a20);
    padding:        5px 7px 4px;
}
.hgx-card-body {
    display:        flex;
    flex-direction: column;
    gap:            6px;
    padding:        12px 14px 16px;
    flex:           1;
}
.hgx-card-title {
    font-family: var(--ff-editorial);
    font-size:   17px;
    line-height: 1.25;
    color:       var(--ink, #1a1a1a);
    display:     -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow:    hidden;
}
.hgx-card-price {
    margin-top:     auto;
    font-family:    var(--ff-ui);
    font-size:      14px;
    letter-spacing: .04em;
    color:          var(--carbon, #0f0f0f);
}

/* "Shop all …" tile, beside the fifth piece */
.hgx-all {
    display:         flex;
    width:           100%;
    min-height:      100%;
    padding:         8px;
    background:      #14130f;
    text-decoration: none;
    transition:      background .25s;
}
.hgx-all-frame {
    flex:            1;
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    justify-content: center;
    gap:             10px;
    border:          1px solid rgba(207,170,92,.55);
    padding:         24px 12px;
    text-align:      center;
    transition:      border-color .25s;
}
.hgx-all-kicker {
    font-family:    var(--ff-ui);
    font-size:      10px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color:          #cfaa5c;
}
.hgx-all-name {
    font-family:    var(--ff-display);
    font-size:      22px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color:          #efe1be;
}
.hgx-all-arrow {
    position:   relative;
    width:      44px;
    height:     1px;
    background: #cfaa5c;
    margin:     4px 0;
    transition: width .25s;
}
.hgx-all-arrow::after {
    content:      '';
    position:     absolute;
    right:        0;
    top:          -3px;
    width:        7px;
    height:       7px;
    border-top:   1px solid #cfaa5c;
    border-right: 1px solid #cfaa5c;
    transform:    rotate(45deg);
}
.hgx-all-count {
    font-family: var(--ff-editorial);
    font-style:  italic;
    font-size:   15px;
    color:       #b3a78e;
}
.hgx-all:hover .hgx-all-frame { border-color: #cfaa5c; }
.hgx-all:hover .hgx-all-arrow { width: 60px; }
.hgx-all:focus-visible { outline: 2px solid #c9a96e; outline-offset: 2px; }

/* Larger phones and small tablets */
@media (min-width: 560px) {
    .hgx-track { grid-auto-columns: 42%; }
}
@media (min-width: 768px) {
    .hgx-edit { padding: 80px 0 64px; scroll-margin-top: 130px; }
    .hgx-edit-hd { margin-bottom: 48px; }
    .hgx-row { margin-bottom: 52px; }
    .hgx-row-hd, .hgx-track { padding-left: 40px; padding-right: 40px; }
    .hgx-track { grid-auto-columns: 28%; gap: 16px; scroll-padding: 0 40px; }
}
/* Desktop: five pieces and the "Shop all" tile on one line, nothing to swipe. */
@media (min-width: 1100px) {
    .hgx-track {
        grid-auto-flow:   initial;
        grid-template-columns: repeat(6, 1fr);
        grid-auto-columns: initial;
        overflow:         visible;
        gap:              18px;
    }
    .hgx-row-all { visibility: hidden; }         /* the tile does this job here */
}
@media (prefers-reduced-motion: reduce) {
    .hgx-card, .hgx-card:hover { transition: none; transform: none; }
}


/* ── THE CHRISTMAS PAGE (christmas/index.php) ────────────── */
.hgx-page-hd {
    position:      relative;
    overflow:      hidden;
    /* the tree and gifts photograph (already warm-graded) under a carbon
       filter, deepest behind the words */
    background:
        radial-gradient(ellipse 70% 60% at 50% 48%, rgba(20,19,15,.45), rgba(20,19,15,0) 75%),
        linear-gradient(to bottom, rgba(20,19,15,.55), rgba(20,19,15,.62) 55%, rgba(20,19,15,.88)),
        url(/img/christmas/hero-mobile.webp) 50% 70% / cover no-repeat,
        #14130f;
    border-bottom: 1px solid rgba(207,170,92,.35);
    padding:       48px 20px 40px;
    text-align:    center;
}
.hgx-page-title, .hgx-page-intro, .hgx-page-eyebrow { text-shadow: 0 1px 14px rgba(20,19,15,.7); }
@media (min-width: 768px) {
    .hgx-page-hd { background:
        radial-gradient(ellipse 55% 65% at 50% 48%, rgba(20,19,15,.5), rgba(20,19,15,0) 75%),
        linear-gradient(to bottom, rgba(20,19,15,.5), rgba(20,19,15,.55) 55%, rgba(20,19,15,.85)),
        url(/img/christmas/hero-desktop-1200.webp) 50% 60% / cover no-repeat,
        #14130f; }
}
@media (min-width: 1300px) {
    .hgx-page-hd { background-image:
        radial-gradient(ellipse 55% 65% at 50% 48%, rgba(20,19,15,.5), rgba(20,19,15,0) 75%),
        linear-gradient(to bottom, rgba(20,19,15,.5), rgba(20,19,15,.55) 55%, rgba(20,19,15,.85)),
        url(/img/christmas/hero-desktop.webp); }
}
/* candle-warm light rising from the foot of the header */
.hgx-page-hd::before {
    content:    '';
    position:   absolute;
    inset:      0;
    background:
        radial-gradient(60% 80% at 50% 115%, rgba(255,176,82,.16), transparent 70%),
        radial-gradient(40% 50% at 50% 0%, rgba(207,170,92,.08), transparent 70%);
    pointer-events: none;
}
.hgx-page-hd-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hgx-page-eyebrow {
    display:        block;
    font-family:    var(--ff-ui);
    font-size:      10px;
    letter-spacing: .3em;
    text-transform: uppercase;
    color:          #cfaa5c;
    margin-bottom:  18px;
}
.hgx-page-eyebrow span { font-size: 8px; margin: 0 .5em; vertical-align: 1px; }
.hgx-page-title {
    font-family:    var(--ff-display);
    font-weight:    400;
    font-size:      clamp(30px, 8vw, 60px);
    line-height:    1.12;
    letter-spacing: .05em;
    color:          #f3ead6;
}
.hgx-page-rule {
    width:      64px;
    height:     1px;
    margin:     22px auto;
    background: linear-gradient(90deg, transparent, #cfaa5c, transparent);
}
.hgx-page-intro {
    font-family: var(--ff-editorial);
    font-style:  italic;
    font-weight: 300;
    font-size:   clamp(17px, 4.6vw, 21px);
    line-height: 1.6;
    color:       rgba(243,234,214,.82);
}
.hgx-assure {
    list-style:      none;
    margin:          26px 0 0;
    padding:         0;
    display:         flex;
    flex-wrap:       wrap;
    justify-content: center;
    gap:             8px 22px;
    font-family:     var(--ff-ui);
    font-size:       10px;
    letter-spacing:  .18em;
    text-transform:  uppercase;
    color:           #d9cfb6;
}
.hgx-assure li { display: flex; align-items: center; gap: 8px; }
.hgx-assure li::before { content: '\2726'; color: #cfaa5c; font-size: 8px; }
.hgx-jump {
    display:         flex;
    flex-wrap:       wrap;
    justify-content: center;
    gap:             8px;
    margin-top:      30px;
}
.hgx-jump a {
    font-family:     var(--ff-ui);
    font-size:       10px;
    letter-spacing:  .2em;
    text-transform:  uppercase;
    color:           #efe1be;
    text-decoration: none;
    border:          1px solid rgba(207,170,92,.45);
    padding:         11px 14px 10px;
    min-height:      40px;
    display:         inline-flex;
    align-items:     center;
    transition:      background .2s, color .2s, border-color .2s;
}
.hgx-jump a:hover,
.hgx-jump a:focus-visible { background: #cfaa5c; border-color: #cfaa5c; color: #14130f; }

/* On this page the rows are reached from the jump links: keep them clear
   of the sticky header. */
.hgx-page .hgx-row { scroll-margin-top: 120px; }
.hgx-page .hgx-edit { border-bottom: 0; }
.hgx-empty {
    text-align:  center;
    font-family: var(--ff-editorial);
    font-size:   19px;
    color:       var(--mid, #666);
    padding:     0 20px;
}
.hgx-empty a { color: var(--carbon, #0f0f0f); }

/* Gifts by budget */
.hgx-budget {
    background: var(--surface, #fff);
    border-top: 1px solid var(--rule, #e4e4de);
    padding:    52px 20px;
    text-align: center;
}
.hgx-budget-inner { max-width: 1000px; margin: 0 auto; }
.hgx-budget-title {
    font-family:    var(--ff-display);
    font-weight:    400;
    font-size:      clamp(22px, 6vw, 34px);
    letter-spacing: .05em;
    color:          var(--carbon, #0f0f0f);
    margin-bottom:  28px;
}
.hgx-budget-grid {
    list-style: none;
    margin:     0;
    padding:    0;
    display:    grid;
    grid-template-columns: repeat(2, 1fr);
    gap:        12px;
}
.hgx-budget-grid a {
    display:         flex;
    flex-direction:  column;
    align-items:     center;
    gap:             6px;
    padding:         26px 10px;
    background:      var(--chalk, #f5f5f0);
    border:          1px solid var(--rule, #e4e4de);
    text-decoration: none;
    font-family:     var(--ff-display);
    font-size:       clamp(22px, 6vw, 30px);
    color:           var(--carbon, #0f0f0f);
    transition:      border-color .2s, background .2s;
}
.hgx-budget-grid a span {
    font-family:    var(--ff-ui);
    font-size:      10px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color:          #a8823f;
}
.hgx-budget-grid a:hover { border-color: #c9a96e; background: #fff; }

/* Help choosing */
.hgx-help {
    background: #14130f;
    padding:    56px 20px;
    text-align: center;
    color:      rgba(243,234,214,.82);
}
.hgx-help-inner { max-width: 620px; margin: 0 auto; }
.hgx-help-title {
    font-family:    var(--ff-display);
    font-weight:    400;
    font-size:      clamp(22px, 6vw, 34px);
    letter-spacing: .05em;
    color:          #f3ead6;
    margin-bottom:  16px;
}
.hgx-help p {
    font-family: var(--ff-editorial);
    font-size:   19px;
    line-height: 1.6;
    margin-bottom: 26px;
}
.hgx-help-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.hgx-btn {
    display:         inline-flex;
    justify-content: center;
    width:           100%;
    max-width:       280px;
    padding:         15px 28px;
    font-family:     var(--ff-ui);
    font-size:       11px;
    letter-spacing:  .2em;
    text-transform:  uppercase;
    text-decoration: none;
    color:           #efe1be;
    border:          1px solid rgba(239,225,190,.45);
    transition:      background .2s, color .2s, border-color .2s;
}
.hgx-btn:hover { border-color: #cfaa5c; color: #cfaa5c; }
.hgx-btn--gold { background: #cfaa5c; border-color: #cfaa5c; color: #14130f; }
.hgx-btn--gold:hover { background: #efe1be; border-color: #efe1be; color: #14130f; }

@media (min-width: 768px) {
    .hgx-page-hd { padding: 80px 40px 64px; }
    .hgx-budget { padding: 72px 40px; }
    .hgx-budget-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .hgx-help { padding: 80px 40px; }
    .hgx-help-actions { flex-direction: row; justify-content: center; }
    .hgx-btn { width: auto; }
    .hgx-page .hgx-row { scroll-margin-top: 210px; }
}
@media (max-width: 479px) {
    .hgx-page-eyebrow span { display: none; }   /* keeps the line from wrapping */
}
