﻿/* =========================================================================
   STORE PAGES — About, Gifts, Sell Your Wine, Shipping, Returns, Privacy,
   Terms, Accessibility (Website/*.aspx). Loaded by each page after brand.css
   and built only from its tokens: Rich Black, white, grey, Bodoni capitals,
   square corners, black-and-white photography.
   ========================================================================= */

.pg {
    color: var(--b-ink);
    font-family: var(--b-body);
}

.pg-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.pg-narrow {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

.pg p { margin: 0 0 14px; line-height: 1.65; }

.pg-lead {
    font-size: 19px;
    line-height: 1.6;
    color: var(--b-ink);
}

.pg-muted { color: var(--b-grey); }

.pg-eyebrow {
    display: block;
    margin: 0 0 10px;
    font-family: var(--b-sub);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--b-grey);
}

.pg-section { padding: 56px 0; }
.pg-section + .pg-section { border-top: 1px solid var(--b-line); }
.pg-section-tint { background: var(--b-tint); border-top: 0 !important; }

/* h2 inside sections gets the same grey bar as page titles */
body.b-site .pg-bar::after {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    margin-top: 12px;
    background: var(--b-grey);
}

body.b-site .pg h2 { margin: 0 0 18px; font-size: clamp(22px, 2.6vw, 30px); }

/* ---- hero: photo with the title over it ---------------------------------- */

.pg-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(260px, 38vw, 440px);
    background: var(--b-ink) center / cover no-repeat;
    color: var(--b-white);
}

.pg-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(35, 31, 32, .05) 30%, rgba(35, 31, 32, .78) 100%);
}

.pg-hero-inner {
    position: relative;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px 38px;
}

body.b-site .pg-hero h1 {
    margin: 0;
    color: var(--b-white);
    font-size: clamp(32px, 5vw, 58px);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

body.b-site .pg-hero h1::after { background: var(--b-white); }

.pg-hero .pg-eyebrow { color: #e7e4e2; }

/* Optional line under a picture heading (Settings > Pictures) */
.pg-hero-lead {
    max-width: 720px;
    margin: 14px 0 0;
    font-size: 18px;
    line-height: 1.5;
    color: #f1efee;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}

/* A plain title band for pages without a photo */
.pg-head {
    padding: 44px 0 8px;
}

.pg-head .pg-lead { max-width: 720px; color: var(--b-grey); }

/* ---- two columns: picture and words ------------------------------------- */

.pg-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.pg-split-wide { grid-template-columns: 1.2fr 1fr; }

.pg-split img,
.pg-photo {
    display: block;
    width: 100%;
    height: auto;
}

.pg-bw img,
img.pg-bw {
    filter: grayscale(1) contrast(1.05);
}

.pg-caption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--b-grey);
}

/* ---- family history: the home page's slide show (SlideShow.css) ---------- */

.pg-history-slider {
    margin-top: 6px;
    border-bottom: 3px solid var(--b-ink);
}

/* Old photographs in black and white, like the rest of the page */
.pg-history-slider img {
    filter: grayscale(1) contrast(1.05);
}

/* ---- direct imports: cellar photograph with the regions over it ------------ */

.pg-imports {
    position: relative;
    overflow: hidden;
    background: var(--b-ink);
    color: var(--b-white);
}

.pg-imports-photo {
    display: block;
    width: 100%;
    height: clamp(340px, 42vw, 520px);
    object-fit: cover;
    object-position: center 60%;
    filter: grayscale(1) contrast(1.1);
}

.pg-imports-over {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px clamp(24px, 5vw, 64px);
    background: linear-gradient(90deg, rgba(35, 31, 32, .92) 0%, rgba(35, 31, 32, .72) 45%, rgba(35, 31, 32, .1) 100%);
}

.pg-imports-over > * { max-width: 560px; }

.pg-imports .pg-eyebrow { color: #c9c6c4; }
body.b-site .pg-imports h2 { color: var(--b-white); }
body.b-site .pg-imports .pg-bar::after { background: var(--b-white); }
.pg-imports .pg-lead { color: #e7e4e2; margin-bottom: 22px; }

.pg-origins {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--b-display);
    font-size: clamp(17px, 1.8vw, 22px);
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pg-origins li + li::before {
    content: "\00b7";
    padding: 0 12px;
    color: #8c8786;
}

/* ---- numbers row --------------------------------------------------------- */

.pg-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 36px 0 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--b-ink);
}

.pg-stat-num {
    display: block;
    font-family: var(--b-display);
    font-weight: 800;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1;
}

.pg-stat-label {
    display: block;
    margin-top: 8px;
    font-family: var(--b-sub);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--b-grey);
}

