/* Richmond Local — shared styles for resident (/) and advertiser (/advertise) pages */
:root {
  --ink: #16241f;
  --ink-soft: #4a5a54;
  --paper: #fbf8f2;
  --card: #ffffff;
  --line: #e4ddd0;
  --brand: #1f5c4a;        /* Richmond green */
  --brand-dark: #153f33;
  --accent: #f2b33d;       /* warm marigold */
  --accent-soft: #fdf1d8;
  --sale: #c4462b;         /* deadline / urgency */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22,36,31,.06), 0 8px 24px rgba(22,36,31,.06);
  --max: 1120px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
[id] { scroll-margin-top: 72px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .6em; display: block; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(251,248,242,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--brand); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s, background .12s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 400px at 80% -10%, var(--accent-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }

/* Signup */
.signup { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.signup h3 { margin-bottom: .3em; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .85rem; cursor: pointer; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--ink-soft); margin-bottom: 14px; }
.consent input { margin-top: 3px; }
.signup .btn { width: 100%; }
.form-note { font-size: .8rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }
.form-error { color: var(--sale); font-size: .85rem; font-weight: 600; margin: 10px 0 0; text-align: center; }
.form-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup { position: relative; }
.signup .btn:disabled { opacity: .7; cursor: wait; transform: none; }
.form-success { display: none; padding: 14px; background: var(--accent-soft); border-radius: 10px; font-weight: 600; text-align: center; }

/* Cards / grids */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* Sponsored feature */
.feature { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; background: var(--brand); color: #fff; box-shadow: var(--shadow); }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }
.feature-art { min-height: 260px; background: linear-gradient(135deg, var(--accent) 0%, #e8913a 100%); display: grid; place-items: center; text-align: center; font-family: "Fraunces", serif; font-size: 2.4rem; line-height: 1.1; color: var(--ink); }
.feature-body { padding: 32px; }
.feature-body h3 { font-size: 1.7rem; }
.feature-body .btn { margin-top: 8px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.18); margin-bottom: 14px; }
.tag-light { background: var(--accent-soft); color: var(--ink); }

/* Deals */
.deal { display: flex; flex-direction: column; }
.deal .biz { font-size: .82rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.deal h3 { margin: 6px 0 8px; }
.deal .meta { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); font-size: .85rem; }
.deal .ends { color: var(--sale); font-weight: 600; }
.deal .ends.recurring { color: var(--ink-soft); font-weight: 500; }
.deal .cat { font-size: .78rem; color: var(--brand); font-weight: 600; }
.deal .offers { list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--ink-soft); }
.deal .offers li { padding: 4px 0 4px 16px; position: relative; }
.deal .offers li::before { content: "•"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.deal-open { text-decoration: none; color: var(--ink); border: 2px dashed var(--line); background: transparent; box-shadow: none; }
.deal-open:hover { border-color: var(--brand); }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 860px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .cats { grid-template-columns: repeat(2, 1fr); } }
.cat-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 12px; text-align: center; text-decoration: none; color: var(--ink); font-weight: 600; transition: border-color .12s, transform .12s; }
.cat-tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.cat-tile .ico { font-size: 1.8rem; display: block; margin-bottom: 6px; }

/* Around Wayne County */
.news-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-date { flex: 0 0 64px; align-self: flex-start; text-align: center; background: var(--accent-soft); border-radius: 10px; padding: 8px 0; font-weight: 700; line-height: 1.1; }
.news-item h3 { margin-bottom: .2em; }
.news-meta { font-size: .8rem; font-weight: 600; color: var(--brand); margin: 0 0 .35em; }
.news-date small { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

/* Band CTA */
.band { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { margin: 0 0 .3em; }
.band p { margin: 0; color: #c9d3cf; }

/* Pricing */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured { border: 2px solid var(--brand); }
.price-card .badge { position: absolute; top: -12px; left: 22px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.price { font-family: "Fraunces", serif; font-size: 2.6rem; font-weight: 700; margin: 4px 0 2px; }
.price small { font-family: "Inter", sans-serif; font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.price-card li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px solid #f1ece2; font-size: .95rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.price-card .btn { width: 100%; }
.limit { font-size: .8rem; color: var(--sale); font-weight: 600; margin-top: 10px; text-align: center; }

/* Founding offer */
.founding { background: var(--accent-soft); border: 1.5px dashed var(--accent); border-radius: var(--radius); padding: 18px 22px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 36px; }
.founding strong { font-size: 1.05rem; }

/* Steps */
.steps { counter-reset: s; }
.step { position: relative; padding-left: 56px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* Ad mockups */
.ad-mock { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.ad-mock .ad-top { display: flex; align-items: center; gap: 10px; padding: 12px; font-size: .85rem; }
.ad-mock .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.ad-mock .ad-art { aspect-ratio: 1 / 1; display: grid; place-items: center; text-align: center; padding: 24px; font-family: "Fraunces", serif; font-size: 1.7rem; line-height: 1.15; }
.ad-mock .ad-img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.ad-mock .ad-cta { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: #f4f1ea; font-size: .85rem; }
.ad-mock .ad-cta b { background: #e4e0d6; padding: 6px 12px; border-radius: 6px; font-size: .8rem; }

/* Report table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--brand); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }

/* Report mock */
.report { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.bar { height: 12px; background: #eee7da; border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.kpi { background: var(--paper); border-radius: 10px; padding: 12px; }
.kpi b { display: block; font-size: 1.3rem; font-family: "Fraunces", serif; }
.kpi span { font-size: .78rem; color: var(--ink-soft); }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 10px; }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--ink-soft); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* Footer */
.site-footer { background: var(--brand-dark); color: #d6e2dd; padding: 48px 0 28px; margin-top: 40px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 32px; padding-top: 20px; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.sample-note { font-size: .78rem; color: var(--ink-soft); font-style: italic; }
