/* =========================================================================
   PSOrders.com — modern stylesheet
   ProSource brand refresh. Single file, responsive, no build step.
   ========================================================================= */

:root {
    /* Brand */
    --brand:        #095c99;
    --brand-dark:   #003466;
    --brand-darker: #022a4d;
    --accent:       #d81c3f; /* red from the logo bar */

    /* Status */
    --available:    #019247;
    --on-order:     #ed2024;
    --picked-up:    #0d72ba;

    /* Neutrals */
    --ink:          #16202b;
    --muted:        #5c6b7a;
    --line:         #e4e9ef;
    --bg:           #eef2f6;
    --card:         #ffffff;

    --radius:       14px;
    --radius-sm:    9px;
    --shadow:       0 1px 2px rgba(16, 32, 43, .06), 0 12px 30px -12px rgba(16, 32, 43, .22);
    --shadow-sm:    0 1px 2px rgba(16, 32, 43, .08), 0 6px 16px -10px rgba(16, 32, 43, .25);

    --maxw:         1080px;
    --font:         system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ----- Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

h1, h2, h3, p { margin: 0; }

a { color: var(--brand); }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.site-main { flex: 1 0 auto; }

/* ----- Header ---------------------------------------------------------- */
.site-header {
    background: var(--brand-dark);
    border-bottom: 3px solid var(--accent);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: .85rem;
    flex-wrap: wrap;
}

.site-header__brand img { width: 190px; height: auto; }

.site-header__tagline {
    color: rgba(255, 255, 255, .82);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-align: right;
    margin: 0;
}

/* ----- Hero ------------------------------------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 120% at 85% -10%, #0f6fb0 0%, var(--brand) 38%, var(--brand-dark) 78%, var(--brand-darker) 100%);
    color: #fff;
}

/* Subtle flooring-plank texture, pure CSS */
.hero__pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 64px),
        repeating-linear-gradient(115deg, rgba(0,0,0,.06) 0 1px, transparent 1px 220px);
    opacity: .7;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: center;
    padding-block: clamp(2.75rem, 7vw, 5.5rem);
}

@media (min-width: 840px) {
    .hero__inner {
        grid-template-columns: 1.05fr .95fr;
    }
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.hero__subtitle {
    margin-top: 1rem;
    max-width: 46ch;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: rgba(255, 255, 255, .9);
}

/* ----- Lookup card ----------------------------------------------------- */
.lookup-card {
    background: var(--card);
    color: var(--ink);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.4rem, 3vw, 2rem);
}

.lookup__label {
    display: block;
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: .55rem;
}

.lookup__row {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.lookup__input {
    flex: 1 1 12rem;
    min-width: 0;
    font: inherit;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .8rem 1rem;
    color: var(--ink);
    background: #fff;
    border: 2px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}

.lookup__input::placeholder {
    color: #aab4c0;
    letter-spacing: .08em;
    font-weight: 500;
}

.lookup__input:focus-visible {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(9, 92, 153, .18);
}

.lookup__hint {
    margin-top: .65rem;
    font-size: .85rem;
    color: var(--muted);
}

/* ----- Buttons --------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    padding: .85rem 1.4rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, transform .05s;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
    flex: 0 0 auto;
    background: var(--brand);
    color: #fff;
}
.btn--primary:hover { background: var(--brand-dark); }
.btn--primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(9, 92, 153, .25);
}

.btn--ghost {
    background: transparent;
    color: var(--brand);
    border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand); background: #fff; }

/* ----- Results --------------------------------------------------------- */
.results { padding-block: clamp(1.75rem, 4vw, 2.75rem); }

.results__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.results__eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
}

.results__title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.1;
}

.store {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    margin-top: .5rem;
    font-style: normal;
    line-height: 1.4;
}
.store__name {
    font-weight: 700;
    color: var(--brand);
    letter-spacing: .01em;
}
.store__line { color: var(--muted); }
.store__phone {
    margin-top: .15rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    width: fit-content;
}
.store__phone:hover { text-decoration: underline; }

.results__pickup-note {
    margin-top: 1.25rem;
    color: var(--muted);
    font-size: .95rem;
}

/* ----- Pickup QR code -------------------------------------------------- */
.qr-pickup {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: clamp(1.5rem, 4vw, 2rem);
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.qr-pickup__label {
    max-width: 30ch;
    font-weight: 700;
    color: var(--ink);
    font-size: 1.05rem;
}
.qr-pickup__code {
    background: #fff;
    border-radius: var(--radius-sm);
    line-height: 0;
}
.qr-pickup__code img {
    width: clamp(180px, 50vw, 220px);
    height: auto;
    image-rendering: pixelated; /* keep QR modules crisp when scaled */
}

/* ----- Status table (responsive: cards on mobile) ---------------------- */
.status-table {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.status-table__head {
    display: none; /* hidden on mobile; each row card carries its own labels */
    grid-template-columns: 2.4fr 1fr 1.6fr;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: var(--brand-dark);
    color: #fff;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
}

.status-table__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: .35rem;
    padding: 1rem 1.15rem;
    border-top: 1px solid var(--line);
}
.status-table__row:first-of-type { border-top: 0; }

.status-table__row [data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: .15rem;
}

.status-table__item { font-weight: 600; }

@media (min-width: 640px) {
    .status-table__head { display: grid; }

    .status-table__row {
        grid-template-columns: 2.4fr 1fr 1.6fr;
        align-items: center;
        gap: 1rem;
    }

    .status-table__row [data-label]::before { content: none; }
}

/* ----- Status badges --------------------------------------------------- */
.badge {
    display: inline-block;
    padding: .4rem .7rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.2;
    background: #eef2f6;
    color: var(--ink);
}

.badge--Available { background: var(--available); color: #fff; }
.badge--OnOrder   { background: var(--on-order);  color: #fff; }
.badge--PickedUp  { background: var(--picked-up); color: #fff; }

/* ----- Notices --------------------------------------------------------- */
.notice {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--brand);
    padding: clamp(1.25rem, 3vw, 1.75rem);
}
.notice__title { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.notice p + p { margin-top: .6rem; }
.notice--warn  { border-left-color: #e6a700; }
.notice--error { border-left-color: var(--on-order); }
.notice--info  { border-left-color: var(--brand); }

.link { color: var(--brand); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ----- Footer ---------------------------------------------------------- */
.site-footer {
    flex-shrink: 0;
    background: var(--brand-darker);
    color: rgba(255, 255, 255, .82);
    margin-top: 3rem;
}
.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-block: 1.4rem;
    font-size: .85rem;
}
.site-footer__note { color: rgba(255, 255, 255, .55); }

/* ----- Motion preference ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
