/* ─────────────────────────────────────────────────────────────────────────
   HighOnCity portal — clean, calm, fast.
   No AI feel. Just a polished local-news + events portal.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #fafaf7;
  --bg-card: #ffffff;
  --ink: #15151a;
  --ink-muted: #6c6c75;
  --line: #e6e6e1;
  --accent: #d33a2c;
  --accent-2: #186b58;
  --shadow-sm: 0 1px 2px rgba(20, 20, 30, .04), 0 0 0 1px rgba(20, 20, 30, .04);
  --shadow-md: 0 8px 24px rgba(20, 20, 30, .08);
  --radius: 8px;
  --radius-lg: 14px;
  --container: 1440px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.hoc-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.hoc-muted { color: var(--ink-muted); }

/* ── HEADER ─────────────────────────────────────────────────────────── */
.hoc-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.hoc-header-row {
  display: flex; align-items: center; gap: 16px;
  height: 64px;
}
.hoc-header-row > .hoc-brand { margin-right: auto; }
.hoc-header-row > .hoc-search { flex: 0 1 320px; max-width: 320px; }
.hoc-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 18px; letter-spacing: -.01em;
  white-space: nowrap;
}
.hoc-brand-mark { color: var(--accent); font-size: 22px; line-height: 1; }
.hoc-brand-city { color: var(--ink-muted); font-weight: 500; }