/* ---- cards (direct imports, gift services) ------------------------------ */

.pg-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.pg-card {
    padding: 24px 24px 20px;
    background: var(--b-white);
    border: 1px solid var(--b-line);
    border-top: 3px solid var(--b-ink);
}

body.b-site .pg-card h3 { margin: 0 0 10px; }

.pg-card p:last-child { margin-bottom: 0; }

/* ---- the team ------------------------------------------------------------ */

.pg-team {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px 22px;
}

.pg-person { margin: 0; }

.pg-person-photo {
    display: block;
    width: 100%;
    height: auto;                   /* the img's height="1200" attribute would otherwise win over aspect-ratio */
    aspect-ratio: 4 / 5;            /* uploads are 2:3; the bottom is trimmed so faces stay in view */
    object-fit: cover;
    object-position: center 12%;
    background: var(--b-tint);
    filter: grayscale(1) contrast(1.05);
    transition: filter .3s ease;
}

.pg-person-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--b-grey);
    font-family: var(--b-display);
    font-size: 48px;
    font-weight: 800;
    border: 1px solid var(--b-line);
}

.pg-person:hover .pg-person-photo,
.pg-person:focus-within .pg-person-photo,
.pg-person-open .pg-person-photo { filter: none; }

/* The photo and the bio that opens over it */
.pg-person-media {
    position: relative;
    overflow: hidden;
}

.pg-bio {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: 46px 20px 20px;
    background: rgba(35, 31, 32, .93);
    color: #e7e4e2;
    font-size: 14px;
    line-height: 1.6;
    animation: pg-bio-in .25s ease-out;
    scrollbar-width: thin;
}

.pg-bio[hidden] { display: none; }

@keyframes pg-bio-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.pg-bio p { margin: 0 0 10px; }

.pg-bio .pg-bio-name {
    margin: 0 0 12px;
    color: var(--b-white);
    font-family: var(--b-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.pg-bio { cursor: pointer; }          /* clicking the bio closes it */
.pg-bio a { cursor: pointer; }

.pg-bio-close {
    position: absolute;
    top: 8px;
    right: 12px;
    color: var(--b-white);
    font-size: 28px;
    line-height: 1;
}

.pg-person-mail { display: block; font-size: 14px; }

/* The photo is the button that opens the bio */
.pg-photo-btn {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: left;
}

.pg-photo-btn:focus-visible { outline: 2px solid var(--b-ink); outline-offset: 3px; }

.pg-photo-hint {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 7px 12px;
    background: rgba(35, 31, 32, .82);
    color: var(--b-white);
    font-family: var(--b-sub);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: background .2s ease;
}

.pg-photo-hint::after { content: " +"; }

.pg-photo-btn:hover .pg-photo-hint,
.pg-photo-btn:focus-visible .pg-photo-hint { background: var(--b-ink); }

.pg-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- numbered steps ------------------------------------------------------ */

.pg-steps {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pg-steps li {
    counter-increment: step;
    padding-top: 14px;
    border-top: 3px solid var(--b-ink);
    font-size: 15px;
    line-height: 1.55;
}

.pg-steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 8px;
    font-family: var(--b-display);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.pg-steps strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--b-sub);
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---- lists and tables ---------------------------------------------------- */

.pg-list {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.pg-list li {
    position: relative;
    padding: 0 0 10px 22px;
    line-height: 1.6;
}

.pg-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .7em;
    width: 10px;
    height: 2px;
    background: var(--b-ink);
}

.pg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.pg-table th,
.pg-table td {
    padding: 10px 14px 10px 0;
    border-bottom: 1px solid var(--b-line);
    text-align: left;
    vertical-align: top;
}

.pg-table th {
    font-family: var(--b-sub);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--b-grey);
    border-bottom-color: var(--b-ink);
}

.pg-code {
    font-family: var(--b-sub);
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
}

/* Ullage: the bottle shoulder diagram */
.pg-ullage {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    text-align: center;
}

.pg-ullage svg { display: block; width: 46px; height: auto; margin: 0 auto 8px; }

/* ---- call to action band ------------------------------------------------- */

.pg-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 32px;
    padding: 34px 36px;
    background: var(--b-ink);
    color: var(--b-white);
}

