/* ============================================
   CoinsNearMe.co — Design System
   Navy #1a3a5c primary, Gold #c9a227 accent
   ============================================ */
:root {
  --navy: #1a3a5c;
  --navy-dark: #0f2740;
  --navy-light: #2a5a8c;
  --gold: #c9a227;
  --gold-light: #e8c84a;
  --gold-bg: #fdf8e8;
  --green: #1a6a3a;
  --green-bg: #e7f8e7;
  --bg: #fafafa;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --border: #ebebeb;
  --border-hover: #d5d5d5;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.10);
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --max-width: 1200px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-light); }
img { max-width: 100%; display: block; }

/* ---- HEADER ---- */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { font-family: var(--font-serif); font-size: 20px; font-weight: 400; color: var(--text); position: relative; display: inline-block; letter-spacing: -0.3px; }
.wordmark::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 42px; height: 3px; background: var(--navy); border-radius: 2px; }
.nav-desktop { display: flex; align-items: center; gap: 6px; }
.nav-desktop a { font-size: 14px; color: var(--text-secondary); padding: 8px 12px; border-radius: 8px; transition: background var(--transition), color var(--transition); }
.nav-desktop a:hover { background: #f5f5f5; color: var(--text); }
.nav-desktop .nav-cta { background: var(--navy); color: var(--white); font-weight: 500; }
.nav-desktop .nav-cta:hover { background: var(--navy-dark); color: var(--white); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: var(--transition); }
.nav-mobile { display: none; background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 20px 20px; }
.nav-mobile.open { display: block; }
.nav-mobile a { display: block; padding: 10px 0; font-size: 15px; color: var(--text-secondary); border-bottom: 1px solid #f5f5f5; }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .nav-cta { display: inline-block; background: var(--navy); color: var(--white); padding: 10px 20px; border-radius: 8px; margin-top: 12px; font-weight: 500; text-align: center; }
@media (max-width: 768px) { .nav-desktop { display: none; } .nav-toggle { display: block; } }

/* ---- HERO / PAGE HEADER ---- */
.hero, .page-header { background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%); padding: 60px 20px 48px; text-align: center; }
.hero-inner, .page-header-inner { max-width: 680px; margin: 0 auto; }
.hero-badge, .page-badge { display: inline-block; font-size: 13px; color: var(--navy); background: rgba(26,58,92,0.08); padding: 6px 14px; border-radius: 20px; margin-bottom: 20px; font-weight: 500; }
.hero h1, .page-header h1 { font-family: var(--font-serif); font-size: 40px; font-weight: 400; line-height: 1.2; color: var(--text); margin-bottom: 16px; }
.hero p, .page-header p { font-size: 17px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 28px; }
@media (max-width: 600px) { .hero, .page-header { padding: 40px 16px 36px; } .hero h1, .page-header h1 { font-size: 28px; } .hero p, .page-header p { font-size: 15px; } }

/* ---- SEARCH BAR ---- */
.search-bar { display: flex; max-width: 520px; margin: 0 auto 16px; background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color var(--transition), box-shadow var(--transition); }
.search-bar:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,92,0.1); }
.search-bar input { flex: 1; border: none; padding: 14px 18px; font-size: 15px; font-family: var(--font-body); outline: none; background: transparent; }
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar button { background: var(--navy); color: var(--white); border: none; padding: 14px 24px; font-size: 15px; font-weight: 500; cursor: pointer; font-family: var(--font-body); transition: background var(--transition); }
.search-bar button:hover { background: var(--navy-dark); }
.search-location { text-align: center; margin-bottom: 20px; }
.search-location a { font-size: 14px; color: var(--navy); cursor: pointer; }
.browse-states { font-size: 14px; color: var(--text-muted); }
.browse-states a { color: var(--text-secondary); font-weight: 500; }
.browse-states a:hover { color: var(--navy); }

