/* ============================================================
   coastal-directory-shared/assets/style.css
   Canonical external stylesheet for all Coastal Directory sites.

   Brand colors come from CSS variables injected per-page by the
   page shell (see lib/templates/shell.js). Defaults below ensure
   pages still work if the variable injection is missing.
   ============================================================ */

:root {
  --accent:        #1a3a5c;
  --accent-dark:   #0f2740;
  --accent-hover:  #0f2740;
  --secondary:     #c9a227;

  --bg:            #fafaf7;
  --card-bg:       #ffffff;
  --border:        #ebebeb;
  --border-hover:  #d5d5d5;
  --text:          #222222;
  --text-muted:    #666666;
  --text-soft:     #888888;
  --text-dim:      #999999;

  --radius:        8px;
  --radius-card:   12px;
  --shadow-card:   0 1px 2px rgba(0,0,0,0.02);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 20px;
  flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; }
.brand-mark {
  font-size: 19px;
  font-weight: 500;
  color: #111;
  letter-spacing: -0.3px;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1;
}
.brand-rule {
  height: 3px;
  width: 42px;
  background: var(--accent);
  margin-top: 5px;
}
nav.primary {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: #444;
  align-items: center;
}
nav.primary a { transition: color .15s; }
nav.primary a:hover { color: var(--accent); }
nav.primary .cta {
  padding: 9px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 13px;
  transition: all .15s;
}
nav.primary .cta.outline {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
}
nav.primary .cta.outline:hover {
  background: var(--accent);
  color: #fff;
}
nav.primary .cta.filled {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
nav.primary .cta.filled:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
@media (max-width: 820px) {
  nav.primary {
    gap: 14px;
    font-size: 13px;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  nav.primary .cta { padding: 7px 12px; font-size: 12px; }
}

/* ------------------------------------------------------------
   PAGE INTRO HERO
   ------------------------------------------------------------ */
.page-intro {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 44px 20px 32px;
}
.page-intro .wrap {
  max-width: 1100px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}
h1 {
  font-size: 34px;
  font-weight: 500;
  color: #111;
  line-height: 1.15;
  font-family: Georgia, serif;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}
.lede {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 560px) {
  h1 { font-size: 26px; }
  .page-intro { padding: 32px 20px 24px; }
}

/* ------------------------------------------------------------
   MAIN CONTENT
   ------------------------------------------------------------ */
main.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 42px 20px 60px;
}
main.content-wide {
  max-width: 1100px;
}
main.content h2 {
  font-size: 22px;
  font-weight: 500;
  color: #111;
  font-family: Georgia, serif;
  margin: 36px 0 12px;
  letter-spacing: -0.3px;
}
main.content h2:first-child { margin-top: 0; }
main.content h3 {
  font-size: 17px;
  font-weight: 500;
  color: #111;
  margin: 22px 0 8px;
}
main.content p {
  font-size: 15px;
  color: #444;
  line-height: 1.75;
  margin: 0 0 16px;
}
main.content a:not(.btn):not(.shop-card):not(.event-card):not(.neighbor-link) {
  color: var(--accent);
  font-weight: 500;
}
main.content a:not(.btn):not(.shop-card):not(.event-card):not(.neighbor-link):hover {
  text-decoration: underline;
}
main.content ul {
  font-size: 15px;
  color: #444;
  line-height: 1.8;
  padding-left: 22px;
  margin: 0 0 18px;
}
main.content li { margin-bottom: 6px; }

/* ------------------------------------------------------------
   BREADCRUMB
   ------------------------------------------------------------ */
.breadcrumb {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--accent); }

/* ------------------------------------------------------------
   CARDS — shop card, city card, event card
   ------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.shop-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  transition: all .15s;
  display: block;
  position: relative;
}
.shop-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.shop-card.is-featured {
  border: 2px solid var(--accent);
  margin-top: 10px;
}
.shop-card h3 {
  font-size: 16px;
  font-weight: 500;
  color: #111;
  margin: 0 0 4px;
  line-height: 1.3;
}
.shop-card .loc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.shop-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.shop-card.city-card {
  text-align: center;
}
.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e7f8e7;
  color: #1a6a3a;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
}
.featured-ribbon {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.featured-badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent);
  color: #fff;
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
  margin-right: 8px;
}
.tag {
  font-size: 11px;
  color: #555;
  background: #f5f5f5;
  padding: 4px 10px;
  border-radius: 12px;
}
.tag.cgc { color: #8a5a00; background: #fff4d6; }
.tag.feat { color: var(--accent); background: rgba(192,48,48,0.1); }
.star { font-size: 11px; line-height: 1; }

.event-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all .15s;
}
.event-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.date-block {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  background: var(--bg);
  border: 1px solid #f0f0f0;
  border-radius: var(--radius);
  padding: 8px 4px;
}
.date-block .mo {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 500;
}
.date-block .day {
  font-size: 20px;
  font-weight: 500;
  color: #111;
  line-height: 1.1;
  font-family: Georgia, serif;
}
.event-body { flex: 1; min-width: 0; }
.event-body h3 {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  margin: 0 0 3px;
  line-height: 1.3;
}
.event-body .meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   DETAIL ROWS (shop page)
   ------------------------------------------------------------ */
.detail-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}
.detail-row .label {
  color: var(--text-soft);
  min-width: 80px;
  flex-shrink: 0;
}
.detail-row .value { color: #333; }

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn.outline {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn.outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ------------------------------------------------------------
   NEIGHBORING STATES
   ------------------------------------------------------------ */
.neighbors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 20px;
}
.neighbor-link {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13px;
  color: #333;
  transition: all .15s;
}
.neighbor-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ------------------------------------------------------------
   CLAIM CTA (shown on every shop page)
   ------------------------------------------------------------ */
.claim-cta {
  margin-top: 36px;
  padding: 18px 22px;
  background: #fafaf7;
  border: 1px solid var(--border);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.claim-cta strong { font-weight: 600; color: #222; }

/* ------------------------------------------------------------
   PERSISTENT CTA BANNER (footer-area)
   ------------------------------------------------------------ */
.persistent-cta {
  background: #1a1a1a;
  color: #fff;
  padding: 52px 20px;
  text-align: center;
}
.persistent-cta h2 {
  font-size: 26px;
  font-weight: 500;
  color: #fff;
  font-family: Georgia, serif;
  margin: 0 0 10px;
}
.persistent-cta p {
  font-size: 15px;
  color: #bbb;
  max-width: 560px;
  margin: 0 auto 22px;
}
.persistent-cta .btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.persistent-cta .btn.outline {
  background: transparent;
  color: #fff;
  border: 1px solid #444;
}
.persistent-cta .btn.outline:hover {
  background: #fff;
  color: #1a1a1a;
  border-color: #fff;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 40px 20px 20px;
  color: var(--text-muted);
}
footer .inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}
footer a { color: var(--text-soft); }
footer a:hover { color: var(--accent); }

/* ------------------------------------------------------------
   UTILITIES
   ------------------------------------------------------------ */
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