body.b-site .pg-cta h2 { margin: 0 0 6px; color: var(--b-white); }
.pg-cta p { margin: 0; color: #d9d6d4; max-width: 600px; }

body.b-site .pg-cta a { color: var(--b-white); }

.pg-cta .b-btn {
    background: var(--b-white) !important;
    color: var(--b-ink) !important;
    border-color: var(--b-white) !important;
}

.pg-cta .b-btn:hover { background: #e9e6e4 !important; }

.pg-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pg-cta .b-btn-ghost {
    background: transparent !important;
    color: var(--b-white) !important;
}

.pg-cta .b-btn-ghost:hover { background: rgba(255, 255, 255, .1) !important; }

/* ---- policy pages -------------------------------------------------------- */

.pg-legal { padding: 8px 0 24px; }

.pg-legal .pg-updated {
    margin: -4px 0 26px;
    font-size: 14px;
    color: var(--b-grey);
}

.pg-toc {
    margin: 0 0 30px;
    padding: 16px 20px;
    background: var(--b-tint);
    border-left: 3px solid var(--b-ink);
}

.pg-toc strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--b-sub);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pg-toc ol { margin: 0; padding-left: 20px; line-height: 1.8; }

body.b-site .pg-legal h2 {
    margin: 34px 0 12px;
    padding-top: 6px;
    font-size: 21px;
    scroll-margin-top: 70px;      /* clear of the sticky menu */
}

.pg-legal .pg-caps {
    font-size: 14px;
    letter-spacing: .02em;
}

.pg-note {
    margin: 18px 0;
    padding: 14px 18px;
    border: 1px solid var(--b-line);
    border-left: 3px solid var(--b-ink);
    background: var(--b-white);
}

.pg-note p:last-child { margin: 0; }

.pg-related {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid var(--b-line);
    font-family: var(--b-sub);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* ---- small screens ------------------------------------------------------- */

@media (max-width: 980px) {
    .pg-team { grid-template-columns: repeat(3, 1fr); }
    .pg-steps { grid-template-columns: repeat(2, 1fr); }
    .pg-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .pg-section { padding: 40px 0; }
    .pg-split, .pg-split-wide { grid-template-columns: 1fr; gap: 26px; }
    .pg-imports-over { background: rgba(35, 31, 32, .82); }
    .pg-team { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
    .pg-ullage { grid-template-columns: repeat(3, 1fr); }
    .pg-cta { padding: 26px 22px; }
    .pg-lead { font-size: 17px; }
}

@media (max-width: 480px) {
    .pg-steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .pg-person-photo { transition: none; }
    .pg-bio { animation: none; }
}

@media print {
    .pg-hero { min-height: 0; background: none !important; color: var(--b-ink); }
    .pg-hero::before { content: none; }
    body.b-site .pg-hero h1 { color: var(--b-ink); text-shadow: none; }
    .pg-cta, .pg-toc { display: none; }
}