/* ---- STATS ---- */
.stats-row { display: flex; justify-content: center; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number { font-family: var(--font-serif); font-size: 28px; color: var(--navy); display: block; }
.stat-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
@media (max-width: 600px) { .stats-row { gap: 24px; } .stat-number { font-size: 22px; } }

/* ---- SECTIONS ---- */
.section { max-width: var(--max-width); margin: 0 auto; padding: 48px 20px; }
.section-title { font-family: var(--font-serif); font-size: 24px; font-weight: 400; margin-bottom: 8px; }
.section-sub { color: var(--text-secondary); font-size: 15px; margin-bottom: 24px; }
.section-link { font-size: 14px; color: var(--navy); font-weight: 500; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; flex-wrap: wrap; gap: 8px; }

/* ---- CATEGORY CARDS ---- */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px; text-align: center; transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); cursor: pointer; text-decoration: none; color: var(--text); }
.cat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-hover); color: var(--text); }
.cat-icon { font-size: 28px; margin-bottom: 8px; display: block; }
.cat-title { font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.cat-desc { font-size: 12px; color: var(--text-muted); }
@media (max-width: 768px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- SHOP / EVENT CARDS ---- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); position: relative; }
.card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card.featured { border-color: var(--navy); border-width: 2px; }
.card.featured::before { content: '★ Featured'; position: absolute; top: 0; right: 20px; background: var(--navy); color: var(--white); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 0 0 6px 6px; letter-spacing: 0.3px; }
.card-name { font-family: var(--font-serif); font-size: 18px; font-weight: 400; margin-bottom: 4px; color: var(--text); }
.card-name a { color: var(--text); } .card-name a:hover { color: var(--navy); }
.card-location { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.card-rating { font-size: 13px; color: var(--gold); margin-bottom: 10px; }
.card-services { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.service-tag { font-size: 11px; background: rgba(26,58,92,0.06); color: var(--navy); padding: 4px 10px; border-radius: 6px; font-weight: 500; }
.verified-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: var(--green-bg); color: var(--green); padding: 4px 10px; border-radius: 6px; font-weight: 500; }
.card-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.card-meta a { color: var(--navy); font-weight: 500; }
.event-date { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.event-date-box { background: var(--navy); color: var(--white); border-radius: 8px; padding: 6px 10px; text-align: center; min-width: 48px; }
.event-date-month { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.8; }
.event-date-day { font-size: 18px; font-weight: 600; line-height: 1.1; }

/* ---- FILTER BAR ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; align-items: center; }
.filter-bar select, .filter-bar button { font-family: var(--font-body); font-size: 13px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); color: var(--text-secondary); cursor: pointer; transition: border-color var(--transition); }
.filter-bar select:hover, .filter-bar button:hover { border-color: var(--border-hover); }
.filter-bar button.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.filter-count { font-size: 14px; font-weight: 600; color: var(--text); }

/* ---- STATE BROWSER ---- */
.states-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.state-link { display: block; padding: 10px 14px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--text); transition: border-color var(--transition), background var(--transition); }
.state-link:hover { border-color: var(--navy); background: rgba(26,58,92,0.03); color: var(--navy); }

/* ---- CROSSLINK ---- */
.crosslink { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%); color: var(--white); border-radius: var(--radius); padding: 32px; }
.crosslink h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 400; margin-bottom: 8px; }
.crosslink p { font-size: 14px; opacity: 0.85; margin-bottom: 16px; max-width: 600px; }
.crosslink-btn { display: inline-block; background: var(--gold); color: var(--navy-dark); padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; transition: background var(--transition); }
.crosslink-btn:hover { background: var(--gold-light); color: var(--navy-dark); }

/* ---- CTA BANNER ---- */
.cta-banner { background: var(--gold-bg); border: 1px solid rgba(201,162,39,0.2); border-radius: var(--radius); padding: 32px; text-align: center; }
.cta-banner h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 400; margin-bottom: 8px; }
.cta-banner p { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; }
.cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-primary { display: inline-block; background: var(--navy); color: var(--white); padding: 12px 24px; border-radius: 8px; font-weight: 500; font-size: 14px; transition: background var(--transition); border: none; cursor: pointer; font-family: var(--font-body); }
.btn-primary:hover { background: var(--navy-dark); color: var(--white); }
.btn-outline { display: inline-block; background: var(--white); color: var(--navy); border: 1px solid var(--navy); padding: 12px 24px; border-radius: 8px; font-weight: 500; font-size: 14px; transition: background var(--transition); }
.btn-outline:hover { background: rgba(26,58,92,0.05); color: var(--navy); }

/* ---- CONTENT PAGES (about, grading, faq, advertise, privacy, blog) ---- */
.content-section { max-width: 720px; margin: 0 auto; padding: 0 20px 48px; }
.content-section h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 400; margin: 32px 0 12px; color: var(--text); }
.content-section h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; color: var(--text); }
.content-section p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.content-section ul, .content-section ol { margin: 0 0 16px 24px; color: var(--text-secondary); font-size: 15px; }
.content-section li { margin-bottom: 8px; line-height: 1.6; }
.content-section a { color: var(--navy); font-weight: 500; }

/* FAQ accordion */
.faq-group { margin-bottom: 32px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { font-size: 16px; font-weight: 600; padding: 16px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.faq-q::after { content: '+'; font-size: 20px; color: var(--text-muted); transition: transform var(--transition); }
.faq-q.open::after { content: '−'; }
.faq-a { display: none; padding: 0 0 16px; font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
.faq-a.open { display: block; }

/* ---- FORMS ---- */
.form-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.form-tab { padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; transition: color var(--transition), border-color var(--transition); background: none; border-top: none; border-left: none; border-right: none; font-family: var(--font-body); }
.form-tab.active { color: var(--navy); border-bottom-color: var(--navy); }
.form-panel { display: none; }
.form-panel.active { display: block; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; font-size: 14px; font-family: var(--font-body); border: 1px solid var(--border); border-radius: 8px; background: var(--white); transition: border-color var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,58,92,0.1); }
.form-group textarea { min-height: 100px; resize: vertical; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.checkbox-group label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 400; color: var(--text-secondary); cursor: pointer; }
.checkbox-group input[type="checkbox"] { width: auto; }
.form-note { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-success { background: var(--green-bg); color: var(--green); padding: 16px; border-radius: 8px; font-size: 14px; font-weight: 500; display: none; }

/* ---- FOOTER ---- */
.site-footer { background: var(--white); border-top: 1px solid var(--border); margin-top: 48px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { font-family: var(--font-serif); font-size: 18px; margin-bottom: 8px; }
.footer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.footer-col h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--navy); }
.footer-bottom { max-width: var(--max-width); margin: 0 auto; padding: 16px 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---- LOADING ---- */
.loading-text { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