.hoc-nav-row { border-top: 1px solid var(--line); padding: 8px 0; }
.hoc-nav-row .hoc-container { display: flex; justify-content: flex-end; }
.hoc-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-left: auto; justify-content: flex-end; }
.hoc-nav-link {
  font-size: 14px; color: var(--ink-muted); white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.hoc-nav-link:hover { color: var(--ink); border-bottom-color: var(--accent); }

.hoc-city-picker select {
  border: 1px solid var(--line); background: var(--bg-card);
  border-radius: 6px; padding: 6px 10px; font-size: 14px; cursor: pointer;
}

/* ── MAIN ───────────────────────────────────────────────────────────── */
.hoc-main { padding: 32px 24px 64px; }

/* ── HERO ───────────────────────────────────────────────────────────── */
.hoc-hero { margin-bottom: 40px; }
.hoc-hero-lg { padding: 64px 0 32px; text-align: center; }
.hoc-hero-title { font-size: 44px; line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; }
.hoc-hero-deck { font-size: 18px; color: var(--ink-muted); max-width: 640px; margin: 0 auto; }

.hoc-hero-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hoc-hero-link { display: grid; grid-template-columns: 1.4fr 1fr; }
.hoc-hero-image { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.hoc-hero-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.hoc-hero-tag {
  display: inline-block; background: var(--accent); color: white;
  padding: 4px 10px; border-radius: 4px; font-size: 12px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 16px; align-self: flex-start;
}
.hoc-hero-card .hoc-hero-title { font-size: 32px; margin-bottom: 12px; }

@media (max-width: 768px) {
  .hoc-hero-link { grid-template-columns: 1fr; }
  .hoc-hero-image { min-height: 240px; }
  .hoc-hero-body { padding: 24px; }
  .hoc-hero-card .hoc-hero-title { font-size: 26px; }
  .hoc-hero-lg .hoc-hero-title { font-size: 32px; }
}

/* ── SECTION ────────────────────────────────────────────────────────── */
.hoc-section { margin-bottom: 56px; }
.hoc-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.hoc-section-head h1, .hoc-section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.hoc-section-link { color: var(--accent); font-size: 14px; font-weight: 500; }

/* ── GRIDS ──────────────────────────────────────────────────────────── */
.hoc-grid { display: grid; gap: 20px; }
.hoc-grid-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.hoc-grid-events { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ── CARDS ──────────────────────────────────────────────────────────── */
.hoc-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.hoc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hoc-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hoc-card-body { padding: 16px; }
.hoc-card-cat {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 8px;
}
.hoc-card-title { font-size: 17px; line-height: 1.3; margin: 0 0 8px; }
.hoc-card-deck { font-size: 14px; color: var(--ink-muted); margin: 0; }

/* ── EVENTS ─────────────────────────────────────────────────────────── */
.hoc-event {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.hoc-event-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hoc-event-body { padding: 16px; }
.hoc-event-time { font-size: 12px; color: var(--accent-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.hoc-event-title { font-size: 16px; margin: 6px 0; }
.hoc-event-venue { font-size: 13px; color: var(--ink-muted); margin: 4px 0; }
.hoc-event-desc { font-size: 13px; color: var(--ink-muted); margin: 8px 0; }
.hoc-event-cta { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--accent); font-weight: 500; }

/* ── 5 THINGS TODAY ─────────────────────────────────────────────────── */
.hoc-five-today-card {
  display: block; background: var(--ink); color: white;
  padding: 32px; border-radius: var(--radius-lg);
}
.hoc-five-today-card .hoc-card-cat { color: white; opacity: .7; }
.hoc-five-today-card h2 { color: white; margin: 8px 0; font-size: 26px; }
.hoc-five-today-card p { color: rgba(255,255,255,.8); margin: 0; }
.hoc-five-today-card:hover { background: var(--accent); color: white; }

/* ── ARTICLE ────────────────────────────────────────────────────────── */
.hoc-article { max-width: 720px; margin: 0 auto; }
.hoc-breadcrumb { font-size: 13px; color: var(--ink-muted); margin-bottom: 16px; }
.hoc-breadcrumb a { color: var(--ink-muted); }
.hoc-breadcrumb span { padding: 0 8px; }
.hoc-article-header h1 { font-size: 36px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -.02em; }
.hoc-article-deck { font-size: 19px; color: var(--ink-muted); margin: 0 0 12px; }
.hoc-article-figure { margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
.hoc-article-body { font-size: 17px; line-height: 1.7; }
.hoc-article-body p { margin: 0 0 1em; }
.hoc-article-body h2 { font-size: 22px; margin-top: 1.6em; }

.hoc-section-related { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ── PROSE PAGES (about, privacy) ───────────────────────────────────── */
.hoc-prose { max-width: 680px; margin: 0 auto; }
.hoc-prose h1 { font-size: 32px; letter-spacing: -.01em; }
.hoc-prose h2 { font-size: 20px; margin-top: 1.8em; }
.hoc-prose ul { padding-left: 22px; }

/* ── FORM ───────────────────────────────────────────────────────────── */
.hoc-form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.hoc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.hoc-form input, .hoc-form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--bg-card);
}
.hoc-form input:focus, .hoc-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -2px; border-color: transparent; }
.hoc-btn {
  display: inline-block; padding: 10px 18px; border-radius: 6px;
  border: none; cursor: pointer; font-weight: 500; font: inherit;
}
.hoc-btn-primary { background: var(--ink); color: white; }
.hoc-btn-primary:hover { background: var(--accent); }

.hoc-callout { padding: 14px 16px; border-radius: 8px; margin: 16px 0; }
.hoc-callout-ok { background: #e6f4f0; color: var(--accent-2); }
.hoc-callout-err { background: #fce8e6; color: var(--accent); }

/* ── CITY GRID (landing) ────────────────────────────────────────────── */
.hoc-city-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 32px;
}
.hoc-city-card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 32px 20px; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.hoc-city-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hoc-city-card-name { font-size: 22px; font-weight: 600; }
.hoc-city-card-prov { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }

/* ── FOOTER ─────────────────────────────────────────────────────────── */
.hoc-footer {
  margin-top: 80px;
  padding: 48px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.hoc-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 24px;
}
.hoc-footer ul { list-style: none; padding: 0; margin: 8px 0; }
.hoc-footer li { padding: 4px 0; }
.hoc-footer a { color: var(--ink-muted); }
.hoc-footer a:hover { color: var(--accent); }
.hoc-copy { font-size: 12px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ─── Header search ──────────────────────────────────────────────────── */
.hoc-search {
  display: flex; align-items: center;
  margin-left: 12px;
}
.hoc-search input[type="search"] {
  padding: 7px 12px;
  border: 1px solid var(--hoc-line, #e2e8f0);
  border-radius: 999px;
  background: var(--hoc-surface, #ffffff);
  color: inherit;
  font-family: inherit; font-size: 14px;
  width: 200px; max-width: 50vw;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hoc-search input[type="search"]:focus {
  outline: none;
  border-color: var(--hoc-accent, #0369a1);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.15);
}
@media (max-width: 720px) {
  .hoc-search input[type="search"] { width: 140px; }
}

/* ─── Search results page ────────────────────────────────────────────── */
.hoc-search-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 16px 0 24px;
}
.hoc-search-input {
  flex: 1 1 280px; min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--hoc-line, #e2e8f0);
  border-radius: 6px;
  font-size: 16px;
}
.hoc-search-filter {
  padding: 10px 14px;
  border: 1px solid var(--hoc-line, #e2e8f0);
  border-radius: 6px;
  font-size: 14px;
  background: white;
}
.hoc-btn {
  padding: 10px 20px;
  background: var(--hoc-accent, #0369a1);
  color: white; border: none;
  border-radius: 6px;
  font-size: 14px; font-weight: 500;
  cursor: pointer;
}
.hoc-btn:hover { background: #075985; }
.hoc-search-results { display: flex; flex-direction: column; gap: 24px; margin-top: 16px; }
.hoc-search-result {
  display: flex; gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hoc-line, #e2e8f0);
}
.hoc-search-img { flex: 0 0 160px; }
.hoc-search-img img {
  width: 160px; height: 100px; object-fit: cover;
  border-radius: 6px; display: block;
}
.hoc-search-body { flex: 1; }
@media (max-width: 600px) {
  .hoc-search-result { flex-direction: column; }
  .hoc-search-img { flex: 0; }
  .hoc-search-img img { width: 100%; height: auto; max-height: 200px; }
}
.hoc-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.hoc-pill {
  display: inline-block; padding: 2px 8px;
  background: var(--hoc-bg-soft, #f1f5f9);
  color: var(--hoc-muted, #475569);
  border-radius: 999px;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hoc-small { font-size: 12px; }

/* ─── Sponsored banner ───────────────────────────────────────────────── */
.hoc-sponsored-banner {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: #fef3c7;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 12px;
}
.hoc-sponsored-tag {
  font-weight: 700; font-size: 10px;
  color: #92400e; letter-spacing: 0.06em;
}
.hoc-sponsored-banner a { color: #92400e; }

/* ─── Comments section ───────────────────────────────────────────────── */
.hoc-section-comments {
  background: var(--hoc-bg-soft, #f8fafc);
  padding-top: 32px; padding-bottom: 32px;
  margin-top: 40px;
}

/* ─── Card: sponsored ─────────────────────────────────────────────────── */
.hoc-card.is-sponsored {
  border: 2px solid #fcd34d;
  position: relative;
}
.hoc-card.is-sponsored::before {
  content: "SPONSORED";
  position: absolute; top: 8px; right: 8px;
  background: #fef3c7; color: #92400e;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  padding: 2px 8px; border-radius: 999px;
  z-index: 1;
}

/* ── Card grid: responsive ───────────────────────────────────────────── */
.hoc-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* Cleaner broken-image fallback — soft gradient instead of glaring icon */
.hoc-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* When the grid has fewer cards than fits, center them */
.hoc-grid-cards { justify-content: center; }
