/* ROC Digest - Site Styles */
/* Colors: Navy #1a3a5c, Gold #e8b931, White #ffffff, Light Gray #f5f7fa, Dark Text #1a1a2e */

:root {
  --navy: #1a3a5c;
  --navy-dark: #132d47;
  --gold: #e8b931;
  --gold-hover: #d4a52b;
  --white: #ffffff;
  --light: #f5f7fa;
  --lighter: #eef1f5;
  --text: #1a1a2e;
  --text-muted: #5a6577;
  --border: #dde2e8;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  background: var(--white);
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; display: block; }

/* Header */
.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.header-logo img {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.header-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.header-nav .btn-subscribe {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 6px;
  margin-left: 8px;
}

.header-nav .btn-subscribe:hover {
  background: var(--gold-hover);
  color: var(--navy-dark);
}

/* Mobile nav */
.mobile-toggle { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; padding: 4px; }

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .header-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy-dark); flex-direction: column; padding: 16px; gap: 4px; }
  .header-nav.open { display: flex; }
  .header-nav a { padding: 10px 16px; width: 100%; }
  .header-nav .btn-subscribe { margin-left: 0; text-align: center; }
}

/* Container */
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 60px 24px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero .gold { color: var(--gold); }

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .hero { padding: 40px 16px; }
}

/* Signup Box */
.signup-box {
  background: var(--light);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 32px 0;
}

.signup-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.signup-box p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.signup-box-inline {
  background: var(--navy);
  color: var(--white);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 40px 0;
  text-align: center;
}

.signup-box-inline h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.signup-box-inline p { color: rgba(255,255,255,0.75); font-size: 14px; margin-bottom: 16px; }

/* Category Cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.category-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  color: var(--text);
}

.category-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}

.category-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.category-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.tag-events { background: #e8f4fd; color: #1a73e8; }
.tag-food { background: #fef3e2; color: #e8841a; }
.tag-family { background: #e8f8e8; color: #1a8a3f; }
.tag-community { background: #f3e8fd; color: #7b1ae8; }
.tag-free { background: #e8f8f4; color: #1a8a7b; }
.tag-business { background: #fde8e8; color: #c41a1a; }
.tag-new { background: var(--gold); color: var(--navy-dark); }

/* Content Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--light); padding: 48px 0; }

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 24px;
}

/* Page Content */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 40px 24px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto;
}

.page-header p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  max-width: 900px;
  margin: 8px auto 0;
}

.page-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin: 16px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.content { padding: 32px 0 48px; }

.content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--navy);
}

.content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }

.content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.content p { margin-bottom: 16px; }

.content ul, .content ol {
  margin: 0 0 16px 24px;
}

.content li { margin-bottom: 8px; }

/* Event Cards */
.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.event-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--navy);
}

.event-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.event-meta strong { color: var(--navy); }

.event-card p { font-size: 14px; margin: 0; color: var(--text-muted); }

.event-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
}

.event-tag-free { background: #e8f8f4; color: #1a8a7b; }
.event-tag-family { background: #e8f8e8; color: #1a8a3f; }
.event-tag-food { background: #fef3e2; color: #e8841a; }
.event-tag-music { background: #e8f4fd; color: #1a73e8; }

/* Business Cards */
.biz-card {
  display: flex;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.biz-rank {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  min-width: 32px;
}

.biz-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 2px; color: var(--navy); }
.biz-info .biz-type { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.biz-info p { font-size: 14px; color: var(--text-muted); margin: 0; }
.biz-info .biz-detail { font-size: 13px; }

/* FAQ Section */
.faq { margin: 40px 0; }
.faq h2 { font-size: 22px; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--navy);
}

.faq-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p { font-size: 14px; line-height: 1.6; margin-top: 12px; }

.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  padding: 3px 0;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

/* Center Beehiiv signup forms (the embed iframe is full-width but the form inside is a fixed 400px, pinned left) */
iframe[src*="subscribe-forms.beehiiv.com"] {
  width: 400px !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

/* Text wordmark in the navy header (replaces the white-background logo image) */
.header-logo .logo-text { color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; white-space: nowrap; }
.header-logo .logo-roc { color: #e8b931; }
.header-logo:hover { text-decoration: none; }
.footer-logo-text { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; display: inline-block; }
.footer-logo-text .logo-roc { color: #e8b931; }
