/* KnoxvilleServices.com — matches the Fall 2026 EDDM mailer brand brief */
:root {
  --navy: #14243A;
  --navy-hover: #0B1626;
  --orange: #F07A2A;
  --light-blue: #C9D6E5;
  --pale: #EAF0F6;
  --slate: #3E4C5E;
  --white: #FFFFFF;
  --ok: #1F6B3A;
  --err: #9B2C1F;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
}
a { color: var(--navy); }
a:hover { color: var(--navy-hover); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header band */
.band { background: var(--navy); color: var(--white); }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 14px; flex-wrap: wrap; }
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 0.95; }
.wm-1 { color: var(--white); font-weight: 900; letter-spacing: -2px; font-size: clamp(36px, 7vw, 62px); }
.wm-2 { color: var(--orange); font-weight: 800; letter-spacing: -1px; font-size: clamp(27px, 5.25vw, 46px); }
.wm-com { color: var(--light-blue); font-weight: 600; }
.referral { display: flex; flex-direction: column; align-items: center; }
.referral-phone { color: var(--white); font-weight: 800; font-size: clamp(22px, 3.5vw, 32px); text-decoration: none; letter-spacing: -0.5px; }
.referral-phone:hover { color: var(--light-blue); }
.label, .label-dark { font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; }
.label { color: var(--light-blue); }
.label-dark { color: var(--slate); display: block; margin-bottom: 6px; }
.nav { display: flex; gap: 18px; padding-bottom: 14px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--light-blue); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--white); }
.nav .nav-cta { margin-left: auto; color: var(--navy); background: var(--orange); padding: 6px 14px; border-radius: 6px; }
.nav .nav-cta:hover { color: var(--navy); background: var(--white); }

/* Headline */
.hero { text-align: center; padding: 40px 0 24px; }
.hero h1 { font-weight: 900; letter-spacing: -1px; line-height: 1; font-size: clamp(34px, 6vw, 56px); margin: 0 0 16px; }
.hero p { color: var(--slate); margin: 4px 0; }
.hero strong { color: var(--navy); }
h1, h2, h3 { color: var(--navy); }
h1.page { font-weight: 900; letter-spacing: -1px; line-height: 1.05; font-size: clamp(30px, 5vw, 44px); margin: 32px 0 8px; }
h2 { font-weight: 900; letter-spacing: -0.5px; font-size: 26px; margin: 32px 0 12px; }
.lead { color: var(--slate); font-size: 18px; max-width: 720px; }
.fine { color: var(--slate); font-size: 13px; }

/* Category chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 24px; }
.chip { text-decoration: none; border: 2px solid var(--navy); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 14px; background: var(--white); }
.chip-on, .chip:hover { background: var(--navy); color: var(--white); }
.chip-n { color: var(--orange); font-weight: 800; }

/* Business cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }
.card { border: 2px solid var(--navy); border-radius: 6px; background: var(--white); overflow: hidden; display: flex; flex-direction: column; }
.card-cat { background: var(--pale); padding: 6px 14px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.badge { background: var(--orange); color: var(--navy); border-radius: 4px; padding: 2px 8px; font-size: 11px; letter-spacing: 0.5px; white-space: nowrap; }
.badge-quiet { background: var(--white); border: 1px solid var(--slate); color: var(--slate); }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-name { font-weight: 900; font-size: 24px; line-height: 1.1; margin: 0; letter-spacing: -0.5px; }
.card-name a { text-decoration: none; }
.card-name a:hover { text-decoration: underline; }
.card-value { color: var(--slate); font-size: 14px; margin: 0; }
.offer { border: 2px dashed var(--orange); border-radius: 6px; padding: 10px 12px; font-size: 14px; font-weight: 700; }
.offer span { font-weight: 500; color: var(--slate); }
.card-contact { font-size: 18px; font-weight: 800; margin: auto 0 0; }
.card-contact a { text-decoration: none; }
.card-site { font-weight: 600; color: var(--slate); font-size: 15px; }
.empty { color: var(--slate); padding: 24px; border: 2px dashed var(--light-blue); border-radius: 6px; text-align: center; }

/* Business detail */
.detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; margin: 24px 0 40px; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; } }
.panel { border: 2px solid var(--navy); border-radius: 6px; padding: 16px; }
.panel-pale { background: var(--pale); border-color: var(--pale); }
.redeem { border: 2px dashed var(--orange); border-radius: 6px; padding: 16px; font-weight: 700; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0 32px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 2px solid var(--navy); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.plan-price { font-weight: 900; font-size: 30px; letter-spacing: -0.5px; }
.plan ul { padding-left: 18px; margin: 0; color: var(--slate); }

/* Forms */
form.stack { display: grid; gap: 14px; max-width: 720px; margin-bottom: 40px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
label { font-weight: 700; font-size: 14px; display: block; margin-bottom: 4px; }
.hint { font-weight: 500; color: var(--slate); font-size: 13px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--navy); padding: 10px 12px;
  border: 2px solid var(--navy); border-radius: 6px; background: var(--white);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: auto; margin-top: 4px; }
button, .btn {
  font: inherit; font-weight: 800; background: var(--navy); color: var(--white); border: 0;
  border-radius: 6px; padding: 12px 20px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center;
}
button:hover, .btn:hover { background: var(--navy-hover); color: var(--white); }
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-orange:hover { background: var(--navy); color: var(--white); }
.btn-small { padding: 6px 12px; font-size: 14px; }
.btn-ghost { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; }

.notice { border-radius: 6px; padding: 12px 16px; margin: 16px 0; font-weight: 700; }
.notice-ok { background: #E6F2EA; color: var(--ok); }
.notice-err { background: #F8E7E4; color: var(--err); }
.notice-info { background: var(--pale); color: var(--navy); }

/* Footer */
.footer { background: var(--pale); margin-top: 48px; padding: 28px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-weight: 900; font-size: 20px; margin: 0 0 4px; }
.footer p { margin: 4px 0; }
.footer-links { margin-top: 16px; }

/* Admin */
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 24px; }
.admin th, .admin td { text-align: left; padding: 8px; border-bottom: 1px solid var(--light-blue); vertical-align: top; }
.admin th { background: var(--pale); font-weight: 800; }
.admin .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin .actions form { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.stat { border: 2px solid var(--navy); border-radius: 6px; padding: 12px; }
.stat b { display: block; font-size: 28px; font-weight: 900; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--pale); font-size: 12px; font-weight: 700; }
.pill-active, .pill-paid, .pill-sent, .pill-confirmed { background: #E6F2EA; color: var(--ok); }
.pill-failed, .pill-canceled, .pill-void { background: #F8E7E4; color: var(--err); }

.card-nbhd { margin: 0; font-size: 13px; color: var(--slate); }
.nbhd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 12px 0 24px; }
.nbhd { border: 2px solid var(--navy); border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.nbhd h3 { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -0.3px; }
.nbhd-pick { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--navy); border-radius: 6px; padding: 10px 12px; font-weight: 500; cursor: pointer; }
.nbhd-pick input { width: auto; margin-top: 4px; }
.nbhd-pick.full { opacity: .55; cursor: not-allowed; }
.price-line { font-size: 18px; font-weight: 800; }
.total { border: 2px dashed var(--orange); border-radius: 6px; padding: 12px 14px; font-weight: 700; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; padding: 0; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label { display: flex; gap: 8px; align-items: center; border: 2px solid var(--navy); border-radius: 6px; padding: 8px 12px; font-weight: 600; margin: 0; cursor: pointer; }
.radio-row input { width: auto; }
