/* EMBRIGGS design system — navy + gold, corporate */
:root {
  --navy-900: #081426;
  --navy-800: #0b1f3a;
  --navy-700: #12294d;
  --navy-600: #1b3a6b;
  --navy-100: #e8edf5;
  --gold-500: #c9a227;
  --gold-400: #d4af37;
  --gold-300: #e6c65c;
  --ink: #16202e;
  --muted: #5b6675;
  --bg: #f7f8fa;
  --card: #ffffff;
  --line: #dfe4ec;
  --ok: #1e7d46;
  --warn: #b54708;
  --bad: #b42318;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(8, 20, 38, .06), 0 8px 24px rgba(8, 20, 38, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .display {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 700; line-height: 1.15; color: var(--navy-800);
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section.tight { padding: 36px 0; }

/* ---------- Header ---------- */
.site-header {
  background: #fff; color: var(--navy-900);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--gold-500);
}
/* Admin keeps the navy header */
.site-header.admin-nav { background: var(--navy-800); color: #fff; }
.site-header .bar { display: flex; align-items: center; gap: 28px; height: 92px; }
.wordmark {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 1.7rem; letter-spacing: .14em; color: #fff !important;
  text-decoration: none !important;
}
.wordmark .gold { color: var(--gold-400); }
.logo-link { display: inline-flex; align-items: center; }
.logo-img { height: 72px; width: auto; display: block; }
@media (max-width: 900px) { .logo-img { height: 54px; } }
.main-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.main-nav a { color: var(--navy-800); font-weight: 600; font-size: .95rem; text-decoration: none; }
/* Gold text on white fails contrast (2.4:1); keep navy text and mark active/hover with a gold underline */
.main-nav a:hover, .main-nav a.active { color: var(--navy-900); box-shadow: inset 0 -3px 0 var(--gold-500); }
.admin-nav .main-nav a { color: #dbe4f0; font-weight: 500; }
.admin-nav .main-nav a:hover, .admin-nav .main-nav a.active { color: var(--gold-300); }
/* Announcement ticker below the header: full-bleed bar, text constrained to page width */
.ticker { background: var(--navy-800); border-bottom: 1px solid rgba(212,175,55,.35); }
.ticker-inner { max-width: 1140px; margin: 0 auto; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 90s linear infinite; }
.ticker-seq { display: flex; }
.ticker-item { color: var(--gold-300); font-size: .85rem; font-weight: 600; letter-spacing: .04em; padding: 8px 0; white-space: nowrap; }
.ticker-item::after { content: '\2726'; color: #56698a; margin: 0 26px; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* Compact data table variant (style-page size/price/availability reference) */
table.data.compact th, table.data.compact td { padding: 4px 10px; font-size: .84rem; }

/* Recently viewed: five compact cards spanning the main grid width */
.rv-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.rv-grid > a { min-width: 0; } /* let long nowrap titles ellipsize instead of stretching columns */
@media (max-width: 900px) { .rv-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); } }

/* Multi-word nav labels stack on two centered lines */
.nav-stack { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; text-align: center; }
.nav-stack span { display: block; }
/* Cart icon with count badge */
.cart-link { position: relative; display: inline-flex; align-items: center; }
.cart-link svg { display: block; }
.cart-badge {
  position: absolute; top: -7px; right: -10px;
  background: var(--gold-400); color: var(--navy-900);
  font-size: .68rem; font-weight: 700; line-height: 1;
  border-radius: 999px; padding: 3px 5px; min-width: 17px; text-align: center;
}
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy-900); margin: 5px 0; border-radius: 2px; }
.admin-nav .nav-toggle span { background: #fff; }
@media (max-width: 900px) {
  .site-header .bar { flex-wrap: wrap; height: auto; min-height: 68px; padding: 10px 0; }
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 14px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 6px; border-top: 1px solid rgba(8,20,38,.1); }
  .admin-nav .main-nav a { border-top: 1px solid rgba(255,255,255,.08); }
  .main-nav .btn { margin-top: 8px; text-align: center; }
  /* Stacked labels flatten to one line in the mobile menu */
  .nav-stack { flex-direction: row; gap: 5px; justify-content: flex-start; }
  .cart-link { padding: 11px 6px; }
  .cart-badge { position: static; margin-left: 8px; }
  .main-nav form { padding-top: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 6px;
  font-weight: 600; font-size: .95rem; cursor: pointer; border: 0;
  text-decoration: none !important; transition: transform .08s, box-shadow .12s;
  font-family: 'Inter', sans-serif;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); box-shadow: var(--shadow); }
