﻿/* Promotions: the list (/promotions) and one page per promotion (/promotions/{slug}).
   Phase 1 of the navigation redesign: live site colours, Montserrat, gold for the call to action.
   The page clears the site header with its own 52px, like every other page (see nav-v2.css). */

.pgp {
    --pgp-navy: #00263E;
    --pgp-blue: #C21E15;
    --pgp-gold: #E6BC75;
    --pgp-gold-ink: #032A44;
    --pgp-body: #3C3E41;
    --pgp-muted: #6E7075;
    --pgp-line: #DCDDDF;
    --pgp-soft: #F7F7F8;
    margin: 52px auto 0;
    padding: 24px 16px 40px;
    max-width: 1120px;
    box-sizing: border-box;
    font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--pgp-navy);
}

.pgp-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
    .pgp-head h1 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.15; color: var(--pgp-navy); font-family: inherit; }
    .pgp-head p { margin: 0; font-size: 15px; color: var(--pgp-body); }

/* One card per promotion, stacked down the page; a grid from tablet width. */
.pgp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

.pgp-card {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    border: 1px solid var(--pgp-line);
    background: #ffffff;
    overflow: hidden;
    text-decoration: none;
    color: var(--pgp-navy);
    box-shadow: 0 1px 2px rgba(0, 38, 62, .06);
    transition: box-shadow .15s ease, transform .15s ease;
}

a.pgp-card:hover { color: var(--pgp-navy); box-shadow: 0 8px 24px rgba(0, 38, 62, .14); transform: translateY(-2px); }
a.pgp-card:focus-visible { outline: 3px solid var(--pgp-gold); outline-offset: 2px; }

/* The featured artwork is 920 x 480; keep that shape so nothing is cropped. */
.pgp-card img { display: block; width: 100%; aspect-ratio: 23 / 12; object-fit: cover; background: var(--pgp-soft); }

.pgp-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
    .pgp-card-body h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--pgp-navy); font-family: inherit; }
    .pgp-card-body p { margin: 0; font-size: 14px; color: var(--pgp-body); }

.pgp-more { margin-top: auto; padding-top: 10px; min-height: 32px; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--pgp-blue); }
    .pgp-more i { font-size: 12px; }

.pgp-rg { margin: 24px 0 0; font-size: 13px; color: var(--pgp-muted); }
    .pgp-rg a { color: var(--pgp-blue); font-weight: 600; }

.pgp-empty { padding: 32px 16px; border: 1px dashed #93959A; border-radius: 14px; text-align: center; color: var(--pgp-body); }

/* ---------- one promotion ---------- */
.pgp-detail { max-width: 800px; }

.pgp-back { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--pgp-blue); text-decoration: none; }
    .pgp-back:hover { color: var(--pgp-navy); }

.pgp-hero { display: block; width: 100%; aspect-ratio: 23 / 12; object-fit: cover; border-radius: 14px; margin: 8px 0 18px; background: var(--pgp-soft); }

.pgp-detail h1 { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.15; color: var(--pgp-navy); font-family: inherit; text-wrap: balance; }
.pgp-sub { margin: 6px 0 0; font-size: 17px; font-weight: 600; color: var(--pgp-body); }

.pgp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 8px; }

.pgp-btn {
    height: 48px;
    padding: 0 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}

.pgp-btn-gold, .pgp-btn-gold:hover { background: var(--pgp-gold); color: var(--pgp-gold-ink); }
.pgp-btn-ghost, .pgp-btn-ghost:hover { border: 1px solid var(--pgp-navy); color: var(--pgp-navy); background: #ffffff; }

/* The terms are HTML written in the promotions uploader (headings, paragraphs, lists, tables). */
.pgp-terms { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--pgp-line); font-size: 15px; line-height: 1.6; color: var(--pgp-body); overflow-wrap: anywhere; }
    .pgp-terms h3 { font-size: 19px; font-weight: 700; color: var(--pgp-navy); margin: 0 0 12px; font-family: inherit; }
    .pgp-terms h4 { font-size: 16px; font-weight: 700; color: var(--pgp-navy); margin: 20px 0 8px; font-family: inherit; }
    .pgp-terms p { margin: 0 0 12px; }
    .pgp-terms a { color: var(--pgp-blue); font-weight: 600; }
    .pgp-terms strong { color: var(--pgp-navy); }
    .pgp-terms table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; display: block; overflow-x: auto; }
    .pgp-terms th, .pgp-terms td { padding: 8px 10px; border-bottom: 1px solid var(--pgp-line); text-align: left; white-space: nowrap; }
    .pgp-terms th { color: var(--pgp-navy); font-weight: 700; background: var(--pgp-soft); }

@media (min-width: 768px) {
    .pgp { padding: 32px 24px 48px; }
    .pgp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .pgp-head h1, .pgp-detail h1 { font-size: 32px; }
}

@media (min-width: 1280px) {
    .pgp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .pgp-card { transition: none; }
    a.pgp-card:hover { transform: none; }
}
