/* Upstate Excellence Awards — public styles. Navy + gold, editorial serif headings. */
:root {
  --c-gold:   #c8a24b;
  --c-gold-d: #a9842f;
  --c-ink:    #14233a;   /* deep navy */
  --c-ink-2:  #1d3050;
  --c-bg:     #ffffff;
  --c-cream:  #faf7f0;
  --c-fg:     #1c2433;
  --c-muted:  #5d6b7e;
  --c-line:   #e7e2d6;
  --ff-display: "Cormorant Garamond", Georgia, serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --r: 10px;
  --shadow: 0 8px 30px rgba(20,35,58,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--ff-body); color: var(--c-fg); background: var(--c-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
img { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--ff-display); color: var(--c-ink); line-height: 1.1; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 4rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); }
h3 { font-size: 1.3rem; }
a { color: var(--c-gold-d); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--c-muted); }
.small { font-size: .85rem; }
.fine { color: var(--c-muted); font-size: .85rem; }
.center { text-align: center; }
.mt { margin-top: 16px; }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--c-ink); }
.brand-mark:hover { text-decoration: none; }
.brand-crest { color: var(--c-gold); font-size: 1.5rem; line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--ff-display); font-size: 1.25rem; letter-spacing: .3px; }
.brand-text em { font-style: normal; font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--c-gold-d); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--c-ink); font-weight: 500; font-size: .95rem; }
.site-nav a.on { color: var(--c-gold-d); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--c-ink); }

