/* 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: var(--navy-800); color: #fff;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--gold-500);
}
.site-header .bar { display: flex; align-items: center; gap: 28px; height: 68px; }
.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: 44px; width: auto; display: block; }
.main-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.main-nav a { color: #dbe4f0; font-weight: 500; font-size: .95rem; text-decoration: none; }
.main-nav a:hover, .main-nav a.active { color: var(--gold-300); }

/* ---------- 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); }
.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); }

.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; }
@media (max-width: 640px) { .form .row2 { grid-template-columns: 1fr; } }
.hint { color: var(--muted); font-size: .85rem; }
.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; }
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 .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 .bar { height: 56px; }
.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; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.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; }