.btn-navy { background: var(--navy-700); color: #fff; }
.btn-navy:hover { background: var(--navy-600); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-outline:hover { border-color: var(--gold-400); color: var(--gold-300); }
.btn-outline-dark { background: transparent; color: var(--navy-700); border: 2px solid var(--navy-700); }
.btn-outline-dark:hover { background: var(--navy-700); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(115deg, rgba(8,20,38,.96) 0%, rgba(11,31,58,.92) 45%, rgba(18,41,77,.78) 100%),
    var(--navy-800);
  color: #fff; padding: 96px 0 88px; position: relative; overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .15; z-index: 0; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero::after {
  content: ''; position: absolute; right: -120px; top: -40%;
  width: 420px; height: 180%;
  background: linear-gradient(var(--gold-500), var(--gold-300));
  transform: rotate(14deg); opacity: .12;
}
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 .gold { color: var(--gold-400); }
.hero p.lede { font-size: 1.2rem; color: #c7d2e2; max-width: 640px; margin: 20px 0 34px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .kicker {
  display: inline-block; color: var(--gold-300); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; font-size: .8rem; margin-bottom: 18px;
}

.trust-strip { background: var(--navy-900); color: #9fb0c7; padding: 14px 0; font-size: .9rem; }
.trust-strip .container { display: flex; gap: 34px; flex-wrap: wrap; justify-content: center; }
.trust-strip strong { color: var(--gold-300); font-weight: 600; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(8,20,38,.04);
}
.card:hover { box-shadow: var(--shadow); }
.prod-img { width: 100%; height: 190px; object-fit: contain; background: #fff; border-radius: 6px; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card .blurb { color: var(--muted); font-size: .95rem; }
.card.cat a.stretch { font-weight: 600; display: inline-block; margin-top: 12px; color: var(--gold-500); }

/* Company store cards: the store's own logo previewed on each garment photo */
.store-img-wrap { position: relative; }
.store-img-wrap .prod-img { margin-bottom: 12px; }
.store-logo-overlay {
  position: absolute; top: 34%; left: 50%; transform: translateX(-50%);
  width: 30%; max-height: 24%; object-fit: contain; opacity: .92;
  pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}

/* In-store mini item strip across the top (mirrors the shop's recently-viewed cards) */
.store-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-bottom: 18px; }
.store-strip-card {
  display: block; text-decoration: none !important; color: inherit; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px;
  font-size: .78rem; line-height: 1.25;
}
.store-strip-card:hover { border-color: var(--gold-500); }
.store-strip-card img { width: 100%; height: 84px; object-fit: contain; }
.store-strip-card .store-logo-overlay { width: 26%; }
.store-strip-card span { display: block; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* In-store search + sort toolbar */
.store-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.store-toolbar input[type=search], .store-toolbar select {
  padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 6px; font: inherit; background: #fff;
}
.store-toolbar input[type=search] { flex: 1; min-width: 180px; max-width: 340px; }

/* Homepage category image cards */
.cat-card { padding: 0; overflow: hidden; display: block; text-decoration: none !important; color: inherit; transition: transform .12s, box-shadow .12s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card-img { width: 100%; height: 220px; object-fit: cover; object-position: center 18%; background: #f2f4f8; }
.cat-card-body { padding: 14px 18px 18px; }
.cat-card-body h3 { margin-bottom: 4px; }
.cat-card:hover h3 { color: var(--gold-500); }

.step-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: var(--navy-800); color: var(--gold-400); font-weight: 800; font-size: 1.2rem;
  border-radius: 50%; margin-bottom: 14px; font-family: 'Barlow Condensed', sans-serif;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 5px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form input[type=date],
.form input[type=password], .form input[type=number], .form select, .form textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 6px;
  font: inherit; background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201,162,39,.18);
}
.form textarea { min-height: 130px; resize: vertical; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Show/hide password eyeball */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px !important; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: 7px; line-height: 0;
  color: var(--muted); border-radius: 6px;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--navy-700); }
.pw-toggle .eye-off { display: none; }
.pw-toggle.pw-visible .eye { display: none; }
.pw-toggle.pw-visible .eye-off { display: inline; }
@media (max-width: 640px) { .form .row2 { grid-template-columns: 1fr; } }
.hint { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; } /* tokened portal URLs must wrap on phones */
.alert { padding: 13px 16px; border-radius: 8px; font-size: .95rem; }
.alert-error { background: #fdecea; color: var(--bad); border: 1px solid #f5c6c1; }
.alert-ok { background: #e7f6ed; color: var(--ok); border: 1px solid #bfe5cd; }
.alert-info { background: var(--navy-100); color: var(--navy-700); border: 1px solid #c6d4e8; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
input[type="file"] { max-width: 100%; } /* file inputs have a fixed intrinsic width that overflows phones */
/* Tables not inside a .table-wrap still scroll instead of blowing out the page on phones */
@media (max-width: 700px) { table.data { display: block; overflow-x: auto; } }
table.data { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: .93rem; }
table.data th { text-align: left; padding: 11px 14px; background: var(--navy-800); color: #fff; font-weight: 600; white-space: nowrap; }
table.data td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.data tr:hover td { background: #fbfcfe; }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.b-new { background: var(--navy-100); color: var(--navy-700); }
.b-artwork_received { background: #eef4ff; color: #1d4ed8; }
.b-proof_sent { background: #fef3c7; color: #92400e; }
.b-changes_requested { background: #fdecea; color: var(--bad); }
.b-approved { background: #e7f6ed; color: var(--ok); }
.b-in_purchasing { background: #ede9fe; color: #5b21b6; }
.b-in_production { background: #e0f2fe; color: #075985; }
.b-shipped { background: #d1fae5; color: #065f46; }
.b-completed { background: #d1fae5; color: #065f46; }
.b-cancelled { background: #f1f5f9; color: #475569; }
.b-paid { background: #e7f6ed; color: var(--ok); }
.b-unpaid, .b-sent { background: #fef3c7; color: #92400e; }
.b-draft, .b-requested { background: var(--navy-100); color: var(--navy-700); }
.b-queued { background: #fef3c7; color: #92400e; }
.b-failed { background: #fdecea; color: var(--bad); }

/* ---------- Order portal ---------- */
.portal-head {
  background: var(--navy-800); color: #fff; padding: 40px 0 30px;
  border-bottom: 3px solid var(--gold-500);
}
.portal-head h1 { color: #fff; font-size: 1.9rem; }
.portal-head .muted { color: #9fb0c7; }
.timeline { display: flex; gap: 0; flex-wrap: wrap; margin: 22px 0 6px; }
.timeline .t-step { flex: 1; min-width: 90px; text-align: center; font-size: .74rem; color: #7e8ca0; position: relative; padding-top: 20px; }
.timeline .t-step::before {
  content: ''; width: 13px; height: 13px; border-radius: 50%;
  background: #2a3f60; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
}
.timeline .t-step.done { color: #d5deea; }
.timeline .t-step.done::before { background: var(--gold-400); }
.timeline .t-step.current { color: var(--gold-300); font-weight: 700; }
.timeline .t-step.current::before { background: var(--gold-400); box-shadow: 0 0 0 4px rgba(212,175,55,.3); }

.messages { display: grid; gap: 12px; }
.msg { padding: 13px 16px; border-radius: 10px; max-width: 85%; font-size: .95rem; }
.msg .who { font-size: .78rem; font-weight: 700; margin-bottom: 3px; }
.msg .when { font-size: .74rem; color: var(--muted); margin-top: 4px; }
.msg-customer { background: var(--navy-100); justify-self: end; }
.msg-staff { background: #fdf6e3; border: 1px solid #f0e2b6; justify-self: start; }

.proof-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb0c7; padding: 52px 0 30px; margin-top: 70px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-family: 'Barlow Condensed', sans-serif; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { color: #c7d2e2; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer .cols > * { min-width: 0; overflow-wrap: break-word; }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer .legal { border-top: 1px solid #1c2f4d; margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.vet-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-300); font-weight: 600; }

/* ---------- Admin ---------- */
.admin-body { background: #eef1f5; }
.admin-nav { background: var(--navy-900); }
/* Admin nav has many links: let the bar grow when they wrap (a fixed height clips the top row off-screen) */
.admin-nav .bar { height: auto; min-height: 56px; padding: 8px 0; }
.admin-nav .main-nav { gap: 14px; row-gap: 2px; }
.admin-main { padding: 30px 0 60px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .num { font-size: 1.9rem; font-weight: 800; font-family: 'Barlow Condensed', sans-serif; color: var(--navy-800); }
.stat .lbl { font-size: .8rem; color: var(--muted); }
.stat.hot { border-color: var(--gold-500); background: #fffbeb; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.panel h3 { margin-bottom: 14px; border-bottom: 2px solid var(--gold-500); display: inline-block; padding-bottom: 4px; }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.two-col > * { min-width: 0; } /* let wide tables scroll inside their column instead of blowing out the page */
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.inline-form > * { min-width: 0; } /* lets file inputs shrink to fit on phones */
.inline-form label { font-size: .8rem; font-weight: 600; display: block; }
.inline-form input, .inline-form select { padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 6px; font: inherit; }
.muted { color: var(--muted); }
.mb0 { margin-bottom: 0; } .mt1 { margin-top: 10px; } .mt2 { margin-top: 20px; }
/* deploy marker 2026-07-30T07:25:48.7241301-07:00 */