/* --- Buttons --- */
.btn { display: inline-block; padding: 11px 22px; border-radius: var(--r); font-weight: 600; font-size: .95rem; cursor: pointer; border: 1.5px solid transparent; transition: transform .08s ease, box-shadow .2s ease; text-align: center; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--c-gold); color: var(--c-ink); border-color: var(--c-gold); }
.btn-primary:hover { background: var(--c-gold-d); border-color: var(--c-gold-d); color: #fff; }
.btn-secondary { background: #fff; color: var(--c-ink); border-color: var(--c-line); }
.btn-secondary:hover { border-color: var(--c-gold); }
.btn-ghost { background: transparent; color: var(--c-ink); border-color: transparent; }
.btn-ghost:hover { background: rgba(20,35,58,.05); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }

/* --- Hero --- */
.site-main { min-height: 50vh; }
.hero-home { background: linear-gradient(160deg, var(--c-ink) 0%, var(--c-ink-2) 100%); color: #fff; padding: 80px 0 90px; position: relative; overflow: hidden; }
.hero-home::after { content: "★"; position: absolute; right: -40px; top: -30px; font-size: 22rem; color: rgba(200,162,75,.07); line-height: 1; pointer-events: none; }
.hero-home h1 { color: #fff; max-width: 16ch; }
.hero-home .lede { color: #cdd6e3; font-size: 1.2rem; max-width: 56ch; margin: 18px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--c-gold); margin: 0 0 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-gold); box-shadow: 0 0 0 4px rgba(200,162,75,.25); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-home .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.hero-home .btn-ghost:hover { background: rgba(255,255,255,.1); }

/* --- How section --- */
.how { padding: 64px 0; background: var(--c-cream); }
.grid-3 { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { text-align: center; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c-ink); color: var(--c-gold); font-family: var(--ff-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--c-muted); margin: 0; }

/* --- Category grid --- */
.featured-cats { padding: 64px 0; }
.featured-cats h2 { text-align: center; margin-bottom: 36px; }
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cat-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); color: var(--c-ink); transition: border-color .15s, box-shadow .2s, transform .08s; }
.cat-card:hover { border-color: var(--c-gold); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.cat-card strong { font-family: var(--ff-display); font-size: 1.3rem; color: var(--c-ink); }
.cat-sector, .cat-meta { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-gold-d); font-weight: 600; }
.cat-desc { color: var(--c-muted); font-size: .9rem; }
.cat-meta { color: var(--c-muted); margin-top: 4px; }

/* --- Bands / CTA --- */
.band { background: var(--c-ink); color: #fff; padding: 70px 0; text-align: center; }
.band h2 { color: #fff; }
.band p { color: #cdd6e3; font-size: 1.1rem; margin: 10px 0 26px; }

/* --- Page heads --- */
.page-head { padding: 50px 0 24px; border-bottom: 1px solid var(--c-line); margin-bottom: 36px; }
.page-head.narrow { border: none; padding: 70px 0 20px; }
.page-head .lede { font-size: 1.15rem; color: var(--c-muted); max-width: 62ch; margin: 8px 0 0; }
.crumbs { font-size: .85rem; color: var(--c-muted); margin: 0 0 10px; }
.crumbs a { color: var(--c-muted); }

/* --- Sectors / blocks --- */
.sector-block { margin-bottom: 48px; }
.sector-title { display: flex; align-items: center; gap: 14px; font-size: 1.7rem; margin-bottom: 20px; }
.sector-title::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }

/* --- Forms --- */
.form-wrap, .ballot-wrap { max-width: 720px; margin: 0 auto; padding-bottom: 60px; }
.card-form label, .card-form fieldset { display: block; margin: 0 0 18px; }
label { font-weight: 500; font-size: .92rem; color: var(--c-ink); }
input, select, textarea { font: inherit; width: 100%; padding: 12px 14px; border: 1.5px solid var(--c-line); border-radius: var(--r); margin-top: 6px; background: #fff; color: var(--c-fg); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-gold); box-shadow: 0 0 0 3px rgba(200,162,75,.18); }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
fieldset.card, .card { border: 1px solid var(--c-line); border-radius: var(--r); padding: 20px; background: var(--c-cream); }
fieldset.subtle { background: var(--c-cream); }
fieldset legend { font-family: var(--ff-display); font-size: 1.2rem; padding: 0 8px; color: var(--c-ink); }

/* --- Ballot --- */
.ballot-list { border: none; padding: 0; background: none; }
.ballot-list legend { font-size: 1.4rem; margin-bottom: 12px; padding: 0; }
.ballot-option { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--c-line); border-radius: var(--r); margin: 0 0 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.ballot-option:hover { border-color: var(--c-gold); }
.ballot-option input { width: auto; margin-top: 5px; accent-color: var(--c-gold-d); }
.ballot-option:has(input:checked) { border-color: var(--c-gold); background: var(--c-cream); box-shadow: 0 0 0 2px rgba(200,162,75,.2); }
.bo-body { display: flex; flex-direction: column; gap: 2px; }
.bo-body strong { font-size: 1.1rem; color: var(--c-ink); }
.bo-blurb { color: var(--c-muted); font-size: .9rem; }
.bo-link { display: inline-block; margin-top: 6px; width: fit-content; font-size: .85rem; font-weight: 600; color: var(--c-gold-d); }
.bo-link:hover { text-decoration: underline; }
.ballot-confirm { margin-top: 24px; padding: 22px; background: var(--c-cream); border-radius: var(--r); border: 1px solid var(--c-line); }
.ballot-confirm .btn { margin-top: 8px; }

/* --- Results / bars --- */
.winner-banner { background: linear-gradient(160deg, var(--c-ink), var(--c-ink-2)); color: #fff; padding: 34px; border-radius: 14px; text-align: center; margin-bottom: 30px; }
.winner-banner h2 { color: #fff; margin: 10px 0 4px; }
.winner-banner .seal { display: inline-block; font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; color: var(--c-gold); font-weight: 700; }
.winner-banner p { color: #cdd6e3; }
.finalists-head { margin: 30px 0 16px; }
.results-list { list-style: none; padding: 0; margin: 0; }
.results-list li { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.results-list li.is-winner .rl-top strong { color: var(--c-gold-d); }
.rl-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.rl-top strong { font-size: 1.05rem; }
.rl-pct { margin-left: auto; font-weight: 700; color: var(--c-ink); }
.bar { height: 8px; background: var(--c-line); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-gold), var(--c-gold-d)); border-radius: 99px; }

/* --- Winners showcase --- */
.winner-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.winner-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r); padding: 24px; position: relative; box-shadow: var(--shadow); }
.seal-mini { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--c-gold-d); background: var(--c-cream); padding: 4px 10px; border-radius: 99px; border: 1px solid var(--c-gold); }
.wc-cat { font-size: 1rem; color: var(--c-muted); margin: 12px 0 2px; font-family: var(--ff-body); font-weight: 600; }
.wc-biz strong { font-family: var(--ff-display); font-size: 1.5rem; color: var(--c-ink); }
.wc-blurb { color: var(--c-muted); font-size: .92rem; }

/* --- Misc --- */
.finalist-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.finalist-chips li { background: var(--c-cream); border: 1px solid var(--c-line); padding: 6px 14px; border-radius: 99px; font-size: .9rem; }
.nominate-cta-block { text-align: center; padding: 30px; background: var(--c-cream); border-radius: 14px; }
.empty-note { color: var(--c-muted); padding: 40px 0; text-align: center; }
.prose { max-width: 760px; padding-bottom: 60px; }
.prose h2 { margin-top: 36px; }
.how-list { padding-left: 0; list-style: none; counter-reset: step; }
.how-list li { padding: 10px 0 10px 44px; position: relative; }
.how-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 8px; width: 28px; height: 28px; background: var(--c-ink); color: var(--c-gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.big-check { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--c-cream); border: 2px solid var(--c-gold); color: var(--c-gold-d); font-size: 2.4rem; display: flex; align-items: center; justify-content: center; }

/* --- Alerts --- */
.alert { padding: 13px 18px; border-radius: var(--r); margin: 0 0 20px; font-size: .95rem; border-left: 4px solid; }
.alert.err  { background: #fdecec; border-color: #d9534f; color: #842029; }
.alert.warn { background: #fff7e6; border-color: var(--c-gold); color: #6b5310; }
.alert.ok   { background: #eaf7ee; border-color: #2e9e57; color: #1c5e35; }

/* --- Footer --- */
.site-footer { background: var(--c-ink); color: #cdd6e3; padding: 50px 0 30px; margin-top: 60px; }
.site-footer .brand-mark { color: #fff; }
.site-footer .brand-text strong { color: #fff; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 18px; }
.footer-grid .fine { color: #9fb0c4; max-width: 40ch; margin: 12px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.footer-links a { color: #cdd6e3; }
.copyright { color: #8294aa; }
.site-footer a { color: var(--c-gold); }

/* Email capture */
.optin { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--c-muted); margin: 4px 0 16px; cursor: pointer; }
.optin input { width: auto; margin: 3px 0 0; flex: none; accent-color: var(--c-gold-d); }
.footer-signup { max-width: 300px; }
.footer-signup strong { color: #fff; display: block; }
.footer-signup .fine { color: #9fb0c4; margin: 4px 0 10px; }
.news-signup { display: flex; gap: 8px; }
.news-signup input[type=email] { margin: 0; padding: 9px 12px; background: #fff; border: none; border-radius: var(--r); flex: 1; }
.news-signup .btn { white-space: nowrap; }
.ok-note { color: #8fd3a3 !important; margin-top: 8px; }

/* Winner / finalist badge kit */
.badge-kit { padding-bottom: 56px; }
.badge-kit-grid { display: grid; gap: 34px; grid-template-columns: 280px 1fr; align-items: start; }
.badge-preview { text-align: center; background: var(--c-cream); border: 1px solid var(--c-line); border-radius: 14px; padding: 22px; }
.badge-preview img { display: block; margin: 0 auto 16px; max-width: 240px; }
.embed-box { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; line-height: 1.5; padding: 12px; border: 1px solid var(--c-line); border-radius: var(--r); background: var(--c-cream); resize: vertical; margin-bottom: 10px; color: var(--c-ink); }
.badge-pick { list-style: none; padding: 0; margin: 0; }
.badge-pick li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.badge-cta { text-align: center; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--c-line); }
@media (max-width: 640px) { .badge-kit-grid { grid-template-columns: 1fr; } }

/* --- Responsive --- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: #fff; border-bottom: 1px solid var(--c-line); padding: 8px 22px 18px; }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 10px 0; width: 100%; }
  .hero-home { padding: 56px 0 64px; }
}
