/* Pasco Firefighters Local 1433 Charity — site styles.
   Navy / black / red / gold. Firehouse, not a government or Square look. */

:root {
  --navy: #0b1c2c;
  --navy-2: #12283d;
  --navy-3: #1a3a56;
  --navy-ink: #07131e;
  --red: #c8102e;
  --red-hover: #a50d25;
  --red-soft: #f8e6e9;
  --gold: #c4a35a;
  --gold-light: #e0c57e;
  --cream: #f6f2e9;
  --cream-2: #ebe4d4;
  --cream-3: #dfd6c2;
  --ink: #1a1a1a;
  --muted: #5a6570;
  --line: #d8d0c0;
  --white: #fff;
  --success: #1e6b3a;
  --success-soft: #e5f3ea;
  --warn: #8a5a10;
  --warn-soft: #f8efd8;
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 8px;
  --shadow: 0 4px 18px rgba(11, 28, 44, 0.12);
  --header-h: 4.25rem;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); }
a:hover { color: var(--red); }
button, input, select, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: var(--cream);
  border-bottom: 4px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: inherit; }
.brand img { width: 48px; height: 59px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-kicker {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: var(--gold-light);
  text-transform: uppercase;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  margin-left: auto;
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.nav-toggle[aria-expanded="true"] { background: var(--navy-3); }

.site-nav {
  display: none;
  flex-direction: column;
  padding: 0 1.25rem 1rem;
  gap: 0.15rem;
  background: var(--navy-ink);
}
.site-nav.open { display: flex; }

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  padding: 0.55rem 0.4rem;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.site-nav a:hover { color: var(--gold-light); }
.site-nav a[aria-current="page"] {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}
.soon-tag {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border-radius: 999px;
  padding: 0.08rem 0.4rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .header-inner { padding: 0.5rem 1.5rem; }
  .site-nav {
    display: flex;
    flex-direction: row;
    margin-left: auto;
    padding: 0;
    background: transparent;
    align-items: center;
    gap: 0.1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .site-nav a { padding: 0.7rem 0.55rem; font-size: 0.86rem; }
}

/* ---------- Layout ---------- */
main { flex: 1; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}
.wrap-narrow { max-width: 720px; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(7, 19, 30, 0.2), rgba(7, 19, 30, 0.55)),
    repeating-linear-gradient(
      135deg,
      var(--navy) 0 14px,
      var(--navy-2) 14px 28px
    );
  color: var(--cream);
  border-bottom: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.25rem 1.25rem 3.5rem;
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 800px) {
  .hero-inner { grid-template-columns: 1.4fr 0.8fr; padding: 4.25rem 1.5rem; }
}
.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-size: 0.82rem;
  margin: 0 0 0.6rem;
  font-weight: 500;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--cream);
}
.hero p.lead {
  font-size: 1.18rem;
  max-width: 36rem;
  color: #efe9dc;
  margin: 0 0 1.5rem;
}
.hero-badge {
  justify-self: center;
  text-align: center;
}
.hero-badge img { width: 160px; height: auto; margin: 0 auto 0.6rem; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35)); }
.hero-badge .ph {
  font-size: 0.78rem;
  color: var(--gold-light);
  font-style: italic;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 2px solid transparent;
  border-radius: 3px;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-red:hover:not(:disabled) { background: var(--red-hover); color: #fff; border-color: var(--red-hover); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover:not(:disabled) { background: var(--gold-light); color: var(--navy); }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--gold);
}
.btn-ghost:hover:not(:disabled) { background: rgba(196, 163, 90, 0.15); color: var(--gold-light); }
.btn-navy {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.btn-navy:hover:not(:disabled) { background: var(--navy-3); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover:not(:disabled) { background: var(--navy); color: var(--cream); }
.btn-small { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

/* ---------- Cards / sections ---------- */
h1, h2, h3, .h-display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  font-weight: 600;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 0.75rem; }
h2 { font-size: 1.65rem; margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.section-rule {
  width: 4rem;
  height: 3px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.25rem;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 1.15rem 1.2rem 1.3rem; }
.card .ph-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin: 0.4rem 0 0;
}

.photo-ph {
  background: var(--cream-2);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  position: relative;
}
.photo-ph strong {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}
.photo-ph span { font-size: 0.82rem; font-style: italic; max-width: 16rem; }

.notice, .disclaimer, .banner {
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.25rem;
  border-left: 4px solid var(--gold);
  background: var(--warn-soft);
  color: var(--navy);
}
.notice-red { border-left-color: var(--red); background: var(--red-soft); }
.notice-ok { border-left-color: var(--success); background: var(--success-soft); }
.notice p, .disclaimer p { margin: 0; }

.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Shop ---------- */
.shop-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr 22rem;
    align-items: start;
  }
  .cart-panel { position: sticky; top: calc(var(--header-h) + 1rem); }
}

.product-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 620px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card { display: flex; flex-direction: column; background: var(--white); }
.product-card img { width: 100%; aspect-ratio: 320 / 280; object-fit: contain; background: #efe9dc; }
.ph-caption {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  margin: 0;
  padding: 0.35rem 1.2rem 0;
}
.product-meta { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.5rem; }
.price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.price-range { font-size: 1.15rem; }
.swatch {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.25);
  vertical-align: -1px;
  margin-right: 0.2rem;
}
.swatch-navy { background: #0b1c2c; }
.swatch-black { background: #161616; }

.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.7rem 0;
}
.size-btn {
  width: 3.55rem;
  min-width: 3.55rem;
  min-height: 3.15rem;
  padding: 0.3rem 0.2rem;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}
.size-btn:hover:not(:disabled) { border-color: var(--navy); }
.size-btn[aria-pressed="true"] {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.size-btn:disabled, .size-btn.sold-out {
  opacity: 0.55;
  cursor: not-allowed;
  text-decoration: line-through;
  background: #eee;
}
.size-btn .so {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0.85rem;
}
.qty-row label { font-size: 0.9rem; color: var(--muted); }
.qty-row input {
  width: 4.2rem;
  padding: 0.35rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
}

.sold-banner {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.stock-hint { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.5rem; }

/* Cart */
.cart-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 1.35rem;
}
.cart-panel h2 { font-size: 1.3rem; }
.cart-empty { color: var(--muted); font-style: italic; margin: 0.5rem 0 1rem; }
.cart-list { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.cart-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.cart-list .desc { font-weight: 600; }
.cart-list .sub { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.cart-remove {
  background: none;
  border: 0;
  color: var(--red);
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
  padding: 0;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  margin: 0.5rem 0 1rem;
  color: var(--navy);
}

.field { margin: 0 0 0.85rem; }
.field label { display: block; font-weight: 600; margin: 0 0 0.25rem; font-size: 0.95rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="number"] {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--cream);
}
.field input:focus { background: var(--white); }
.pay-options { display: grid; gap: 0.45rem; margin: 0.4rem 0 1rem; }
.pay-options label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--cream);
  cursor: pointer;
}
.pay-options label:has(input:checked) {
  border-color: var(--navy);
  background: #eef3f7;
}
.form-error { color: var(--red); font-weight: 600; margin: 0 0 0.75rem; }
.form-ok { color: var(--success); }

/* Confirmation */
.confirm {
  background: var(--success-soft);
  border: 1px solid #b7d8c2;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
}
.confirm h3 { color: var(--success); margin-bottom: 0.4rem; }
.order-id {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--navy);
}

/* ---------- Admin ---------- */
.admin-login {
  max-width: 24rem;
  margin: 3rem auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid var(--gold);
}
.toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.toggle button[aria-pressed="true"] { background: var(--success); border-color: var(--success); color: #fff; }
.toggle button[aria-pressed="false"] { background: var(--red); border-color: var(--red); color: #fff; }
.status-pill {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: var(--cream-2);
  color: var(--navy);
  white-space: nowrap;
}
.status-pill.paid, .status-pill.open { background: var(--success); color: #fff; }
.status-pill.unpaid, .status-pill.closed { background: var(--red); color: #fff; }
.status-pill.pickup { background: var(--navy-3); color: #fff; }

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.95rem;
}
table.data th, table.data td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  background: var(--navy);
  color: var(--cream);
  font-weight: 500;
  white-space: nowrap;
}
table.data tr:nth-child(even) td { background: #fbf8f2; }
table.data input[type="number"] {
  width: 5.5rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.item-lines { margin: 0; padding: 0; list-style: none; font-size: 0.88rem; color: var(--muted); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.admin-section { margin-bottom: 2.25rem; }
.admin-section h2 { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Coming soon */
.coming-soon {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.coming-soon .tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--navy-ink);
  color: #c9c2b4;
  border-top: 4px solid var(--gold);
  padding: 2rem 1.25rem 2.4rem;
  font-size: 0.92rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 2fr 1fr; align-items: start; }
}
.site-footer a { color: var(--gold-light); }
.site-footer strong { color: var(--cream); }
.footer-mark {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  font-size: 1.05rem;
}

/* Misc */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.hidden { display: none !important; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

@media (max-width: 699px) {
  table.data.stack thead { display: none; }
  table.data.stack, table.data.stack tbody, table.data.stack tr, table.data.stack td {
    display: block;
    width: 100%;
  }
  table.data.stack tr {
    border: 1px solid var(--line);
    margin-bottom: 0.75rem;
    border-radius: 6px;
    overflow: hidden;
  }
  table.data.stack td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
  }
  table.data.stack td::before {
    content: attr(data-label);
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--navy);
    flex: 0 0 40%;
  }
}


/* ---------- Members-only shop gate ---------- */
.access-gate {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 3rem;
}
.access-gate-card {
  width: 100%;
  max-width: 28rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 1.85rem;
  border-top: 4px solid var(--gold);
}
.access-kicker {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  font-size: 0.85rem;
  margin: 0 0 0.4rem;
}
.access-gate-card h1 {
  font-size: 1.85rem;
  margin: 0 0 0.75rem;
}
.access-gate-card > p { margin: 0 0 1rem; }
.access-code-form {
  max-width: 28rem;
}
.access-code-form .field { margin-bottom: 0.5rem; }
